DeepSeek 语音合成
deepseek_ttsConverts text into WAV or PCM speech audio, saves the file to disk, and returns its path for playback or downstream use. Use it for narration or voice output when an audio file is needed.
Instructions
把文字合成为语音(wav 或 pcm),音频落盘并返回路径。不调用对话模型,按计费字符计费(3 元/万字符,限时 5 折 1.5 元;汉字算 2 个字符)。注意:MCP 内容块不含 audio,无法直接播放,需用播放器打开返回的路径。长文本单次调用可能阻塞数分钟,建议每段 ≤2000 字符。
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": {
"text": "<text>"
},
"name": "deepseek_tts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | 要朗读的文本,计费字符上限 10,000(汉字算 2)。 | |
| format | No | wav 为完整的音频文件;pcm 是 24 kHz / 16 位 / 单声道裸数据。 | wav |
| voice_id | No | stella 海星(女声,默认)或 tide 暗潮(男声)。 | stella |
| output_path | No | 可选:音频写入路径(支持 ~ 展开,必须是绝对路径)。省略时写入 DEEPSEEK_AUDIO_DIR 下的时间戳文件;已存在或扩展名不匹配会拒绝。设置 DEEPSEEK_ALLOWED_DIRS 时必须落在白名单内。 | |
| filter_markdown | No | 朗读前是否去掉 Markdown 标记。 |