Audio

Audio

Transcribe audio to text (STT) and generate speech from text (TTS).

Speech-to-Text (STT)

ParameterTypeRequiredDescription
filefileYesAudio file (max 25MB)
modelstringYesModel: meedoo-whisper
languagestringNoISO-639-1 language code (e.g., fr)
response_formatstringNoFormat: json, text, srt, vtt

Translation

Translate audio files to English text. Uses the same meedoo-whisper model but outputs English regardless of the source language.

Text-to-Speech (TTS)

Pricing: 0.015 €/1K characters (standard), 0.030 €/1K characters (HD)

Available Voices

VoiceDescription
alloyNeutral and clear
echoDeep masculine
fableWarm masculine
onyxDeep grave
novaDynamic feminine
shimmerSoft feminine
POST /api/v1/audio/transcriptions

Create Transcription

Transcribes audio into the input language.

Parameters

NameTypeReqDescriptionDefault
filefileYesAudio file (mp3, wav, m4a, flac)—
modelstringYesModel to usemeedoo-voice
languagestringNoLanguage code (ISO 639-1)—
response_formatstringNoResponse format (json, text, srt, vtt)json
temperaturefloatNoSampling temperature 0-10
POST /api/v1/audio/speech

Create Speech

Generates audio from the input text.

Parameters

NameTypeReqDescriptionDefault
modelstringYesTTS modelmeedoo-voice
inputstringYesText to synthesize—
voicestringYesVoice name (alloy, echo, fable, nova, shimmer)—
response_formatstringNoAudio format (mp3, opus, aac, flac)mp3
speedfloatNoSpeed of speech (0.25-4.0)1.0
POST /api/v1/audio/translations

Translate Audio

Translate audio content to English text regardless of the source language.

Parameters

NameTypeReqDescriptionDefault
filefileYesAudio file to translate—
modelstringYesModel to usemeedoo-voice
response_formatstringNoResponse format (json, text, srt, vtt)json
temperaturefloatNoSampling temperature0

Response Examples

Create Transcription (200)
{
  "text": "Hello, world! This is a test transcription."
}

Code Examples

Transcribe Audio
curl -X POST https://api.meedoo.co/api/v1/audio/transcriptions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "file=@audio.mp3" \
  -F "model=meedoo:latest"
Generate Speech
curl -X POST https://api.meedoo.co/api/v1/audio/speech \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"meedoo:latest","input":"Hello world","voice":"alloy"}' \
  -o speech.mp3
Translate Audio
curl -X POST https://api.meedoo.co/api/v1/audio/translations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "file=@audio.mp3" \
  -F "model=meedoo:latest"