MiMo TTS - preset voice
text_to_speechSynthesize speech or song from text using MiMo voices and audio tags, then save the audio file and return its path, byte size, and duration.
Instructions
Synthesize speech with Xiaomi MiMo mimo-v2.5-tts using one of the built-in voices. Supports singing via a leading (唱歌) tag, and fine-grained audio tags inside the text. Writes the audio to a file and returns its path, byte size, and duration.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to speak. Add a leading style tag such as (怅然) or (唱歌) and inline tags such as [轻笑] or [长叹一口气] to steer delivery. Keep it within a few thousand characters (8K token context). | |
| voice | No | Preset voice id: mimo_default, 冰糖, 茉莉, 苏打, 白桦, Mia, Chloe, Milo, Dean. Chinese voices: mimo_default, 冰糖, 茉莉, 苏打, 白桦; English: Mia, Chloe, Milo, Dean. | mimo_default |
| format | No | Output container. wav is lossless and takes the low-latency streaming path; mp3 is smaller. | wav |
| file_name | No | Base name used when output_path is omitted, e.g. "greeting". | |
| output_path | No | Where to write the audio file. Must stay inside MIMO_TTS_OUTPUT_DIR (~/mimo-tts) unless the server sets MIMO_TTS_ALLOW_ANY_PATH. A relative path resolves against the server process cwd. Existing files are never overwritten; a -2, -3 suffix is added instead. | |
| instructions | No | Natural-language style direction, sent as the user message. Describe emotion, pace, character, scene, or a director-style brief (角色/场景/指导). Audio tags such as (怅然) or [轻笑] belong in the spoken text instead. |