Preface¶
In agents or automated scripts, the common approach to turning text into playable audio involves integrating a standalone TTS SDK and manually handling voice styles, tones, and file outputs. Xiaomi MiMo V2-TTS provides an invocation method compatible with the OpenAI SDK. The “Xiaomi MiMo V2-TTS Speech Synthesis Skill” on SkillHub encapsulates this into a standard Skill: after an Agent reads SKILL.md, it can execute command-line instructions and parameters according to the documentation whenever it needs to read aloud, generate audio files, or invoke MiMo TTS.
The following introduces the positioning, capabilities, installation methods, and reproducible usage of this Skill. The versions and coordinates in the text are based on the information published on SkillHub (v1.2.0, @user_512254e3/mimo-tts).
What is this¶
The Xiaomi MiMo V2-TTS Speech Synthesis Skill is a community-sourced (community) design-media category Skill, published under the coordinates @user_512254e3/mimo-tts, with the current version 1.2.0. It is marked with requires_api_key=true on SkillHub and depends on the environment variable MIMO_API_KEY.
The skill package provides a Node.js CLI (mimo-tts) and TTS scripts to synthesize text into speech files; the interface form aligns with the OpenAI Chat Completions style, facilitating integration with existing OpenAI SDK habits. The applicable trigger scenarios are described directly in the official introduction: enable this Skill when the user wants to convert text to speech, generate audio files, or explicitly use the MiMo TTS service.
SkillHub page statistics (at the time of scraping): Rating 100000, Downloads 1279, Installs 20. Official Entry: https://api.skillhub.cn/user_512254e3/mimo-tts, Display Page: https://www.skillhub.cn/skills/user_512254e3/mimo-tts.
Core Features¶
The following capabilities are derived from the descriptions in the skill package’s SKILL.md / README.md. You can verify them against the local files after installation.
Text to Speech¶
Pass --text and --output via the command line to synthesize text into audio; the default output is WAV, and pcm16 is also available (streaming scenarios require --stream and format restrictions, see notes).
Preset Voices¶
The documentation lists 3 voice codes:
| Voice | Description |
|---|---|
mimo_default |
MiMo default voice (CLI default) |
default_zh |
Chinese Female Voice |
default_en |
English Female Voice |
Style and Tone Control¶
- Insert
<style>Style</style>at the beginning of the text, such as emotions (happy, sad), dialects (Northeastern, Sichuan), roles, or “singing”. - Supports fine-grained descriptions in brackets, such as “(nervous, deep breath)” combined with the main text, for pauses, speech rate changes, etc.
OpenAI Compatible Invocation¶
The skill description emphasizes using a format compatible with the OpenAI SDK; README.md mentions in troubleshooting that the request endpoint is https://api.xiaomimimo.com/v1/chat/completions (for comparison when troubleshooting 404s).
Installation and Activation¶
Install via SkillHub CLI¶
First, confirm that skillhub is installed on your local machine (see SkillHub Installation Documentation for installation methods). When installing the skill, you must use --dir to point to the current Agent’s skills directory; otherwise, it may land in the default ./skills/ directory and not be recognized.
Search and installation examples:
skillhub search mimo-tts
skillhub install mimo-tts --namespace user_512254e3 --dir <your Agent skills directory>
Common Agent skills paths (excerpted from SkillHub installation documentation):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
You can also let the AI install it according to the official prompt:
Please install `@user_512254e3/mimo-tts` based on https://skillhub.cn/install/skillhub.md.
Install Node Dependencies¶
The skill package is a lightweight version and does not contain node_modules. Enter the installed skill directory and execute the following once:
cd <skills directory>/@user_512254e3/mimo-tts
npm install
Configure API Key¶
Obtain a key from the MiMo Open Platform and then set the environment variable:
export MIMO_API_KEY=your_api_key_here
To make it effective permanently, you can write the above export into ~/.bashrc or ~/.zshrc and then source the corresponding file.
Verification¶
mimo-tts --help
If the shell cannot find mimo-tts, you can use the entry script in the skill directory, for example, index.js with the same parameters (see INSTALL.md).
Typical Usage¶
After setting MIMO_API_KEY and completing npm install, you can directly reproduce the commands in the documentation.
Basic Synthesis:
mimo-tts --text "你好,欢迎使用 MiMo 语音合成" --output audio.wav
Specify English Voice:
mimo-tts --text "Hello World" --voice default_en --output hello.wav
Style Tags (must be placed at the beginning of the text):
mimo-tts --text "<style>开心</style>今天真是太棒了!" --output happy.wav
mimo-tts --text "<style>东北话</style>哎呀妈呀!" --output dongbei.wav
mimo-tts --text "<style>唱歌</style>原谅我这一生不羁放纵爱自由" --output sing.wav
Fine-grained Tone:
mimo-tts --text "(紧张,深呼吸)呼……冷静,冷静。(语速加快)自我介绍已经背了五十遍了" --output nervous.wav
Command-line parameter summary (from SKILL.md):
| Parameter | Required | Default | Description |
|---|---|---|---|
--text |
Yes | - | Text to be synthesized |
--output |
Yes | - | Output audio path |
--voice |
No | mimo_default |
Voice |
--format |
No | wav |
wav or pcm16 |
--stream |
No | false |
Streaming mode |
Applicable Scenarios and Notes¶
Who it is for
- Those already using Skills in environments like Cursor, Claude Code, or Codex, and want a fixed workflow for the Agent in tasks like “read out” or “export wav”.
- Those who want to use MiMo V2-TTS and can accept the OpenAI-compatible Chat Completions invocation method, rather than writing a separate HTTP client for TTS.
Limitations and Pitfalls
- API Key is required: If
MIMO_API_KEYis not set, it will fail directly; 401 usually means the Key is incorrect. <style>Position: It must be at the beginning of the text; for singing mode, the documentation requires using only<style>唱歌</style>plus the lyrics.- Text Length:
SKILL.mdsuggests keeping it within about 2000 characters per session; long texts should be synthesized in segments. - Streaming: When calling in streaming mode, the
pcm16format must be used; ifREADME.mdmarks--streamas not supported, the local installation package documentation prevails. - Dependencies and Environment: Requires a Node environment and
npm install; it is recommended to use absolute paths for output paths to avoid confusion with relative path disk locations. - Billing:
README.mdstates that it is currently free for a limited time; specific strategies are subject to the MiMo Console.
For more complete API and usage instructions, see Speech Synthesis Usage Guide.
Conclusion¶
The “Xiaomi MiMo V2-TTS Speech Synthesis Skill” consolidates MiMo’s TTS capabilities into an Agent-executable CLI and SKILL.md conventions: preset voices, <style> styles, WAV/pcm16 output, and MIMO_API_KEY configuration are all documented in the same set. If your workflow requires text-to-speech or audio file generation, you can install @user_512254e3/mimo-tts from SkillHub and complete the dependency and key configuration as described above.
Official Address: https://api.skillhub.cn/user_512254e3/mimo-tts