Upload folder using huggingface_hub
Browse files- README.md +54 -0
- added_tokens.json +21 -0
- conds.safetensors +3 -0
- config.json +84 -0
- merges.txt +0 -0
- model.safetensors +3 -0
- special_tokens_map.json +24 -0
- tokenizer.json +0 -0
- tokenizer_config.json +175 -0
- vocab.json +0 -0
README.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
base_model:
|
| 6 |
+
- mlx-community/chatterbox-turbo-fp16
|
| 7 |
+
pipeline_tag: text-to-speech
|
| 8 |
+
library_name: mlx-audio
|
| 9 |
+
tags:
|
| 10 |
+
- text-to-speech
|
| 11 |
+
- speech
|
| 12 |
+
- speech generation
|
| 13 |
+
- voice cloning
|
| 14 |
+
- mlx
|
| 15 |
+
- tts
|
| 16 |
+
---
|
| 17 |
+
# mlx-community/chatterbox-turbo
|
| 18 |
+
This model was converted to MLX format from [`ResembleAI/chatterbox-turbo`](https://huggingface.co/ResembleAI/chatterbox-turbo) using mlx-audio version **0.2.8**.
|
| 19 |
+
Refer to the [original model card](https://huggingface.co/ResembleAI/chatterbox-turbo) for more details on the model.
|
| 20 |
+
|
| 21 |
+
## Use with mlx
|
| 22 |
+
```bash
|
| 23 |
+
pip install -U mlx-audio
|
| 24 |
+
```
|
| 25 |
+
|
| 26 |
+
## Voice Cloning:
|
| 27 |
+
```bash
|
| 28 |
+
mlx_audio.tts.generate --model mlx-community/chatterbox-turbo-fp16 --text "Oh, that's hilarious! [chuckle] Um anyway, we do have a new model in store. It's the SkyNet T-800 series and it's got basically everything. Including AI integration with ChatGPT and all that jazz. Would you like me to get some prices for you?" --ref_audio path_to_file.wav --play
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
## Emotion Control
|
| 32 |
+
|
| 33 |
+
Chatterbox supports expressive event tags that can be inserted directly into your text to add natural vocal expressions:
|
| 34 |
+
|
| 35 |
+
| Tag | Description |
|
| 36 |
+
|-----|-------------|
|
| 37 |
+
| `[clear throat]` | Throat clearing sound |
|
| 38 |
+
| `[sigh]` | Sighing expression |
|
| 39 |
+
| `[shush]` | Shushing sound |
|
| 40 |
+
| `[cough]` | Coughing sound |
|
| 41 |
+
| `[groan]` | Groaning expression |
|
| 42 |
+
| `[sniff]` | Sniffing sound |
|
| 43 |
+
| `[gasp]` | Gasping expression |
|
| 44 |
+
| `[chuckle]` | Light chuckling |
|
| 45 |
+
| `[laugh]` | Laughter |
|
| 46 |
+
|
| 47 |
+
```bash
|
| 48 |
+
mlx_audio.tts.generate --model mlx-community/chatterbox-turbo-fp16 --text "[sigh] I can't believe it's Monday again. [groan] But hey, [clear throat] let's make the best of it!" --play
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
## Default Voice:
|
| 52 |
+
```bash
|
| 53 |
+
mlx_audio.tts.generate --model mlx-community/chatterbox-turbo-fp16 --text "Oh, that's hilarious! [chuckle] Um anyway, we do have a new model in store. It's the SkyNet T-800 series and it's got basically everything. Including AI integration with ChatGPT and all that jazz. Would you like me to get some prices for you?" --play
|
| 54 |
+
```
|
added_tokens.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"[advertisement]": 50261,
|
| 3 |
+
"[angry]": 50257,
|
| 4 |
+
"[chuckle]": 50274,
|
| 5 |
+
"[clear throat]": 50267,
|
| 6 |
+
"[cough]": 50270,
|
| 7 |
+
"[crying]": 50264,
|
| 8 |
+
"[dramatic]": 50262,
|
| 9 |
+
"[fear]": 50258,
|
| 10 |
+
"[gasp]": 50273,
|
| 11 |
+
"[groan]": 50271,
|
| 12 |
+
"[happy]": 50265,
|
| 13 |
+
"[laugh]": 50275,
|
| 14 |
+
"[narration]": 50263,
|
| 15 |
+
"[sarcastic]": 50266,
|
| 16 |
+
"[shush]": 50269,
|
| 17 |
+
"[sigh]": 50268,
|
| 18 |
+
"[sniff]": 50272,
|
| 19 |
+
"[surprised]": 50259,
|
| 20 |
+
"[whispering]": 50260
|
| 21 |
+
}
|
conds.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:df9ad2c54848027d94cf01f9fc0ed22bc5d3165df6e6a85c903c1124b8a78a4a
|
| 3 |
+
size 164884
|
config.json
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_type": "chatterbox_turbo",
|
| 3 |
+
"architecture": "chatterbox_turbo",
|
| 4 |
+
|
| 5 |
+
"t3": {
|
| 6 |
+
"start_text_token": 255,
|
| 7 |
+
"stop_text_token": 0,
|
| 8 |
+
"text_tokens_dict_size": 50276,
|
| 9 |
+
"max_text_tokens": 2048,
|
| 10 |
+
"start_speech_token": 6561,
|
| 11 |
+
"stop_speech_token": 6562,
|
| 12 |
+
"speech_tokens_dict_size": 6563,
|
| 13 |
+
"max_speech_tokens": 4096,
|
| 14 |
+
"llama_config_name": "GPT2_medium",
|
| 15 |
+
"input_pos_emb": null,
|
| 16 |
+
"speech_cond_prompt_len": 375,
|
| 17 |
+
"encoder_type": "voice_encoder",
|
| 18 |
+
"speaker_embed_size": 256,
|
| 19 |
+
"use_perceiver_resampler": false,
|
| 20 |
+
"emotion_adv": false
|
| 21 |
+
},
|
| 22 |
+
|
| 23 |
+
"gpt2": {
|
| 24 |
+
"activation_function": "gelu_new",
|
| 25 |
+
"n_ctx": 8196,
|
| 26 |
+
"n_embd": 1024,
|
| 27 |
+
"hidden_size": 1024,
|
| 28 |
+
"n_head": 16,
|
| 29 |
+
"n_layer": 24,
|
| 30 |
+
"n_positions": 8196,
|
| 31 |
+
"vocab_size": 50276,
|
| 32 |
+
"layer_norm_epsilon": 1e-05,
|
| 33 |
+
"attn_pdrop": 0.1,
|
| 34 |
+
"embd_pdrop": 0.1,
|
| 35 |
+
"resid_pdrop": 0.1
|
| 36 |
+
},
|
| 37 |
+
|
| 38 |
+
"voice_encoder": {
|
| 39 |
+
"num_mels": 40,
|
| 40 |
+
"sample_rate": 16000,
|
| 41 |
+
"speaker_embed_size": 256,
|
| 42 |
+
"ve_hidden_size": 256,
|
| 43 |
+
"flatten_lstm_params": false,
|
| 44 |
+
"n_fft": 400,
|
| 45 |
+
"hop_size": 160,
|
| 46 |
+
"win_size": 400,
|
| 47 |
+
"fmax": 8000,
|
| 48 |
+
"fmin": 0,
|
| 49 |
+
"preemphasis": 0.0,
|
| 50 |
+
"mel_power": 2.0,
|
| 51 |
+
"mel_type": "amp",
|
| 52 |
+
"normalized_mels": false,
|
| 53 |
+
"ve_partial_frames": 160,
|
| 54 |
+
"ve_final_relu": true,
|
| 55 |
+
"stft_magnitude_min": 1e-4
|
| 56 |
+
},
|
| 57 |
+
|
| 58 |
+
"s3gen": {
|
| 59 |
+
"output_sample_rate": 24000,
|
| 60 |
+
"input_sample_rate": 16000,
|
| 61 |
+
"silence_token": 4299,
|
| 62 |
+
"speech_vocab_size": 6561,
|
| 63 |
+
"meanflow": true,
|
| 64 |
+
"token_embedding_dim": 512,
|
| 65 |
+
"encoder_attention_heads": 8,
|
| 66 |
+
"encoder_linear_units": 2048,
|
| 67 |
+
"encoder_num_blocks": 6,
|
| 68 |
+
"encoder_dropout_rate": 0.1,
|
| 69 |
+
"decoder_in_channels": 320,
|
| 70 |
+
"decoder_out_channels": 80,
|
| 71 |
+
"decoder_channels": [256],
|
| 72 |
+
"decoder_attention_head_dim": 64,
|
| 73 |
+
"decoder_n_blocks": 4,
|
| 74 |
+
"decoder_num_mid_blocks": 12,
|
| 75 |
+
"decoder_num_heads": 8,
|
| 76 |
+
"cfm_sigma_min": 1e-6,
|
| 77 |
+
"cfm_t_scheduler": "cosine",
|
| 78 |
+
"cfm_inference_cfg_rate": 0.7
|
| 79 |
+
},
|
| 80 |
+
|
| 81 |
+
"sample_rate": 24000,
|
| 82 |
+
"enc_cond_len_seconds": 15,
|
| 83 |
+
"dec_cond_len_seconds": 10
|
| 84 |
+
}
|
merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9f70328a3f6c5257257aea76e9b14c34d8225745d133e4c1e83aa31f3f72a80b
|
| 3 |
+
size 2985990960
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": {
|
| 3 |
+
"content": "<|endoftext|>",
|
| 4 |
+
"lstrip": false,
|
| 5 |
+
"normalized": true,
|
| 6 |
+
"rstrip": false,
|
| 7 |
+
"single_word": false
|
| 8 |
+
},
|
| 9 |
+
"eos_token": {
|
| 10 |
+
"content": "<|endoftext|>",
|
| 11 |
+
"lstrip": false,
|
| 12 |
+
"normalized": true,
|
| 13 |
+
"rstrip": false,
|
| 14 |
+
"single_word": false
|
| 15 |
+
},
|
| 16 |
+
"pad_token": "<|endoftext|>",
|
| 17 |
+
"unk_token": {
|
| 18 |
+
"content": "<|endoftext|>",
|
| 19 |
+
"lstrip": false,
|
| 20 |
+
"normalized": true,
|
| 21 |
+
"rstrip": false,
|
| 22 |
+
"single_word": false
|
| 23 |
+
}
|
| 24 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,175 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"rstrip": false,
|
| 10 |
+
"single_word": false,
|
| 11 |
+
"special": true
|
| 12 |
+
},
|
| 13 |
+
"50257": {
|
| 14 |
+
"content": "[angry]",
|
| 15 |
+
"lstrip": false,
|
| 16 |
+
"normalized": true,
|
| 17 |
+
"rstrip": false,
|
| 18 |
+
"single_word": false,
|
| 19 |
+
"special": false
|
| 20 |
+
},
|
| 21 |
+
"50258": {
|
| 22 |
+
"content": "[fear]",
|
| 23 |
+
"lstrip": false,
|
| 24 |
+
"normalized": true,
|
| 25 |
+
"rstrip": false,
|
| 26 |
+
"single_word": false,
|
| 27 |
+
"special": false
|
| 28 |
+
},
|
| 29 |
+
"50259": {
|
| 30 |
+
"content": "[surprised]",
|
| 31 |
+
"lstrip": false,
|
| 32 |
+
"normalized": true,
|
| 33 |
+
"rstrip": false,
|
| 34 |
+
"single_word": false,
|
| 35 |
+
"special": false
|
| 36 |
+
},
|
| 37 |
+
"50260": {
|
| 38 |
+
"content": "[whispering]",
|
| 39 |
+
"lstrip": false,
|
| 40 |
+
"normalized": true,
|
| 41 |
+
"rstrip": false,
|
| 42 |
+
"single_word": false,
|
| 43 |
+
"special": false
|
| 44 |
+
},
|
| 45 |
+
"50261": {
|
| 46 |
+
"content": "[advertisement]",
|
| 47 |
+
"lstrip": false,
|
| 48 |
+
"normalized": true,
|
| 49 |
+
"rstrip": false,
|
| 50 |
+
"single_word": false,
|
| 51 |
+
"special": false
|
| 52 |
+
},
|
| 53 |
+
"50262": {
|
| 54 |
+
"content": "[dramatic]",
|
| 55 |
+
"lstrip": false,
|
| 56 |
+
"normalized": true,
|
| 57 |
+
"rstrip": false,
|
| 58 |
+
"single_word": false,
|
| 59 |
+
"special": false
|
| 60 |
+
},
|
| 61 |
+
"50263": {
|
| 62 |
+
"content": "[narration]",
|
| 63 |
+
"lstrip": false,
|
| 64 |
+
"normalized": true,
|
| 65 |
+
"rstrip": false,
|
| 66 |
+
"single_word": false,
|
| 67 |
+
"special": false
|
| 68 |
+
},
|
| 69 |
+
"50264": {
|
| 70 |
+
"content": "[crying]",
|
| 71 |
+
"lstrip": false,
|
| 72 |
+
"normalized": true,
|
| 73 |
+
"rstrip": false,
|
| 74 |
+
"single_word": false,
|
| 75 |
+
"special": false
|
| 76 |
+
},
|
| 77 |
+
"50265": {
|
| 78 |
+
"content": "[happy]",
|
| 79 |
+
"lstrip": false,
|
| 80 |
+
"normalized": true,
|
| 81 |
+
"rstrip": false,
|
| 82 |
+
"single_word": false,
|
| 83 |
+
"special": false
|
| 84 |
+
},
|
| 85 |
+
"50266": {
|
| 86 |
+
"content": "[sarcastic]",
|
| 87 |
+
"lstrip": false,
|
| 88 |
+
"normalized": true,
|
| 89 |
+
"rstrip": false,
|
| 90 |
+
"single_word": false,
|
| 91 |
+
"special": false
|
| 92 |
+
},
|
| 93 |
+
"50267": {
|
| 94 |
+
"content": "[clear throat]",
|
| 95 |
+
"lstrip": false,
|
| 96 |
+
"normalized": true,
|
| 97 |
+
"rstrip": false,
|
| 98 |
+
"single_word": false,
|
| 99 |
+
"special": false
|
| 100 |
+
},
|
| 101 |
+
"50268": {
|
| 102 |
+
"content": "[sigh]",
|
| 103 |
+
"lstrip": false,
|
| 104 |
+
"normalized": true,
|
| 105 |
+
"rstrip": false,
|
| 106 |
+
"single_word": false,
|
| 107 |
+
"special": false
|
| 108 |
+
},
|
| 109 |
+
"50269": {
|
| 110 |
+
"content": "[shush]",
|
| 111 |
+
"lstrip": false,
|
| 112 |
+
"normalized": true,
|
| 113 |
+
"rstrip": false,
|
| 114 |
+
"single_word": false,
|
| 115 |
+
"special": false
|
| 116 |
+
},
|
| 117 |
+
"50270": {
|
| 118 |
+
"content": "[cough]",
|
| 119 |
+
"lstrip": false,
|
| 120 |
+
"normalized": true,
|
| 121 |
+
"rstrip": false,
|
| 122 |
+
"single_word": false,
|
| 123 |
+
"special": false
|
| 124 |
+
},
|
| 125 |
+
"50271": {
|
| 126 |
+
"content": "[groan]",
|
| 127 |
+
"lstrip": false,
|
| 128 |
+
"normalized": true,
|
| 129 |
+
"rstrip": false,
|
| 130 |
+
"single_word": false,
|
| 131 |
+
"special": false
|
| 132 |
+
},
|
| 133 |
+
"50272": {
|
| 134 |
+
"content": "[sniff]",
|
| 135 |
+
"lstrip": false,
|
| 136 |
+
"normalized": true,
|
| 137 |
+
"rstrip": false,
|
| 138 |
+
"single_word": false,
|
| 139 |
+
"special": false
|
| 140 |
+
},
|
| 141 |
+
"50273": {
|
| 142 |
+
"content": "[gasp]",
|
| 143 |
+
"lstrip": false,
|
| 144 |
+
"normalized": true,
|
| 145 |
+
"rstrip": false,
|
| 146 |
+
"single_word": false,
|
| 147 |
+
"special": false
|
| 148 |
+
},
|
| 149 |
+
"50274": {
|
| 150 |
+
"content": "[chuckle]",
|
| 151 |
+
"lstrip": false,
|
| 152 |
+
"normalized": true,
|
| 153 |
+
"rstrip": false,
|
| 154 |
+
"single_word": false,
|
| 155 |
+
"special": false
|
| 156 |
+
},
|
| 157 |
+
"50275": {
|
| 158 |
+
"content": "[laugh]",
|
| 159 |
+
"lstrip": false,
|
| 160 |
+
"normalized": true,
|
| 161 |
+
"rstrip": false,
|
| 162 |
+
"single_word": false,
|
| 163 |
+
"special": false
|
| 164 |
+
}
|
| 165 |
+
},
|
| 166 |
+
"bos_token": "<|endoftext|>",
|
| 167 |
+
"clean_up_tokenization_spaces": false,
|
| 168 |
+
"eos_token": "<|endoftext|>",
|
| 169 |
+
"errors": "replace",
|
| 170 |
+
"extra_special_tokens": {},
|
| 171 |
+
"model_max_length": 1024,
|
| 172 |
+
"pad_token": "<|endoftext|>",
|
| 173 |
+
"tokenizer_class": "GPT2Tokenizer",
|
| 174 |
+
"unk_token": "<|endoftext|>"
|
| 175 |
+
}
|
vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|