eustlb's picture
eustlb HF Staff
Pocket TTS codec, decoder only (transformers PocketTTSAudioTokenizerModel)
b15a9eb verified
|
Raw History Blame Contribute Delete
2.08 kB
---
license: cc-by-4.0
library_name: transformers
base_model: kyutai/pocket-tts
tags:
- audio
- codec
---
# Pocket TTS codec (Mimi), decoder only
The decoder of the audio codec of [Kyutai's Pocket TTS](https://huggingface.co/kyutai/pocket-tts) in 🤗 Transformers format (`PocketTTSAudioTokenizerModel` without its encoder): it turns 12.5 Hz latents into 24 kHz audio. Like [kyutai/pocket-tts-without-voice-cloning](https://huggingface.co/kyutai/pocket-tts-without-voice-cloning), it cannot encode audio, so it cannot clone a voice; the full codec is [eustlb/pocket-tts-mimi](https://huggingface.co/eustlb/pocket-tts-mimi) (gated).
Weights: the decoder-side `mimi.*` tensors of `kyutai/pocket-tts`, converted with `convert_pocket_tts_to_hf.py`. Original code: [kyutai-labs/pocket-tts](https://github.com/kyutai-labs/pocket-tts).
```python
import torch
from transformers import AutoModel
model = AutoModel.from_pretrained("eustlb/pocket-tts-mimi-decoder-only", device_map="auto")
latents = torch.randn(1, 25, 32, device=model.device) # (batch, frames, latent_dim), e.g. Pocket TTS's generated latents
audio_values = model.decode(latents).audio_values
```
See the [Transformers docs](https://huggingface.co/docs/transformers/main/en/model_doc/pocket_tts_audio_tokenizer).
## Prohibited use
Use of our model must comply with all applicable laws and regulations and must not result in, involve, or facilitate any illegal, harmful, deceptive, fraudulent, or unauthorized activity. Prohibited uses include, without limitation, voice impersonation or cloning without explicit and lawful consent; misinformation, disinformation, or deception (including fake news, fraudulent calls, or presenting generated content as genuine recordings of real people or events); and the generation of unlawful, harmful, libelous, abusive, harassing, discriminatory, hateful, or privacy-invasive content. We disclaim all liability for any non-compliant use.
## Authors
Manu Orsini*, Simon Rouard*, Gabriel De Marmiesse*, Václav Volhejn, Neil Zeghidour, Alexandre Défossez
*equal contribution