Audio Synthesize speech, transcribe audio, and translate audio into English.
AGTCloud audio APIs support speech synthesis, audio transcription, and audio translation. Each task uses a different input format and returns either audio bytes or text.
Task Description Main result Speech synthesis Convert text into speech Binary audio Audio transcription Convert audio into text in the source language JSON, text, or subtitles Audio translation Convert audio into English text JSON, text, or subtitles
Featured models Model Provider Highlights MiniMax Speech MiniMax Designed for natural speech synthesis and expressive voices OpenAI Transcription OpenAI Transcribes speech through an OpenAI-compatible API Gemini TTS Google Designed for speech synthesis controlled with natural language
View all models
https://api.agtcloud.ai/v1
cURL Python Node.js
curl 'https://api.agtcloud.ai/v1/audio/speech' \
-H 'Authorization: Bearer your-api-key' \
-H 'Content-Type: application/json' \
--data '{
"model": "MODEL_ID",
"input": "Welcome to AGTCloud.",
"voice": "alloy"
}' \
--output speech.mp3
Parameter Required Description modelYes Text-to-speech model ID inputYes Text to synthesize voiceYes Voice used for generated speech response_formatNo Audio output format speedNo Speech speed
Speech returns audio bytes. Save them using the actual response format instead of parsing the response as JSON.
cURL Python Node.js
curl 'https://api.agtcloud.ai/v1/audio/transcriptions' \
-H 'Authorization: Bearer your-api-key' \
-F 'file=@meeting.mp3' \
-F 'model=MODEL_ID'
Parameter Required Description fileYes Audio file to transcribe modelYes Transcription model ID languageNo ISO-639-1 language code for the input audio response_formatNo Output format for the transcript
Transcriptions uploads audio as multipart data. In the basic JSON response, the transcript is in text.
cURL Python Node.js
curl 'https://api.agtcloud.ai/v1/audio/translations' \
-H 'Authorization: Bearer your-api-key' \
-F 'file=@chinese.mp3' \
-F 'model=MODEL_ID'
Parameter Required Description fileYes Non-English audio file to translate modelYes Audio translation model ID promptNo English text that guides output style response_formatNo Output format for the translation
Translations returns English text. In the basic JSON response, the result is in text.
API Handling Speech Save binary audio using the response format Transcriptions Process JSON, text, or subtitles according to response_format Translations Process the English text according to response_format