Skip to content

For developers

Arabic speech API for text to speech and speech to text

Add natural Arabic voices and Arabic transcription to your product with one API key and one balance of audio minutes. 24 voices, 16 dialects, MP3 output and jobs that are safe to retry.

From $0.15 per audio minute. Failed jobs are free.

Two calls, one key

# 1. Text to speech: submit a job, then poll it for the MP3
curl https://xrwqtifhqycpxfjzfrip.supabase.co/functions/v1/generate-tts-v2 \
  -H "x-api-key: $FASIHTTS_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"text":"أهلًا بكم في متجرنا","voice":"ar-msa-formal-male-2","dialect":"ar-msa"}'

# 2. Speech to text: upload an MP3, accept the quote, poll the transcript
curl https://api.fasihtts.com/v1/stt/account/source \
  -H "x-api-key: $FASIHTTS_API_KEY" \
  -H "Idempotency-Key: $REQUEST_UUID" \
  -H "Content-Type: audio/mpeg" \
  --data-binary @call.mp3

Two APIs, one key, one balance

Text to speech API

Send Arabic text, get back natural MP3 speech.

  • 24 voices across 16 Arabic dialects
  • Up to 10,000 characters per request on Basic, 15,000 on Pro or Project Pack
  • Optional style instruction for tone and pace
  • Private voices designed from a written description
Text-to-speech reference

Speech to text API · Beta

Upload an Arabic recording, get back editable text.

  • MP3 up to 2 minutes and 5 MiB per file
  • You see the minute quote before the job starts
  • Charged only when a usable transcript is ready
  • Save corrected text back with the review endpoint
Speech-to-text reference

Live in three steps

  1. Step 1

    Get your key

    Choose a paid plan or Project Pack, then create an API key in your dashboard.

  2. Step 2

    Call it from your server

    Send the key in the x-api-key header with a saved Idempotency-Key, so retries never charge twice.

  3. Step 3

    Poll and collect

    Poll the job every few seconds. Download the MP3 or read the transcript when it is ready.

Ready-to-run clients: TTS in Node.js · TTS in Python · STT in Node.js · STT in Python

Simple pricing in audio minutes

Text to speech counts the audio you generate; speech to text counts the recording you upload. Both round up once to a whole second, use the same balance, and are only charged when the job succeeds.

OptionPriceAudio minutesAbout per minute
Basic$9.99 / month60 minutes, every month$0.17
Pro$29.99 / month200 minutes, every month$0.15
Project Pack$19 one time100 minutes, valid for 365 days$0.19

Every paid option includes API access. Need more volume? Talk to us

Compare plans

What teams build with it

Apps and assistants

Read messages aloud in the user's dialect and turn short voice notes into text.

Call centers and IVR

Generate Arabic menu prompts and transcribe short customer recordings for review.

E-learning

Narrate lessons at scale and check learners' spoken answers as text.

Media and content

Voice product videos and social clips, and draft captions from short Arabic clips.

Questions developers ask

Is there an API for Arabic text to speech?

Yes. The FasihTTS API turns Arabic text into MP3 speech with 24 voices across 16 Arabic dialects, including Modern Standard Arabic, Saudi, Gulf, Egyptian, Levantine and Moroccan Darija. You submit a job from your server with your API key, then poll it and download the MP3.

Does FasihTTS have an Arabic speech to text API?

Yes, as a paid beta. Upload an Arabic MP3 recording of up to 2 minutes and 5 MiB, accept the minute quote, and poll the job for editable text. It uses the same API key and the same minute balance as text to speech.

How much does the Arabic speech API cost?

You pay in audio minutes. Basic is $9.99 / month for 60 minutes (every month); Pro is $29.99 / month for 200 minutes (every month); Project Pack is $19 one time for 100 minutes (valid for 365 days). That is about $0.15 per minute on Pro. Failed jobs are not charged.

How are minutes counted for text to speech and speech to text?

Text to speech counts the length of the audio it generates. Speech to text counts the length of the recording you upload. Both round up once to a whole second and draw from one shared balance.

Which Arabic dialects does the API support?

For text to speech you can pass any of these dialect IDs: Modern Standard Arabic, Saudi Najdi, Saudi Hijazi, Cairene Egyptian, General Gulf Arabic, General Levantine Arabic, Moroccan Darija, Emirati Arabic, Kuwaiti Arabic, Qatari Arabic, Bahraini Arabic, Omani Arabic, Iraqi Arabic, Sudanese Arabic, Algerian Arabic, Tunisian Arabic. GET /v1/dialects returns the current list with IDs.

Can I try the API for free?

You can test voices and transcription for free on the website: five free samples shared between text to speech and speech to text, with speech-to-text samples up to 30 seconds. API keys need a paid option. The Project Pack works without a subscription.

Is it safe to retry a request after a timeout?

Yes, if you reuse the same Idempotency-Key and the same input. The API returns the original job instead of charging again. Save the job ID and keep polling it rather than starting a new job.