mm_synthesize_speech
Convert text into natural-sounding speech and save as an MP3 file. Specify a voice and output path to generate audio from written content.
Instructions
把文字合成为语音并保存为 MP3。
Args: text: 要朗读的文字,最多 1000 字符。 voice: 可选音色,默认 zh-CN-XiaoxiaoNeural。 output_path: 可选保存路径(默认 outputs/audio/)。
Returns: str: 生成的音频文件绝对路径。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| voice | No | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |