Bark TTS

Text-to-speech with cloned voices and emotion presets.

1 endpoint48 calls1/1 passing
Get API key

Generate speech audio from text input.

POST/v1/…bark/synthesize
passing · 21.4s5m cache

Try it

Checking your keys…

Parameters

text

string · body · required

Text untuk di-synthesize. Max 500 chars. Support sound effects: [laughs], [laughter], [sighs], [gasps], [clears throat]. Pakai ♪ ... ♪ untuk singing, "..." untuk hesitation, CAPS untuk emphasis.

voice

enum · body · optional

Voice preset. "Unconditional" = random voice tiap run, "Announcer" = narrator-style. Multilingual: Speaker N (lang) — en/de/es/fr/hi/it/ja/ko/pl/pt/ru/tr/zh. Default "Speaker 1 (en)".

Example response

{"project":"ai:bark",  "data": {"text":"Hello! [laughs] Welcome to Zapi — your all-in-one public API. ♪ Let us begin ♪",    "audio": {"url":"https://suno-bark.hf.space/gradio_api/file=/tmp/gradio/62069bbdc72c0bde014794be5ee1972c981fe387b26c7e15768df1c7e3165110/audio.wav","mimeType":"audio/wav"    },"voice":"Speaker 1 (en)","provider":"bark"  },"timestamp":"2026-07-10T05:18:18Z"}

Errors

  • 401Missing or invalid x-api-key
  • 404Not found or private
  • 429Rate limit or monthly quota reached

Code

const data = await client.run(  "ai:bark",  "synthesize",  { text: "Hello! [laughs] Senang berkenalan, my name is Zapi AI.", voice: "Speaker 1 (en)" });