Products
Audio
Text to speech and speech to text.
Text to speech
POST /v1/audio/speech returns the audio file itself (audio/mpeg or audio/wav). input is up to 20,000 characters (longer input is refused with invalid_request); long text is voiced sentence by sentence and returned as one file, with a short pause between sentences. voice defaults to default; response_format is mp3 (default) or wav. You pay per character of input, once. The RelayPoint-Audio-Seconds header gives the length of WAV audio; send timings: true to get JSON instead: audio_base64, content_type, duration_s and timings (sentence start and end times). For longer texts (up to 100,000 characters) create an rp/tts job: its result has the same timings. Scope: audio.
Per-sentence style and natural reading: send segments instead of input — [{"text": "Welcome!", "emotion": "warm", "pace": "relaxed"}, {"text": "Sadly it's sold.", "emotion": "apologetic"}] — or a style for the whole request. emotion: neutral, warm, cheerful, excited, calm, empathetic, apologetic, serious, confident, reassuring, sad; pace: slow, relaxed, normal, brisk, fast; energy: low, normal, high. Ultra and Standard voices honour all three; Kokoro voices only pace, Chatterbox voices only energy; the rest is ignored, never an error. normalize: true reads amounts (R1 250,50), times, dates, South African phone numbers and abbreviations like a person would (language: en, en-ZA, af, zu, xh, fr, pt, sw; default the voice's); you then pay for the larger of your text and the text voiced. The options are in GET /v1/catalog → speech_options.
curl https://api.relaypoints.online/v1/audio/speech \
-H "Authorization: Bearer $RELAYPOINT_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "model": "rp/tts", "input": "Your viewing is confirmed for 10 am.", "response_format": "mp3" }' \
--output reply.mp3Voices
voice picks one of the product's voices. GET /v1/models lists them for each speech product (voices, with default: true on the default). default uses that voice, and the OpenAI names alloy, nova, shimmer, echo, onyx and fable are accepted, so OpenAI SDK code works unchanged. An unknown voice is refused with 400 invalid_request and the list of voices. The voice used comes back in the X-RelayPoint-Voice header. The same voices work for rp/tts jobs and for rp/video-avatar driven by text.
| Voice | Name | Language | Gender |
|---|---|---|---|
aria (default) | Aria | en-US | female |
bella | Bella | en-US | female |
michael | Michael | en-US | male |
adam | Adam | en-US | male |
emma | Emma | en-GB | female |
george | George | en-GB | male |
camille | Camille | fr-FR | female |
dora | Dora | pt-BR | female |
alex | Alex | pt-BR | male |
lucia_es | Lucía | es-ES | female |
santiago | Santiago | es-ES | male |
giulia | Giulia | it-IT | female |
marco | Marco | it-IT | male |
priya | Priya | hi-IN | female |
rahul | Rahul | hi-IN | male |
yuki | Yuki | ja-JP | female |
lin | Lin | zh-CN | female |
zanele | Zanele | en-ZA | female |
sipho | Sipho | en-ZA | male |
sw_amani | Amani | sw | female |
fr_claire | Claire | fr-FR | female |
pt_ines | Inês | pt-PT | female |
ar_noor | Noor | ar | female |
de_lena | Lena | de-DE | female |
nl_sanne | Sanne | nl-NL | female |
ms_aisyah | Aisyah | ms | female |
tr_elif | Elif | tr-TR | female |
ru_anna | Anna | ru-RU | female |
pl_zofia | Zofia | pl-PL | female |
sv_ebba | Ebba | sv-SE | female |
da_freja | Freja | da-DK | female |
no_ingrid | Ingrid | nb-NO | female |
fi_aino | Aino | fi-FI | female |
el_eleni | Eleni | el-GR | female |
he_noa | Noa | he-IL | female |
ko_jiwoo | Ji-woo | ko-KR | female |
za_lerato | Lerato | en-ZA | female |
za_kagiso | Kagiso | en-ZA | male |
za_nomsa | Nomsa | en-ZA | female |
za_johan | Johan | en-ZA | male |
za_priya | Priya-Lee | en-ZA | female |
zu_thandiwe | Thandiwe | zu-ZA | female |
zu_bongani | Bongani | zu-ZA | male |
xh_ayanda | Ayanda | xh-ZA | female |
xh_luvuyo | Luvuyo | xh-ZA | male |
st_palesa | Palesa | st-ZA | female |
st_teboho | Teboho | st-ZA | male |
tn_kefilwe | Kefilwe | tn-ZA | female |
tn_tumelo | Tumelo | tn-ZA | male |
af_annelie | Annelie | af-ZA | female |
af_pieter | Pieter | af-ZA | male |
sw_baraka | Baraka | sw-KE | male |
sw_neema | Neema | sw-TZ | female |
ng_chiamaka | Chiamaka | en-NG | female |
ng_emeka | Emeka | en-NG | male |
gh_akosua | Akosua | en-GH | female |
gh_kofi | Kofi | en-GH | male |
ke_wanjiru | Wanjiru | en-KE | female |
ke_otieno | Otieno | en-KE | male |
fr_julien | Julien | fr-FR | male |
fr_aminata | Aminata | fr-SN | female |
fr_yao | Yao | fr-CI | male |
fr_mbuyi | Mbuyi | fr-CD | male |
pt_ao_ana | Ana | pt-AO | female |
pt_mz_tomas | Tomás | pt-MZ | male |
pt_pt_rui | Rui | pt-PT | male |
ar_karim | Karim | ar | male |
ar_huda | Huda | ar | female |
gb_olivia | Olivia | en-GB | female |
gb_arthur | Arthur | en-GB | male |
us_maya | Maya | en-US | female |
us_harold | Harold | en-US | male |
us_grace | Grace | en-US | female |
const audio = await rp.audio.speech.create({ model: "rp/tts", input: "Bonjour, votre visite est confirmée.", voice: "camille" });
// The voice used is in the X-RelayPoint-Voice response header.
const { data } = await rp.models.list();
console.log(data.find((m) => m.id === "rp/tts")?.voices);Speech to text
POST /v1/audio/transcriptions takes multipart/form-data with the audio in a file field (up to 25 MB), model (default rp/stt), an optional language hint (e.g. en, fr, pt) and response_format: json (default), text (plain text body) or verbose_json (adds language and duration). You pay per second of audio.
curl https://api.relaypoints.online/v1/audio/transcriptions \
-H "Authorization: Bearer $RELAYPOINT_API_KEY" \
-F model=rp/stt \
-F language=pt \
-F file=@voice-note.ogg{ "text": "Bom dia, gostaria de marcar uma visita…", "usage": { "seconds": 14, "cost_usd": "0.002800" } }Cloned voices
Clone a voice with rp/voice-clone ($1 per voice, then speech at the rp/tts price). It needs the voice owner's recorded consent: an adult reads the consent statement aloud, and the recording is checked against the sample and kept as evidence. Public figures can't be cloned. A clone belongs to the account that made it (never shared with sub-accounts or a reseller), carries an inaudible AI watermark, and is deleted with DELETE /v1/voice_clones/{id}.
// 1. The voice owner reads this statement aloud (2–30 s), word for word.
const { text } = await rp.voiceClones.consentStatement("en-ZA");
// 2. Clone from 10 s – 3 min of the owner speaking alone, with that consent recording.
const job = await rp.jobs.create({
model: "rp/voice-clone",
input: {
name: "Thandi",
sample_url: "https://files.example.com/thandi-sample.wav",
consent_audio_url: "https://files.example.com/thandi-consent.wav",
consent: { subject_name: "Thandi Mokoena", attested_by: "Thandi Mokoena", method: "self", attestation: true }, // the ticked consent checkbox
},
});
const done = await rp.jobs.wait(job.id);
// 3. Speak with it (your account only).
const audio = await rp.audio.speech.create({ model: "rp/tts", voice: done.result.voice_id, input: "Sawubona! Your viewing is confirmed." });Streaming for calls
Send stream: true and the audio arrives as it is voiced: the first sentence after one short call, then the rest while you play it. Formats: pcm (16-bit little-endian, 24 kHz mono; the default for streams), wav (the same with a streaming header) and mulaw (8 kHz G.711 for telephony). You are charged once, on the characters voiced: stop reading and the rest is neither voiced nor charged. GET /v1/voices lists every voice with its accent, a preview and available; Zanele and Sipho speak South African English.
// For calls: audio as it is voiced (first sentence first). mulaw = 8 kHz G.711 for telephony.
for await (const bytes of rp.audio.speech.stream({ model: "rp/tts", voice: "zanele", input: text, response_format: "mulaw" })) {
callMedia.send(bytes); // e.g. your telephony media stream
}