RelayPointdocs

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.mp3

Voices

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.

VoiceNameLanguageGender
aria (default)Ariaen-USfemale
bellaBellaen-USfemale
michaelMichaelen-USmale
adamAdamen-USmale
emmaEmmaen-GBfemale
georgeGeorgeen-GBmale
camilleCamillefr-FRfemale
doraDorapt-BRfemale
alexAlexpt-BRmale
lucia_esLucíaes-ESfemale
santiagoSantiagoes-ESmale
giuliaGiuliait-ITfemale
marcoMarcoit-ITmale
priyaPriyahi-INfemale
rahulRahulhi-INmale
yukiYukija-JPfemale
linLinzh-CNfemale
zaneleZaneleen-ZAfemale
siphoSiphoen-ZAmale
sw_amaniAmaniswfemale
fr_claireClairefr-FRfemale
pt_inesInêspt-PTfemale
ar_noorNoorarfemale
de_lenaLenade-DEfemale
nl_sanneSannenl-NLfemale
ms_aisyahAisyahmsfemale
tr_elifEliftr-TRfemale
ru_annaAnnaru-RUfemale
pl_zofiaZofiapl-PLfemale
sv_ebbaEbbasv-SEfemale
da_frejaFrejada-DKfemale
no_ingridIngridnb-NOfemale
fi_ainoAinofi-FIfemale
el_eleniEleniel-GRfemale
he_noaNoahe-ILfemale
ko_jiwooJi-wooko-KRfemale
za_leratoLeratoen-ZAfemale
za_kagisoKagisoen-ZAmale
za_nomsaNomsaen-ZAfemale
za_johanJohanen-ZAmale
za_priyaPriya-Leeen-ZAfemale
zu_thandiweThandiwezu-ZAfemale
zu_bonganiBonganizu-ZAmale
xh_ayandaAyandaxh-ZAfemale
xh_luvuyoLuvuyoxh-ZAmale
st_palesaPalesast-ZAfemale
st_tebohoTebohost-ZAmale
tn_kefilweKefilwetn-ZAfemale
tn_tumeloTumelotn-ZAmale
af_annelieAnnelieaf-ZAfemale
af_pieterPieteraf-ZAmale
sw_barakaBarakasw-KEmale
sw_neemaNeemasw-TZfemale
ng_chiamakaChiamakaen-NGfemale
ng_emekaEmekaen-NGmale
gh_akosuaAkosuaen-GHfemale
gh_kofiKofien-GHmale
ke_wanjiruWanjiruen-KEfemale
ke_otienoOtienoen-KEmale
fr_julienJulienfr-FRmale
fr_aminataAminatafr-SNfemale
fr_yaoYaofr-CImale
fr_mbuyiMbuyifr-CDmale
pt_ao_anaAnapt-AOfemale
pt_mz_tomasTomáspt-MZmale
pt_pt_ruiRuipt-PTmale
ar_karimKarimarmale
ar_hudaHudaarfemale
gb_oliviaOliviaen-GBfemale
gb_arthurArthuren-GBmale
us_mayaMayaen-USfemale
us_haroldHarolden-USmale
us_graceGraceen-USfemale
JavaScript
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
JSON
{ "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}.

JavaScript
// 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
}