Texto a voz
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.wavinput: hasta 4096 caracteres.response_format:wav(24 kHz, mono, 16 bits) opcm.speed: de0.25a4.voice: una de las voces de la tabla de abajo;af_heartcuando no envías ninguna.
| Idioma | Voces |
|---|---|
| Inglés (EE. UU.) | af_heart, af_bella, af_nova, am_adam, am_michael y más |
| Inglés (Reino Unido) | bf_emma, bf_isabella, bm_george, bm_lewis y más |
| Español | ef_dora, em_alex, em_santa |
| Francés | ff_siwis |
| Italiano | if_sara, im_nicola |
| Portugués (Brasil) | pf_dora, pm_alex, pm_santa |
| Hindi | hf_alpha, hf_beta, hm_omega, hm_psi |
Voz a texto
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." }- Envía el audio como
multipart/form-data; la carga completa puede pesar hasta 25 MiB. language(por ejemploesode) ayuda cuando conoces el idioma.response_format:json(el predeterminado),text,srt,vttoverbose_json, con segmentos y marcas de tiempo.