Developer platform

Playground

0/5,000
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.

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

Answers with a vc_… id already ready: one clip in, a usable voice out, in a second or two. Pass the id as voice above; there is nothing to poll. GET /api/v1/voices/{id} and the status field are still part of the contract and still worth branching on, because they are what lets a slower build appear later without breaking a client that already reads them. consent is required by the server on both dialects, and a key does not skip what the dashboard asks for. Full reference in the voices docs.