Add curl example showing model parameter usage
This commit is contained in:
parent
d5088b6978
commit
190ae74625
1 changed files with 12 additions and 2 deletions
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue