Skip to main content
POST
MiniMax Speech-2.6-hd Asynchronous Speech Synthesis
This API supports asynchronous text-to-speech generation. A single text generation request supports up to 1 million characters for transmission, and the complete generated audio result can be retrieved asynchronously. It supports 100+ system voices and custom cloned voices; it also supports custom adjustment of intonation, speed, volume, bitrate, sample rate, and output format. After submitting a long-text speech synthesis request, note that the returned url is valid for 24 hours from the time the url is returned. Please download the information in time.
Suitable for generating speech from long texts such as entire books. Task queueing may take a relatively long time. For scenarios such as short sentence generation, voice chat, and online social networking, we recommend using synchronous speech synthesis.

Request Headers

string
required
Enum value: application/json
string
required
Bearer authentication format: Bearer {{API key}}.

Request Body

string
required
The text to synthesize, with a maximum length of 50,000 characters.
object
required
object
object
string
default:"null"
Enhances recognition capability for specified minority languages and dialects. After setting this parameter, speech performance can be improved in the specified minority language/dialect scenarios. If the minority language type is unclear, you can select “auto”, and the model will determine the minority language type automatically. The following values are supported:'Chinese', 'Chinese,Yue', 'English', 'Arabic', 'Russian', 'Spanish', 'French', 'Portuguese', 'German', 'Turkish', 'Dutch', 'Ukrainian', 'Vietnamese', 'Indonesian', 'Japanese', 'Italian', 'Korean', 'Thai', 'Polish', 'Romanian', 'Greek', 'Czech', 'Finnish', 'Hindi', 'Bulgarian', 'Danish', 'Hebrew', 'Malay', 'Persian', 'Slovak', 'Swedish', 'Croatian', 'Filipino', 'Hungarian', 'Norwegian', 'Slovenian', 'Catalan', 'Nynorsk', 'Tamil', 'Afrikaans', 'auto'
object
Voice effects settings. Supported audio formats for this parameter: mp3, wav, flac

Response Parameters

string
required
The task_id of the asynchronous task. You should use this task_id to request the Get Task Result API to obtain the generated result.