Spaces:
Sleeping
Sleeping
Download api from ygutierrez/TTS: direct link, hf CLI and curl.
- Browser
- Download file 407 Bytes
-
https://huggingface.co/spaces/ygutierrez/TTS/resolve/main/api
- Command line
-
hf download hf://spaces/ygutierrez/TTS/api
-
curl -L -o api https://huggingface.co/spaces/ygutierrez/TTS/resolve/main/api
407 Bytes
| from TTS.api import TTS | |
| tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2", gpu=True) | |
| # generate speech by cloning a voice using default settings | |
| tts.tts_to_file(text="It took me quite a long time to develop a voice, and now that I have it I'm not going to be silent.", | |
| file_path="output.wav", | |
| speaker_wav="/path/to/target/speaker.wav", | |
| language="en") |