You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+58-1
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,26 @@ Spark-TTS is an advanced text-to-speech system that uses the power of large lang
30
30
-**Simplicity and Efficiency**: Built entirely on Qwen2.5, Spark-TTS eliminates the need for additional generation models like flow matching. Instead of relying on separate models to generate acoustic features, it directly reconstructs audio from the code predicted by the LLM. This approach streamlines the process, improving efficiency and reducing complexity.
31
31
-**High-Quality Voice Cloning**: Supports zero-shot voice cloning, which means it can replicate a speaker's voice even without specific training data for that voice. This is ideal for cross-lingual and code-switching scenarios, allowing for seamless transitions between languages and voices without requiring separate training for each one.
32
32
-**Bilingual Support**: Supports both Chinese and English, and is capable of zero-shot voice cloning for cross-lingual and code-switching scenarios, enabling the model to synthesize speech in multiple languages with high naturalness and accuracy.
33
+
-**Controllable Speech Generation**: Supports creating virtual speakers by adjusting parameters such as gender, pitch, and speaking rate.
34
+
35
+
---
36
+
37
+
<tablealign="center">
38
+
<tr>
39
+
<td align="center"><b>Inference Overview of Voice Cloning</b><br><img src="src/figures/infer_voice_cloning.png" width="80%" /></td>
40
+
</tr>
41
+
<tr>
42
+
<td align="center"><b>Inference Overview of Controlled Generation</b><br><img src="src/figures/infer_control.png" width="80%" /></td>
Alternatively, you can directly execute the following command in the command line to perform inference:
102
+
103
+
```sh
104
+
python -m cli.inference \
105
+
--text "text to synthesis." \
106
+
--device 0 \
107
+
--save_dir "path/to/save/audio" \
108
+
--model_dir pretrained_models/Spark-TTS-0.5B \
109
+
--prompt_text "transcript of the prompt audio" \
110
+
--prompt_speech_path "path/to/prompt_audio"
111
+
```
112
+
113
+
**UI Usage**
114
+
115
+
You can start the UI interface by running `python webui.py`, which allows you to perform Voice Cloning and Voice Creation. Voice Cloning supports uploading reference audio or directly recording the audio.
0 commit comments