BSC-LT / wavenext-encodec

huggingface.co
Total runs: 253
24-hour runs: 1
7-day runs: 243
30-day runs: 246
Model's Last Updated: September 12 2024

Introduction of wavenext-encodec

Model Details of wavenext-encodec

Wavenext-encodec

Model Details
Model Description

Wavenext is a modification of Vocos, where the last ISTFT layer is replaced with a a trainable linear layer that can directly predict speech waveform samples.

This version of Wavenext uses encodec tokens as input features, it's trained using the following bandwidths from encodec (1.5, 3.0, 6.0, 12.0) .

Intended Uses and limitations

The model is aimed to serve as a vocoder to synthesize audio waveforms from encodec discrete codes. Is trained to generate speech and if is used in other audio domain is possible that the model won't produce high quality samples.

Usage
Installation

To use Wavenext only in inference mode, install it using:

pip install git+https://github.com/langtech-bsc/wavenext_pytorch
Reconstruct audio from encodec tokens

You need to provide a bandwidth_id which corresponds to the embedding for bandwidth from the list: [1.5, 3.0, 6.0, 12.0].

import torch

from vocos import Vocos

vocos = Vocos.from_pretrained("BSC-LT/wavenext-encodec")

audio_tokens = torch.randint(low=0, high=1024, size=(8, 200))  # 8 codeboooks, 200 frames
features = vocos.codes_to_features(audio_tokens)
bandwidth_id = torch.tensor([2])  # 6 kbps

audio = vocos.decode(features, bandwidth_id=bandwidth_id)

Copy-synthesis from a file:

import torchaudio

y, sr = torchaudio.load(YOUR_AUDIO_FILE)
if y.size(0) > 1:  # mix to mono
    y = y.mean(dim=0, keepdim=True)
y = torchaudio.functional.resample(y, orig_freq=sr, new_freq=24000)
y_hat = vocos(y, bandwidth_id=bandwidth_id)
Training Details
Training Data

The model was trained on 4 speech datasets

Dataset Language Hours
LibriTTS-r en 585
LJSpeech en 24
Festcat ca 22
OpenSLR69 ca 5
Training Procedure

The model was trained for 1M steps and 99 epochs with a batch size of 16 for stability. We used a Cosine scheduler with a initial learning rate of 1e-4.

Training Hyperparameters
  • initial_learning_rate: 1e-4
  • scheduler: cosine without warmup or restarts
  • mel_loss_coeff: 45
  • mrd_loss_coeff: 0.1
  • batch_size: 16
  • num_samples: 16384
Evaluation

Evaluation was done using the metrics on the original vocos repo, Note that this metrics are calculated using the codecs corresponding to a bandwidth of 1.5 kbps, after 99 epochs we achieve:

  • val_loss: 5.52
  • f1_score: 0.93
  • mel_loss: 0.53
  • periodicity_loss:0.14
  • pesq_score: 2.12
  • pitch_loss: 47.73
  • utmos_score: 2.89
Citation

If this code contributes to your research, please cite the work:

@INPROCEEDINGS{10389765,
  author={Okamoto, Takuma and Yamashita, Haruki and Ohtani, Yamato and Toda, Tomoki and Kawai, Hisashi},
  booktitle={2023 IEEE Automatic Speech Recognition and Understanding Workshop (ASRU)}, 
  title={WaveNeXt: ConvNeXt-Based Fast Neural Vocoder Without ISTFT layer}, 
  year={2023},
  volume={},
  number={},
  pages={1-8},
  keywords={Fourier transforms;Vocoders;Conferences;Automatic speech recognition;ConvNext;end-to-end text-to-speech;linear layer-based upsampling;neural vocoder;Vocos},
  doi={10.1109/ASRU57964.2023.10389765}}

@article{siuzdak2023vocos,
  title={Vocos: Closing the gap between time-domain and Fourier-based neural vocoders for high-quality audio synthesis},
  author={Siuzdak, Hubert},
  journal={arXiv preprint arXiv:2306.00814},
  year={2023}
}
Additional information
Author

