Audio
Text to speech in 24 languages, a voice changer for recordings, and translation of a recording or a video into speech in another language.
Speech is $0.14 per 1,000 characters, the voice changer $0.41 per started minute and translation $0.21 a minute, charged on success. See the audio prices or get the exact price first with POST /v1/quotes, product: "audio" and the operation. Needs the audio permission.
Headers
Bearer fr_live_….Text to speech
POST /v1/audio/speech reads text aloud in the voice you choose, with the model speech-2.8-hd. Priced per started 1,000 characters.
English_expressive_narrator. GET /v1/models lists every voice with its language (24 languages), such as English_CalmWoman, Spanish_SereneWoman or German_FriendlyMan. Voices you made on framera.ai work too.English or French.happy, sad, angry, fearful, disgusted, surprised or calm.0.5 to 2, where 1 is normal.job.succeeded, job.failed or job.cancelled event to it when the job finishes.Voice changer
POST /v1/audio/voice-change keeps what was said and how, and changes who says it. Recordings up to 5 minutes, priced per started minute.
voice-change in GET /v1/models, such as Rachel, Aria, Brian or George.job.succeeded, job.failed or job.cancelled event to it when the job finishes.Translate
POST /v1/audio/translate transcribes a recording, or the speech in a video, translates it and speaks the translation in the target language. The output is the translated speech as an audio file (a video is not re-dubbed). Recordings and videos up to 3 minutes.
upload_… id from POST /v1/uploads. Send either audio or video.upload_… id from POST /v1/uploads.en, es, fr, de, it, pt, nl, pl, fi, cs, ro, el, uk, ru, tr, ar, hi, id, th, vi, ja, ko, zh (Mandarin) or yue (Cantonese).job.succeeded, job.failed or job.cancelled event to it when the job finishes.The job carries the transcript, the translation, the detected sourceLanguage and the voice used.
Returns
201 Created with a job object: status: "queued", the settings you sent and its price. The job carries operation. Once it succeeds, outputs holds the audio file.
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_request | A field is missing, wrong or out of range. The message says which; details.issues lists the fields. |
| 401 | unauthorized | The key is missing, wrong or revoked. |
| 402 | insufficient_balance | Your balance is lower than the price. Top up or turn on auto-recharge. |
| 403 | permission_denied | The key lacks the permission, a monthly limit would be passed, or the address is not allowed. details.reason says which: key_permission, key_monthly_limit, monthly_limit or ip_not_allowed. |
| 409 | idempotency_conflict | The Idempotency-Key was used with a different body, or the first request with it is still running. |
| 422 | content_refused | The request breaks the use rules. Nothing is charged. |
| 429 | rate_limited | Too many requests. Retry after Retry-After seconds. |
| 503 | model_paused | The model is paused for a short while. Retry later. |
| 500 or 503 | server_error | Something went wrong on our side, or a service is briefly unavailable. Any hold is released at once. |