Download request.http from pantelnm/OpenSpeech-TTS: direct link, hf CLI and curl.
- Browser
- Download file 284 Bytes
-
https://huggingface.co/pantelnm/OpenSpeech-TTS/resolve/main/request.http
- Command line
-
hf download hf://pantelnm/OpenSpeech-TTS/request.http
-
curl -L -o request.http https://huggingface.co/pantelnm/OpenSpeech-TTS/resolve/main/request.http
284 Bytes
| curl http://localhost:5000/v1/audio/speech \ | |
| -H "Authorization: Bearer API-KEY" \ | |
| -H "Content-Type: application/json" \ | |
| -d '{ | |
| "model": "tts-1", | |
| "input": "Today is a wonderful day to build something people love!", | |
| "voice": "alloy" | |
| }' \ | |
| --output speech.mp3 |