Instructions to use yapwithai/kyutai-tts-1.6b-en_fr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Moshi
How to use yapwithai/kyutai-tts-1.6b-en_fr with Moshi:
# pip install moshi # Run the interactive web server python -m moshi.server --hf-repo "yapwithai/kyutai-tts-1.6b-en_fr" # Then open https://localhost:8998 in your browser
# pip install moshi import torch from moshi.models import loaders # Load checkpoint info from HuggingFace checkpoint = loaders.CheckpointInfo.from_hf_repo("yapwithai/kyutai-tts-1.6b-en_fr") # Load the Mimi audio codec mimi = checkpoint.get_mimi(device="cuda") mimi.set_num_codebooks(8) # Encode audio (24kHz, mono) wav = torch.randn(1, 1, 24000 * 10) # [batch, channels, samples] with torch.no_grad(): codes = mimi.encode(wav.cuda()) decoded = mimi.decode(codes) - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +2 -1
config.json
CHANGED
|
@@ -100,7 +100,8 @@
|
|
| 100 |
"cross_attention_pos_emb": true,
|
| 101 |
"cross_attention_pos_emb_scale": 1,
|
| 102 |
"sum": [
|
| 103 |
-
"control"
|
|
|
|
| 104 |
],
|
| 105 |
"prepend": [],
|
| 106 |
"cross": [
|
|
|
|
| 100 |
"cross_attention_pos_emb": true,
|
| 101 |
"cross_attention_pos_emb_scale": 1,
|
| 102 |
"sum": [
|
| 103 |
+
"control",
|
| 104 |
+
"cfg"
|
| 105 |
],
|
| 106 |
"prepend": [],
|
| 107 |
"cross": [
|