Skip to main content
DocumentationDevelopers

Audio

Turn text into speech with Kokoro and speech into text with Whisper.

Documentation menu

Text to speech

curl "$CCSIO_BASE_URL/audio/speech" \
  -H "Authorization: Bearer $CCSIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "kokoro-82m", "input": "Welcome to the AI Control Plane.", "voice": "af_heart", "response_format": "wav"}' \
  --output welcome.wav
  • input: up to 4,096 characters.
  • response_format: wav (24 kHz, mono, 16-bit) or pcm.
  • speed: from 0.25 to 4.
  • voice: one of the voices below; af_heart when you send none.
LanguageVoices
English (US)af_heart, af_bella, af_nova, am_adam, am_michael and more
English (UK)bf_emma, bf_isabella, bm_george, bm_lewis and more
Spanishef_dora, em_alex, em_santa
Frenchff_siwis
Italianif_sara, im_nicola
Portuguese (Brazil)pf_dora, pm_alex, pm_santa
Hindihf_alpha, hf_beta, hm_omega, hm_psi

Speech to text

curl "$CCSIO_BASE_URL/audio/transcriptions" \
  -H "Authorization: Bearer $CCSIO_API_KEY" \
  -F model=whisper-large-v3 \
  -F [email protected]
JSON
{ "text": "Welcome to the AI Control Plane." }
  • Send the audio as multipart/form-data; the whole upload may be up to 25 MiB.
  • language (for example es or de) helps when you know the language.
  • response_format: json (default), text, srt, vtt or verbose_json with segments and timestamps.
Explore the platform

Get your first API key

Registration is open. Four steps to your first call: create your account, create your organization, create your API key, and start using it.

  1. 01Create your account
  2. 02Create your organization
  3. 03Create your API key
  4. 04Start using it