Add curl example showing model parameter usage

This commit is contained in:
Russell Ballestrini 2025-11-10 03:46:06 -05:00
parent d5088b6978
commit 190ae74625

View file

@ -117,12 +117,22 @@
<p>Test our community-hosted endpoint before self-hosting:</p>
<pre><code class="bash">curl https://speech.ai.unturf.com/v1/audio/speech \
<pre><code class="bash"># 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</code></pre>
}' > 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</code></pre>
<h3 id="voice-auto-detection">Auto-Detection Magic</h3>