speech
Converts text up to 4096 characters into 24kHz mono audio files (wav, mp3, opus, flac, pcm), using voice presets, written tone instructions, or reference audio to clone a voice.
Instructions
OmniVoice 文本转语音:input ≤4096 字符 → 音频文件(24kHz 单声道)。
voice 预设:auto/female/male/female-low/male-low/female-british/male-british/ female-american/male-american;或 instructions 文字描述音色(优先于 voice)。 ref_audio(本地路径/data URL,≤30s 参考音频)+ ref_text 可克隆音色, 不能与 voice/instructions 同用。response_format: wav/mp3/opus/flac/pcm(默认 mp3)。 音频落盘返回路径;远程客户端可 return_base64=true 获取 data URL(体积较大)。 注意:权重 CC-BY-NC,音频禁止商用,需署名(见返回 license_note)。按输入字符计费。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"input": "<input>"
},
"name": "speech"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| input | Yes | ||
| speed | No | ||
| voice | No | ||
| language | No | ||
| ref_text | No | ||
| ref_audio | No | ||
| instructions | No | ||
| return_base64 | No | ||
| response_format | No | mp3 |