OpenViSTAI · Agents · Blockchain · Crypto
Menu
Audio & Voice AI

Wavtokenizer

WavTokenizer is an open-source Python model and repository for encoding speech, music and other audio as discrete codec tokens and reconstructing audio from encoded representations. Its README documents token rates of 40 or 75 per second, inference examples, model checkpoints and a configurable training path.

Independent OpenViST project profile, based on linked sources.

Wavtokenizer — OpenViST project profile in Audio & Voice AI.
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use WavTokenizer when a research or development workflow needs discrete audio representations, codec-based reconstruction, or a configurable model-training starting point.

Who it is for

  • Researchers building audio-language-model input or representation pipelines.
  • Developers who need to encode audio into discrete codec tokens or reconstruct audio from token representations.
  • Teams exploring training a discrete audio codec model using the repository's configuration-based workflow.

Documented uses

  • Encode audio into discrete codes for downstream audio-language-model work.
  • Reconstruct a waveform from raw audio using the model's encode-and-decode path.
  • Convert existing codec tokens into features and decode them to audio.
  • Prepare a dataset and configure the repository's training entry point.
Before you choose

Requirements & limits

The repository is public and lists an MIT license. The README links to model checkpoints and collections on Hugging Face.

  • The listed model variants differ in token rate, model size and domain; the README identifies speech-only and speech, audio and music options.
  • The inference example resamples input to 24 kHz mono and uses a model configuration and checkpoint.
  • The README shows CPU inference, but does not establish performance or resource requirements for other workloads.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Set up the WavTokenizer Python environment

Create the Python 3.9 Conda environment and install the repository's listed requirements.

Before you start

  • The WavTokenizer repository.
  • Conda.

Steps

  1. Create a Conda environment named wavtokenizer with Python 3.9.

  2. Activate the wavtokenizer environment.

  3. Install dependencies with pip install -r requirements.txt.

Expected outcome

The documented Python environment is created and the repository requirements are installed.

Guide limitations

  • This covers installation only; it does not establish that inference or training has been run.
Source-based practical guide

Encode a WAV file into discrete codec tokens

Use the documented inference flow to obtain discrete codes from an audio file.

Before you start

  • The WavTokenizer repository and its installed requirements.
  • A model configuration file and checkpoint.
  • An input audio file readable by torchaudio.

Steps

  1. Load the selected model using its configuration path and checkpoint path.

  2. Load the audio and convert it to 24 kHz mono.

  3. Move the waveform to the selected device and call encode_infer.

  4. Read the discrete-code output.

Expected outcome

The example returns discrete audio codes for the input waveform.

Guide limitations

  • The README's example uses placeholder paths for the configuration, checkpoint and audio file.
  • Model selection and input preparation may need to match the chosen checkpoint and project.
COMPARE OPTIONS

Compare options for Model inference and serving

These projects document a common task and share a project role. This is a source-based comparison, not an execution benchmark or a guarantee of interchangeability.

ProjectDocumented purposePlatformAccess and requirements
WavtokenizerEncode audio into discrete codes for downstream audio-language-model work.Linux, Windows, macOSThe repository is public and lists an MIT license. The README links to model checkpoints and collections on Hugging Face.
Speech Denoising WavenetRun a pretrained model on noisy speech.Linux, CLIThe repository is public and identifies its license as MIT.
Glow TtsGenerate speech representations from text through model inference.Linux, Windows, macOS, Self-hostedThe repository is public and specifies an MIT license.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
3 November 2026
Original website title
jishengpeng/WavTokenizer · Official homepage title · retained in its source language