Skip to content
VoiceMint Developers

Translation & dubbing

Translate text and speech between languages, and dub audio into another language.

Text#

curl -X POST https://api.voicemint.io/api/v1/translation/translate-text \
  -H "Authorization: Bearer $VOICEMINT_API_KEY" -H "Content-Type: application/json" \
  -d '{"text": "Your order has shipped", "target_language": "hi"}'

GET /translation/languages lists the languages; POST /translation/detect-language detects one.

Speech#

Short audio translates in one request (POST /translation/translate-audio returns the translated audio). Longer recordings run as a job:

curl -X POST https://api.voicemint.io/api/v1/translation/translate-audio-job \
  -H "Authorization: Bearer $VOICEMINT_API_KEY" -F "file=@./lecture.mp3" -F "target_language=ta"
# then poll GET /translation/job/JOB_ID/status and fetch GET /translation/job/JOB_ID/result

Dubbing#

POST /dubbing/dub dubs an audio file into another language, keeping the speaker's delivery:

curl -X POST https://api.voicemint.io/api/v1/dubbing/dub \
  -H "Authorization: Bearer $VOICEMINT_API_KEY" \
  -F "file=@./promo.mp3" -F "target_language=hi" -F "source_language=en" --output promo.hi.wav

Video dubbing projects (upload a video, dub, download) live under /video-dubbing; see the Video guide.