Developer platform

Playground

Turn text into speech

Write in Tunisian Derja, choose a voice, and listen.

0 / 5,000 characters
Voice
Dido · Text to speech
First byte
–
Total
–
Request
curl https://baarcha.tn/api/v1/audio/speech \
  -H "Authorization: Bearer $BAARCHA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "dido",
    "input": "الشارع مسكر اليوم على خاطر الأشغال، لازم نعملو دورة طويلة باش نوصلو للخدمة في الوقت.",
    "voice": "female"
  }' \
  --output speech.mp3

Runs against the public v1 API with your key. This page executes the same call keylessly as a demo.

Clone a voice with the API
Request
curl https://baarcha.tn/api/v1/voices \
  -H "Authorization: Bearer $BAARCHA_API_KEY" \
  -F name='صوتي' \
  -F consent=true \
  -F sample=@'take-one.wav'

Returns a vc_… id to use as voice in the speech request. Consent is required. See the voices reference for recording requirements and voice status.