Developer API synchronous TTS up to 2500 characters (audio bytes, or chunked with stream=true)
Send your key in the x-api-key header.
Parameter
In
Notes
stream
query
boolean
Request body
Request body
Field
Type
Notes
textrequired
string
max 200000 chars
voice_id
string
language
string
ISO 639-3; required if voice_id is absent; the value auto detects the language from the text (see POST /v1/language/detect)
quality
standard | expressive
default "standard"
format
mp3 | wav | flac | ogg | m4a
default "mp3"
sample_rate
22050 | 24000 | 44100 | 48000
bitrate
128 | 192 | 320
speed
number
default 1, min 0.5, max 2
subtitles
array<string>
client
object
client.platform
web | android | ios | api
client.app_version
string
client.device
string
curl -X POST "https://api.mredgeengine.com/v1/engine/tts" \
-H "x-api-key: YOUR_API_KEY" \
-H "x-product-code: engine" \
-H "content-type: application/json" \
-d '{"text":"Welcome. Your order has shipped and will arrive on Friday.","language":"yor","quality":"standard","format":"mp3"}' \
--output speech.mp3
Pre-signed URL for a job output. Audio is converted to the requested format on demand; video (roles video, export_video) and sidecar files are delivered as made (format/bitrate/sample_rate/bit_depth then answer 422). The storage host answers HTTP Range requests (206), so players can seek.
Send your key in the x-api-key header.
Parameter
In
Notes
idrequired
path
string
role
query
which output to deliver; default is the audio, else the video. audio | video | export_video | captions_srt | captions_vtt
redirect
query
true answers 302 to the pre-signed URL (inline, for a player or video tag) instead of the JSON. boolean
We use only the cookies needed to keep you signed in and remember your choices. If you choose Accept analytics, we also use analytics and advertising measurement cookies to count visits and measure our ads. Nothing optional is set before you choose. Cookie policy