About
Reads text aloud, on /v1/audio/speech.
It is called on /v1/audio/speech, never on chat, and billed per character spoken.
- Text to speech
Call it
Send the model id with your API key. Keys are made in the dashboard; the quickstart has the rest.
silicon - zsh
curl https://api.siliconnetwork.io/v1/audio/speech \
-H "Authorization: Bearer $SILICON_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"kokoro-82m","input":"Welcome to Silicon Network.","voice":"af_heart","response_format":"wav"}' \
--output welcome.wavspeak.py
from openai import OpenAI
client = OpenAI(base_url="https://api.siliconnetwork.io/v1", api_key="$SILICON_API_KEY")
with client.audio.speech.with_streaming_response.create(
model="kokoro-82m", voice="af_heart", input="Welcome to Silicon Network.", response_format="wav"
) as resp:
resp.stream_to_file("welcome.wav")More in Audio2
Whisper large-v3-turbo
Whisper
Transcribes speech to text, on /v1/audio/transcriptions.
- Speech to text
- Multilingual
Rate unavailable
GetWhisper small
Whisper
Transcribes speech to text, on /v1/audio/transcriptions.
- Speech to text
- Multilingual
Rate unavailable
Get