MiMo TTS - cloned voice
clone_voice_to_speechClones a voice from a local MP3/WAV sample to synthesize text as speech, saving audio to a file and returning its path.
Instructions
Synthesize speech with Xiaomi MiMo mimo-v2.5-tts-voiceclone, replicating a voice from a local mp3/wav sample. The sample is Base64-encoded and sent on every call; MiMo requires it to stay under 10 MB. Writes the audio to a file and returns its path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to speak. Audio tags such as (慵懒) or [叹气] are supported. | |
| 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. | |
| sample_path | Yes | Absolute path to the reference voice sample (.mp3 or .wav, ideally 5-30 seconds, under ~7.5 MB). | |
| 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. |