The Language Technologies Unit from Barcelona Supercomputing Center.

Contact

For further information, please send an email to [email protected] .

Copyright

Copyright(c) 2024 by Language Technologies Unit, Barcelona Supercomputing Center.

License

Apache 2.0

Funding

This work has been promoted and financed by the Generalitat de Catalunya through the Aina project .

Runs of BSC-LT wavenext-encodec on huggingface.co

253
Total runs
1
24-hour runs
239
3-day runs
243
7-day runs
246
30-day runs

More Information About wavenext-encodec huggingface.co Model

More wavenext-encodec license Visit here:

https://choosealicense.com/licenses/apache-2.0

wavenext-encodec huggingface.co

wavenext-encodec huggingface.co is an AI model on huggingface.co that provides wavenext-encodec's model effect (), which can be used instantly with this BSC-LT wavenext-encodec model. huggingface.co supports a free trial of the wavenext-encodec model, and also provides paid use of the wavenext-encodec. Support call wavenext-encodec model through api, including Node.js, Python, http.

wavenext-encodec huggingface.co Url

https://huggingface.co/BSC-LT/wavenext-encodec

BSC-LT wavenext-encodec online free

wavenext-encodec huggingface.co is an online trial and call api platform, which integrates wavenext-encodec's modeling effects, including api services, and provides a free online trial of wavenext-encodec, you can try wavenext-encodec online for free by clicking the link below.

BSC-LT wavenext-encodec online free url in huggingface.co:

https://huggingface.co/BSC-LT/wavenext-encodec

wavenext-encodec install

wavenext-encodec is an open source model from GitHub that offers a free installation service, and any user can find wavenext-encodec on GitHub to install. At the same time, huggingface.co provides the effect of wavenext-encodec install, users can directly use wavenext-encodec installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

wavenext-encodec install url in huggingface.co:

https://huggingface.co/BSC-LT/wavenext-encodec

Url of wavenext-encodec

wavenext-encodec huggingface.co Url

Provider of wavenext-encodec huggingface.co

BSC-LT
ORGANIZATIONS

Other API from BSC-LT

huggingface.co

Total runs: 2.5K
Run Growth: 1.5K
Growth Rate: 61.74%
Updated:October 22 2025
huggingface.co

Total runs: 1.8K
Run Growth: 1.2K
Growth Rate: 64.77%
Updated:October 22 2025
huggingface.co

Total runs: 1.8K
Run Growth: 35
Growth Rate: 2.04%
Updated:October 22 2025
huggingface.co

Total runs: 1.4K
Run Growth: -2.0K
Growth Rate: -147.94%
Updated:April 10 2026
huggingface.co

Total runs: 943
Run Growth: 575
Growth Rate: 61.76%
Updated:March 27 2026
huggingface.co

Total runs: 394
Run Growth: 157
Growth Rate: 40.89%
Updated:August 07 2025
huggingface.co

Total runs: 382
Run Growth: 202
Growth Rate: 52.88%
Updated:October 26 2021
huggingface.co

Total runs: 336
Run Growth: 153
Growth Rate: 46.50%
Updated:April 10 2026
huggingface.co

Total runs: 317
Run Growth: -227
Growth Rate: -73.70%
Updated:April 10 2026
huggingface.co

Total runs: 217
Run Growth: -873
Growth Rate: -409.86%
Updated:April 10 2026
huggingface.co

Total runs: 132
Run Growth: 48
Growth Rate: 37.50%
Updated:April 22 2026
huggingface.co

Total runs: 122
Run Growth: 12
Growth Rate: 9.84%
Updated:October 29 2024
huggingface.co

Total runs: 119
Run Growth: 16
Growth Rate: 13.45%
Updated:September 06 2021
huggingface.co

Total runs: 60
Run Growth: 48
Growth Rate: 81.36%
Updated:September 10 2024