Text-to-Speech
Transformers
Safetensors
PyTorch
English
Chinese
breeze
text-generation
speech-generation
voice-clone
voice-design
voice-direction
cuda
Instructions to use BreezeBlue/Breeze-TTS-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BreezeBlue/Breeze-TTS-2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="BreezeBlue/Breeze-TTS-2")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForSeq2SeqLM model = AutoModelForSeq2SeqLM.from_pretrained("BreezeBlue/Breeze-TTS-2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -150,7 +150,7 @@ python infer.py ../breeze-tts-2 \
|
|
| 150 |
--ref-audio reference.wav \
|
| 151 |
--ref-text "This is the exact transcript of the reference audio." \
|
| 152 |
--text "(clears throat) We need to discuss what happened last night." \
|
| 153 |
-
--instruction "
|
| 154 |
--cfg-scale 4 \
|
| 155 |
--output outputs/voice_direction.wav
|
| 156 |
```
|
|
@@ -171,7 +171,7 @@ curl -X POST http://127.0.0.1:7860/v1/audio/speech \
|
|
| 171 |
-F "ref_audio=@reference.wav" \
|
| 172 |
-F "ref_text=This is the exact transcript of the reference audio." \
|
| 173 |
-F "text=(clears throat) We need to discuss what happened last night." \
|
| 174 |
-
-F "instruction=
|
| 175 |
-F "seed=42" \
|
| 176 |
--output voice_direction.pcm
|
| 177 |
```
|
|
|
|
| 150 |
--ref-audio reference.wav \
|
| 151 |
--ref-text "This is the exact transcript of the reference audio." \
|
| 152 |
--text "(clears throat) We need to discuss what happened last night." \
|
| 153 |
+
--instruction "Speak slowly with a restrained, serious tone." \
|
| 154 |
--cfg-scale 4 \
|
| 155 |
--output outputs/voice_direction.wav
|
| 156 |
```
|
|
|
|
| 171 |
-F "ref_audio=@reference.wav" \
|
| 172 |
-F "ref_text=This is the exact transcript of the reference audio." \
|
| 173 |
-F "text=(clears throat) We need to discuss what happened last night." \
|
| 174 |
+
-F "instruction=Speak slowly with a restrained, serious tone." \
|
| 175 |
-F "seed=42" \
|
| 176 |
--output voice_direction.pcm
|
| 177 |
```
|