Spaces:
Running on Zero
Running on Zero
Initial commit: per-language Chatterbox TTS demo
Browse files- README.md +8 -8
- app.py +3 -3
- chatterbox/src/chatterbox/tts.py +5 -5
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
title: Chatterbox-Multilingual-TTS-
|
| 3 |
emoji: π
|
| 4 |
colorFrom: indigo
|
| 5 |
colorTo: blue
|
|
@@ -8,17 +8,17 @@ sdk_version: 5.29.0
|
|
| 8 |
python_version: "3.10"
|
| 9 |
app_file: app.py
|
| 10 |
pinned: false
|
| 11 |
-
short_description: "Chatterbox TTS
|
| 12 |
models:
|
| 13 |
-
- ResembleAI/
|
| 14 |
-
- ResembleAI/
|
| 15 |
---
|
| 16 |
|
| 17 |
-
# Chatterbox Multilingual TTS
|
| 18 |
|
| 19 |
-
Chatterbox TTS
|
| 20 |
|
| 21 |
-
Powered by [`ResembleAI/
|
| 22 |
-
Base components reused from [`ResembleAI/
|
| 23 |
|
| 24 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Chatterbox-Multilingual-TTS-V3
|
| 3 |
emoji: π
|
| 4 |
colorFrom: indigo
|
| 5 |
colorTo: blue
|
|
|
|
| 8 |
python_version: "3.10"
|
| 9 |
app_file: app.py
|
| 10 |
pinned: false
|
| 11 |
+
short_description: "Chatterbox Multilingual TTS V3 (t3_mtl23ls_v3)."
|
| 12 |
models:
|
| 13 |
+
- ResembleAI/chatterbox
|
| 14 |
+
- ResembleAI/chatterbox
|
| 15 |
---
|
| 16 |
|
| 17 |
+
# Chatterbox Multilingual TTS V3
|
| 18 |
|
| 19 |
+
Chatterbox Multilingual TTS V3 (t3_mtl23ls_v3).
|
| 20 |
|
| 21 |
+
Powered by [`ResembleAI/chatterbox`](https://huggingface.co/ResembleAI/chatterbox).
|
| 22 |
+
Base components reused from [`ResembleAI/chatterbox`](https://huggingface.co/ResembleAI/chatterbox).
|
| 23 |
|
| 24 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
app.py
CHANGED
|
@@ -81,9 +81,9 @@ def generate_tts_audio(
|
|
| 81 |
with gr.Blocks() as demo:
|
| 82 |
gr.Markdown(
|
| 83 |
"""
|
| 84 |
-
# Chatterbox Multilingual TTS
|
| 85 |
-
Chatterbox TTS
|
| 86 |
-
Powered by model [`ResembleAI/
|
| 87 |
"""
|
| 88 |
)
|
| 89 |
with gr.Row():
|
|
|
|
| 81 |
with gr.Blocks() as demo:
|
| 82 |
gr.Markdown(
|
| 83 |
"""
|
| 84 |
+
# Chatterbox Multilingual TTS V3
|
| 85 |
+
Chatterbox Multilingual TTS V3 (t3_mtl23ls_v3).
|
| 86 |
+
Powered by model [`ResembleAI/chatterbox`](https://huggingface.co/ResembleAI/chatterbox).
|
| 87 |
"""
|
| 88 |
)
|
| 89 |
with gr.Row():
|
chatterbox/src/chatterbox/tts.py
CHANGED
|
@@ -18,11 +18,11 @@ from .models.voice_encoder import VoiceEncoder
|
|
| 18 |
from .models.t3.modules.cond_enc import T3Cond
|
| 19 |
|
| 20 |
|
| 21 |
-
REPO_ID = "ResembleAI/
|
| 22 |
-
BASE_REPO_ID = "ResembleAI/
|
| 23 |
-
T3_FILENAME = "
|
| 24 |
-
TOKENIZER_FILENAME = "
|
| 25 |
-
T3_TEXT_VOCAB_SIZE =
|
| 26 |
|
| 27 |
|
| 28 |
def punc_norm(text: str) -> str:
|
|
|
|
| 18 |
from .models.t3.modules.cond_enc import T3Cond
|
| 19 |
|
| 20 |
|
| 21 |
+
REPO_ID = "ResembleAI/chatterbox"
|
| 22 |
+
BASE_REPO_ID = "ResembleAI/chatterbox"
|
| 23 |
+
T3_FILENAME = "t3_mtl23ls_v3.safetensors"
|
| 24 |
+
TOKENIZER_FILENAME = "grapheme_mtl_merged_expanded_v1.json"
|
| 25 |
+
T3_TEXT_VOCAB_SIZE = 2454
|
| 26 |
|
| 27 |
|
| 28 |
def punc_norm(text: str) -> str:
|