Audio
Audio
Transcribe audio to text (STT) and generate speech from text (TTS).
Speech-to-Text (STT)
| Parameter | Type | Required | Description |
|---|---|---|---|
file | file | Yes | Audio file (max 25MB) |
model | string | Yes | Model: meedoo-whisper |
language | string | No | ISO-639-1 language code (e.g., fr) |
response_format | string | No | Format: 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
| Voice | Description |
|---|---|
alloy | Neutral and clear |
echo | Deep masculine |
fable | Warm masculine |
onyx | Deep grave |
nova | Dynamic feminine |
shimmer | Soft feminine |
POST
/api/v1/audio/transcriptions Create Transcription
Transcribes audio into the input language.
Parameters
| Name | Type | Req | Description | Default |
|---|---|---|---|---|
file | file | Yes | Audio file (mp3, wav, m4a, flac) | — |
model | string | Yes | Model to use | meedoo-voice |
language | string | No | Language code (ISO 639-1) | — |
response_format | string | No | Response format (json, text, srt, vtt) | json |
temperature | float | No | Sampling temperature 0-1 | 0 |
POST
/api/v1/audio/speech Create Speech
Generates audio from the input text.
Parameters
| Name | Type | Req | Description | Default |
|---|---|---|---|---|
model | string | Yes | TTS model | meedoo-voice |
input | string | Yes | Text to synthesize | — |
voice | string | Yes | Voice name (alloy, echo, fable, nova, shimmer) | — |
response_format | string | No | Audio format (mp3, opus, aac, flac) | mp3 |
speed | float | No | Speed 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
| Name | Type | Req | Description | Default |
|---|---|---|---|---|
file | file | Yes | Audio file to translate | — |
model | string | Yes | Model to use | meedoo-voice |
response_format | string | No | Response format (json, text, srt, vtt) | json |
temperature | float | No | Sampling temperature | 0 |
Response Examples
{
"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.mp3Translate 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"