diff --git a/public/text-to-speech.html b/public/text-to-speech.html index fa0e4df..08e7cd6 100644 --- a/public/text-to-speech.html +++ b/public/text-to-speech.html @@ -117,12 +117,22 @@
Test our community-hosted endpoint before self-hosting:
-curl https://speech.ai.unturf.com/v1/audio/speech \
+ # Auto-detect model from voice name
+curl https://speech.ai.unturf.com/v1/audio/speech \
-H "Content-Type: application/json" \
-d '{
"input": "Welcome to uncloseai-speech. Four TTS engines, zero API keys.",
"voice": "alloy"
- }' > output.mp3
+ }' > output.mp3
+
+# Explicitly specify model (tts-1, tts-1-hd, tts-1-silero, tts-1-kokoro)
+curl https://speech.ai.unturf.com/v1/audio/speech \
+ -H "Content-Type: application/json" \
+ -d '{
+ "model": "tts-1-hd",
+ "input": "High quality XTTS voice cloning.",
+ "voice": "alloy"
+ }' > output-hd.mp3