工具 API

text_to_audio

Convert text to audio. Returns a temporary audio URL (valid ~24h, save promptly). COST WARNING: This tool makes an API call which may incur costs. Args: text: Text to convert (max 10,000 chars). Use <#x#> for pause (0.01-99.99s). voice_id: Voice ID. Use list_voices to find available voices. model: Speech model. "speech-2.8-hd" (best, auto emotion), speech-2.8-turbo, speech-2.6-hd/turbo. speed: Speech speed (0.5-2.0). vol: Volume (0-10). pitch: Pitch (-12 to 12). emotion: Emotion tag. speech-2.8: leave empty (auto). speech-2.6: happy/sad/angry/fearful/disgusted/surprised/calm/fluent/whisper. sample_rate: Sample rate [8000,16000,22050,24000,32000,44100]. bitrate: Bitrate [32000,64000,128000,256000]. channel: Audio channel (1=mono, 2=stereo). format: Output format (mp3/wav/flac). language_boost: Language enhancement (Chinese/English/Japanese/Korean/auto/etc).

creative100 积分

调用信息

工具标识
minimax-speech.text_to_audio
服务提供方
MiniMax语音合成
平均响应
300 ms
近 7 天调用
1

输入参数

text必填

string

voice_id

string

model

string

speed

number

vol

number

pitch

integer

emotion

string

sample_rate

integer

bitrate

integer

channel

integer

format

string

language_boost

string