---
title: "Convert Darija Text to Speech"
method: POST
path: "/synthesize/darija-audio/{darija_country}"
tags: ["Text-to-Speech"]
---

# Convert Darija Text to Speech

`POST /synthesize/darija-audio/{darija_country}`

## Request

- Base URL: `https://apis.smartly.ai`
- URL: `https://apis.smartly.ai/synthesize/darija-audio/{darija_country}`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/smartly/apis/smartly-ai-apis/docs/synthesize/darija-audio/:darija_country/post.ts> (a function with typed inputs; its response is checked against the schema)

Generates a WAV audio file from Arabic Darija input text using a dialect-specific voice model ('darija_marocaine' or 'darija_tunisienne' or 'amiyia_egyptienne').

## Path parameters

- `darija_country` 'darija_marocaine' | 'darija_tunisienne' | 'amiyia_egyptienne', required

## Request body

- object
  - `text` string, required: Text to convert into speech (Darija in Arabic script)
  - `speaker_name` string: Optional speaker name to customize the voice

## Response `200`

Audio successfully synthesized

## Other responses

- `400`: Invalid request (missing text or invalid dialect)
- `500`: Internal server error during synthesis

---

[API](https://skmtc.dev/smartly/apis/smartly-ai-apis.md) - [All operations](https://skmtc.dev/smartly/apis/smartly-ai-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/smartly/apis/smartly-ai-apis/revisions/1e26909d86c9?raw)
