/ Модель

Характеристики

Лицензия
Своя лицензия
Опубликована
6 дек 2024

mel-codec-22khz

ЭмбеддингиТекст → embedding3 профессии

Речевой нейрокодек NVIDIA сжимает и восстанавливает аудио 22,05 кГц и может служить вокодером для синтеза речи.

102скачиваний за 30 дней5лайковвеса обновлены5 авг 2025

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

NVIDIA NeMo Mel Codec 22khz — модель нейронного аудиокодека от NVIDIA для сжатия мел-спектрограмм в квантованное представление и восстановления аудио. Она может использоваться как вокодер в системах синтеза речи и как предварительно обученный чекпойнт для инференса или дообучения в NeMo.

Модель принимает монофоническую речь в WAV с частотой 22,05 кГц и восстанавливает аудио того же формата. Архитектура включает энкодер на остаточной сети, восемь кодовых книг с FSQ-квантованием и декодер HiFi-GAN. Частота кадров составляет 86,1 Гц, битрейт — 6,9 кбит/с. Обучение проводилось на 28,7 тыс. часов речевых данных на 105 языках.

Кодек рассчитан прежде всего на полночастотную речь 22,05 кГц. Качество может снижаться для речи с меньшей полосой, в том числе для аудио 16 кГц, повышенного до 22,05 кГц; модель не обучалась и не оценивалась на неречевых звуках. Лицензия в метаданных указана как other.

Сценарии применения

  • сжатие монофонической речи с частотой 22,05 кГц
  • восстановление речевого аудио из квантованного представления
  • вокодирование аудио на выходе системы синтеза речи
  • подготовка речевого кодека для дообучения на другом датасете

Ограничения

Модель рассчитана на монофоническую речь 22,05 кГц; качество может быть ниже для речи с полосой 16 кГц, повышенной до 22,05 кГц. Она не обучалась и не оценивалась на неречевом аудио.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

NVIDIA NeMo Mel Codec 22khz

Model architecture | Model size | Language

The NeMo Mel Codec is a neural audio codec which compresses mel-spectrograms into a quantized representation and reconstructs audio. The model can be used as a vocoder for speech synthesis.

The model works with full-bandwidth 22.05kHz speech. It might have lower performance with low-bandwidth speech (e.g. 16kHz speech upsampled to 22.05kHz) or with non-speech audio.

Sample RateFrame RateBit Rate# CodebooksCodebook SizeEmbed DimFSQ Levels
2205086.16.9kpbs8100032[8, 5, 5, 5]

Model Architecture

The NeMo Mel Codec model uses a residual network encoder and HiFi-GAN decoder. We use Finite Scalar Quantization (FSQ), with 8 codebooks and 1000 entries per codebook.

For more details please refer to our paper.

Input

  • Input Type: Audio
  • Input Format(s): .wav files
  • Input Parameters: One-Dimensional (1D)
  • Other Properties Related to Input: 22050 Hz Mono-channel Audio

Output

  • Output Type: Audio
  • Output Format: .wav files
  • Output Parameters: One Dimensional (1D)
  • Other Properties Related to Output: 22050 Hz Mono-channel Audio

How to Use this Model

The model is available for use in the NVIDIA NeMo, and can be used as a pre-trained checkpoint for inference or for fine-tuning on another dataset.

Inference

For inference, you can follow our Audio Codec Inference Tutorial which automatically downloads the model checkpoint. Note that you will need to set the model_name parameter to "nvidia/mel-codec-22khz".

Alternatively, you can use the code below, which also handles the automatic checkpoint download:

import librosa
import torch
import soundfile as sf
from nemo.collections.tts.models import AudioCodecModel

model_name = "nvidia/mel-codec-22khz"
path_to_input_audio = ??? # path of the input audio
path_to_output_audio = ??? # path of the reconstructed output audio

nemo_codec_model = AudioCodecModel.from_pretrained(model_name).eval()

# get discrete tokens from audio
audio, _ = librosa.load(path_to_input_audio, sr=nemo_codec_model.sample_rate)

device = 'cuda' if torch.cuda.is_available() else 'cpu'
audio_tensor = torch.from_numpy(audio).unsqueeze(dim=0).to(device)
audio_len = torch.tensor([audio_tensor[0].shape[0]]).to(device)

with torch.no_grad():
  encoded_tokens, encoded_len = nemo_codec_model.encode(audio=audio_tensor, audio_len=audio_len)
  
  # Reconstruct audio from tokens
  reconstructed_audio, _ = nemo_codec_model.decode(tokens=encoded_tokens, tokens_len=encoded_len)

# save reconstructed audio
output_audio = reconstructed_audio.cpu().numpy().squeeze()
sf.write(path_to_output_audio, output_audio, nemo_codec_model.sample_rate)

Training

For fine-tuning on another dataset please follow the steps available at our Audio Codec Training Tutorial. Note that you will need to set the CONFIG_FILENAME parameter to the "mel_codec_22050.yaml" config. You also will need to set pretrained_model_name to "nvidia/mel-codec-22khz".

Training, Testing, and Evaluation Datasets:

Training Datasets

The NeMo Audio Codec is trained on a total of 28.7k hrs of speech data from 105 languages.

Test Datasets

Performance

We evaluate our codec using several objective audio quality metrics. We evaluate ViSQOL and PESQ for perception quality, ESTOI for intelligbility, and mel spectrogram and STFT distances for spectral reconstruction accuracy. Metrics are reported on the test set for both the MLS English and CommonVoice data. The model has not been trained or evaluated on non-speech audio.

DatasetViSQOLPESQESTOIMel DistanceSTFT Distance
MLS English4.483.430.920.0690.034
CommonVoice4.513.210.910.1000.057

Software Integration

Supported Hardware Microarchitecture Compatibility:

  • NVIDIA Ampere
  • NVIDIA Blackwell
  • NVIDIA Jetson
  • NVIDIA Hopper
  • NVIDIA Lovelace
  • NVIDIA Pascal
  • NVIDIA Turing
  • NVIDIA Volta

Runtime Engine

  • Nemo 2.0.0

Preferred Operating System

  • Linux

License/Terms of Use

This model is for research and development only (non-commercial use) and the license to use this model is covered by the NSCLv1.

Ethical Considerations:

NVIDIA believes Trustworthy AI is a shared responsibility and we have established policies and practices to enable development for a wide array of AI applications. When downloaded or used in accordance with our terms of service, developers should work with their internal model team to ensure this model meets requirements for the relevant industry and use case and addresses unforeseen product misuse. Please report security vulnerabilities or NVIDIA AI Concerns here.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм

Нельзя запустить

Модели NVIDIA NeMo требуют отдельного рантайма.

Ревизия весов
19eb344

0 моделей