Instructions to use Sourajit123/SouraTTS with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Pocket-TTS
How to use Sourajit123/SouraTTS with Pocket-TTS:
from pocket_tts import TTSModel import scipy.io.wavfile tts_model = TTSModel.load_model("Sourajit123/SouraTTS") voice_state = tts_model.get_state_for_audio_prompt( "hf://kyutai/tts-voices/alba-mackenna/casual.wav" ) audio = tts_model.generate_audio(voice_state, "Hello world, this is a test.") # Audio is a 1D torch tensor containing PCM data. scipy.io.wavfile.write("output.wav", tts_model.sample_rate, audio.numpy()) - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -26,8 +26,8 @@ expressiveness powered by an EmoShift-inspired activation steering layer.
|
|
| 26 |
from emotts import EmoTTS
|
| 27 |
|
| 28 |
tts = EmoTTS(
|
| 29 |
-
weights="
|
| 30 |
-
meta="
|
| 31 |
)
|
| 32 |
|
| 33 |
tts.synthesize(
|
|
@@ -45,8 +45,8 @@ pip install pocket-tts scipy torch
|
|
| 45 |
```
|
| 46 |
|
| 47 |
Then download the three files from this repo:
|
| 48 |
-
- `
|
| 49 |
-
- `
|
| 50 |
- `emotts.py`
|
| 51 |
|
| 52 |
Place all three in the same directory and run the demo above.
|
|
|
|
| 26 |
from emotts import EmoTTS
|
| 27 |
|
| 28 |
tts = EmoTTS(
|
| 29 |
+
weights="SouraTTS.pt",
|
| 30 |
+
meta="SouraTTS.json"
|
| 31 |
)
|
| 32 |
|
| 33 |
tts.synthesize(
|
|
|
|
| 45 |
```
|
| 46 |
|
| 47 |
Then download the three files from this repo:
|
| 48 |
+
- `SouraTTS.pt`
|
| 49 |
+
- `SouraTTS.json`
|
| 50 |
- `emotts.py`
|
| 51 |
|
| 52 |
Place all three in the same directory and run the demo above.
|