Manmay commited on
Commit
4e9199e
Β·
verified Β·
1 Parent(s): ade56ba

Initial commit: per-language Chatterbox TTS demo

Browse files
Files changed (3) hide show
  1. README.md +8 -8
  2. app.py +3 -3
  3. chatterbox/src/chatterbox/tts.py +5 -5
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: Chatterbox-Multilingual-TTS-AllLang-Demo
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 β€” language-agnostic AllLang model."
12
  models:
13
- - ResembleAI/Chatterbox-Multilingual-AllLang
14
- - ResembleAI/Chatterbox-Multilingual-AllLang
15
  ---
16
 
17
- # Chatterbox Multilingual TTS β€” Language-Agnostic (AllLang)
18
 
19
- Chatterbox TTS β€” language-agnostic AllLang model.
20
 
21
- Powered by [`ResembleAI/Chatterbox-Multilingual-AllLang`](https://huggingface.co/ResembleAI/Chatterbox-Multilingual-AllLang).
22
- Base components reused from [`ResembleAI/Chatterbox-Multilingual-AllLang`](https://huggingface.co/ResembleAI/Chatterbox-Multilingual-AllLang).
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 β€” Language-Agnostic (AllLang)
85
- Chatterbox TTS β€” language-agnostic AllLang model.
86
- Powered by model [`ResembleAI/Chatterbox-Multilingual-AllLang`](https://huggingface.co/ResembleAI/Chatterbox-Multilingual-AllLang).
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/Chatterbox-Multilingual-AllLang"
22
- BASE_REPO_ID = "ResembleAI/Chatterbox-Multilingual-AllLang"
23
- T3_FILENAME = "t3_alllang.safetensors"
24
- TOKENIZER_FILENAME = "mtl_tokenizer.json"
25
- T3_TEXT_VOCAB_SIZE = 2352
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: