TeraSpace commited on
Commit
e9a0c6d
·
verified ·
1 Parent(s): 68fd114

Add TeraTTS remote-code interface

Browse files
Files changed (2) hide show
  1. .gitattributes +0 -3
  2. README.md +11 -4
.gitattributes CHANGED
@@ -1,5 +1,2 @@
1
  *.onnx filter=lfs diff=lfs merge=lfs -text
2
  *.npy filter=lfs diff=lfs merge=lfs -text
3
- ruaccent/dictionary/accents.json.gz filter=lfs diff=lfs merge=lfs -text
4
- ruaccent/dictionary/omographs.json.gz filter=lfs diff=lfs merge=lfs -text
5
- ruaccent/dictionary/yo_words.json.gz filter=lfs diff=lfs merge=lfs -text
 
1
  *.onnx filter=lfs diff=lfs merge=lfs -text
2
  *.npy filter=lfs diff=lfs merge=lfs -text
 
 
 
README.md CHANGED
@@ -12,7 +12,7 @@ tags:
12
  # TeraTTSv2 ONNX
13
 
14
  TeraTTSv2 is a self-contained ONNX Runtime text-to-speech release with
15
- selectable diffusion samplers, six voice styles, Russian stress marking, and
16
  streamed audio output.
17
 
18
  This release uses the clean English/Russian 25-second teacher and its matching
@@ -24,6 +24,9 @@ eight-step CFG-3 distilled student.
24
  > **Important — cross-language prompts.** When an English reference voice is
25
  > speaking Russian, experiment with `duration_scale` below `1` (for example
26
  > `0.8`). It is usually a better starting point than the default `1`.
 
 
 
27
 
28
  ## Installation
29
 
@@ -64,7 +67,7 @@ marking, and Unicode normalization, call `tts.normalize_text(text)`.
64
 
65
  | Control | Values | Effect |
66
  | --- | --- | --- |
67
- | `voice` | `ru_f1`, `ru_f2`, `ru_m1`, `ru_m5`, `eng_f3`, `eng_f4_whisper`, `eng_f5`, `eng_m2_whisper`, `eng_m3`, `eng_m4` | Selects a bundled precomputed voice style named after its reference audio. |
68
  | `duration_scale` | Positive float, default `1` | Higher values produce slower, longer speech. |
69
  | `diffusion_model` | `distilled` (default), `teacher` | Distilled is faster; teacher supports adjustable CFG. |
70
  | `ruaccent_mode` | `full` (default), `dictionary` | Full uses RUAccent neural ONNX graphs plus dictionaries; dictionary mode loads dictionaries only. |
@@ -87,8 +90,12 @@ distilled sampler has CFG 3 baked into its graph.
87
 
88
  ## Language tags, numbers, and Russian stress
89
 
90
- Wrap text in `<en>…</en>` or `<ru>…</ru>`. Numbers inside those tags are
91
- expanded to words in the matching language before synthesis:
 
 
 
 
92
 
93
  ```python
94
  waveform = tts.generate_speech(
 
12
  # TeraTTSv2 ONNX
13
 
14
  TeraTTSv2 is a self-contained ONNX Runtime text-to-speech release with
15
+ selectable diffusion samplers, ten voice styles, Russian stress marking, and
16
  streamed audio output.
17
 
18
  This release uses the clean English/Russian 25-second teacher and its matching
 
24
  > **Important — cross-language prompts.** When an English reference voice is
25
  > speaking Russian, experiment with `duration_scale` below `1` (for example
26
  > `0.8`). It is usually a better starting point than the default `1`.
27
+ >
28
+ > **Recommended voices:** `ru_f1` and `ru_m5` are the preferred Russian voice
29
+ > prompts.
30
 
31
  ## Installation
32
 
 
67
 
68
  | Control | Values | Effect |
69
  | --- | --- | --- |
70
+ | `voice` | `ru_f1`, `ru_m5`, `ru_f2`, `ru_m1`, `eng_f3`, `eng_f4_whisper`, `eng_f5`, `eng_m2_whisper`, `eng_m3`, `eng_m4` | Selects a bundled precomputed voice style named after its reference audio. ★ marks the recommended Russian prompts. |
71
  | `duration_scale` | Positive float, default `1` | Higher values produce slower, longer speech. |
72
  | `diffusion_model` | `distilled` (default), `teacher` | Distilled is faster; teacher supports adjustable CFG. |
73
  | `ruaccent_mode` | `full` (default), `dictionary` | Full uses RUAccent neural ONNX graphs plus dictionaries; dictionary mode loads dictionaries only. |
 
90
 
91
  ## Language tags, numbers, and Russian stress
92
 
93
+ Language tags are required: wrap text in `<en>…</en>` or `<ru>…</ru>`. The
94
+ runtime rejects untagged or unbalanced input with a tag-specific error. Before
95
+ number expansion and stress marking, it inserts spaces after punctuation and
96
+ between a number and a following word. Characters outside the model vocabulary
97
+ are skipped with a runtime warning. Numbers inside language tags are expanded to
98
+ words in the matching language before synthesis:
99
 
100
  ```python
101
  waveform = tts.generate_speech(