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

# Transcribe Darija audio

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

## Request

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

Transcribes an audio file in Darija dialect (Moroccan or Tunisian or egyptian) and returns the transcribed text.

## Path parameters

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

## Request body `multipart/form-data`

- object
  - `audio` string, binary, required: Audio file (supported formats: .webm, .mp3, .m4a, .ogg, .wav)

## Response `200`

Audio successfully transcribed

- object
  - `text` string: Transcribed text

## Other responses

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

---

[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)
