Skip to content

Text to speech

Tapra-Speak / tapra-speak-v1

Tapra-Speak turns Arabic script or Arabizi into speech with Tunisian prosody instead of MSA recitation. It is the model behind Text to Speech: type a script, pick a voice, download WAV, MP3 or FLAC up to 48 kHz. On a call flow it answers customers in the accent they called in with.

Make a request

Generate a voiceoverbash
curl -X POST "$TAPRA_API_URL/v1/audio/speech" \
  -H "Authorization: Bearer $TAPRA_API_KEY" \
  -F model=tapra-speak-v1 \
  -F "input=أهلا بيك في Tapra، نجم نعاونك في شنوّة؟" \
  -F response_format=wav \
  --output greeting.wav

Inputs and parameters

Model id
tapra-speak-v1 · tapra-speak-flash-v1
Endpoint
POST /v1/audio/speech
Output
WAV, MP3 or FLAC, 22.05 to 48 kHz (base64 in JSON, or raw bytes)
Character limit
5,000 characters per request
Voices
voice: youssef · zeineb · karim · sarra · anis · rim · hamza · mariem · mehdi · ines · walid (default youssef)
Pacing
speed 0.7 to 1.3; target_duration fits the read to a length
Arabizi
convert_arabizi=true (default) converts Latin-typed Derja first
Billing unit
Input characters, 0.003 TND minimum per request
Response extras
duration, processing_ms, usage, x-tapra-cost-tnd, register_st, words (with captions)
Styles
style: ad · ad_calm · narration · explainer · reel · conversation
Loudness
loudness: social -14 · podcast -16 · broadcast -23 LUFS
Numbers
numbers: derja (default) · french; phone numbers in groups (74 250 310)
Captions
captions: words · srt · vtt, free with the voice, only when asked for

Recorded examples

Eleven preset voices, everyday scripts. Every clip is synthetic Tapra-Speak audio, with no reference recording. Press play.

input · voice: youssef

أهلا خويا، نتلاقاو غدوة après le travail؟

Audio · 22.05 kHz mono WAV

Voice: youssef

0:00 / 0:00
tapra-speak-v1 · pronunciation_style tunisian

Capabilities

Tunisian prosody, not MSA recitation

Numbers, greetings, and filler words land the way a Tunisian speaker says them, which is what makes a voicebot sound local rather than dubbed.

Preset voices and pacing

Pick one of eleven preset Tunisian voices (youssef, zeineb, karim, sarra, anis, rim, hamza, mariem, mehdi, ines, walid); each carries its own speaking style. speed (0.7 to 1.3) sets the talking pace, and target_duration fits the read to a length in seconds.

WAV, MP3 or FLAC

response_format "wav", "mp3" or "flac" returns the audio bytes; "json" returns it base64-encoded with duration and usage. sample_rate goes up to 48 kHz for video timelines.

Made for ads, narration and reels

style (ad, ad_calm, narration, explainer, reel or conversation) sets pauses, pace, take selection and platform loudness in one field. captions returns word timings and SRT or VTT files at no extra cost. Phone numbers are read in groups, domains like tapra.tn and percentages are spoken naturally, and model codes such as A15 or 256GB are spelled out, in Derja or French with numbers.

Billing

0.340 TND / 1k chars. Usage draws from the same prepaid TND balance as the studios. See pricing and all variants.

Common questions

Can I hear a voice before I use it?

Yes. Text to Speech lists the built-in Tunisian voices and plays a sample of each.

Does it output MP3?

Yes. The API returns wav, mp3 or flac natively: response_format=mp3 gives you the raw MP3 bytes (or audio_format=mp3 inside the JSON response), at 22.05 to 48 kHz. Text to Speech exposes the same formats for download.