使用小米 MiMo TTS(mimo-v2-tts 模型)将文本生成语音音频(WAV),支持预设音色(mimo_default、default_zh、default_en),支持风格控制...
If MIMO_API_KEY is not configured, the skill cannot function. Guide the user:
text
openclaw config set skills.entries.mimo-tts.apiKey "your-api-key-here"
Or set the environment variable MIMO_API_KEY directly.
After configuring, the user should restart or start a new session.
Use scripts/tts.py to synthesize text to audio:
bash
python3 "{baseDir}/scripts/tts.py" "要合成的文本" -o output.wav
FlagDefaultDescription-o``output.wavOutput file path-v``mimo_defaultVoice: mimo_default, default_zh, default_en``-s(none)Style tag, e.g. 开心, 东北话, 悄悄话, 孙悟空``-f``wavAudio format--user-msg(none)Optional user-role context to adjust tone--api-keyenv MIMO_API_KEYAPI key override
bash
# Basic
python3 "{baseDir}/scripts/tts.py" "你好,今天天气真好" -o hello.wav
# Dialect style
python3 "{baseDir}/scripts/tts.py" "哎呀妈呀,这天儿也忒冷了吧" -s "东北话" -o dongbei.wav
# English voice
python3 "{baseDir}/scripts/tts.py" "Hello, how are you today?" -v default_en -o hello_en.wav
# Emotion + speed
python3 "{baseDir}/scripts/tts.py" "明天就是周五了,真开心!" -s "开心 变快" -o happy.wav
<style>style</style> at the beginning of text to set overall style.(紧张), (小声), (语速加快), (深呼吸), (苦笑), (沉默片刻).<style>开心 变快</style>text.<style>唱歌</style>lyrics.Namevoice paramMiMo-默认mimo_defaultMiMo-中文女声default_zhMiMo-英文女声default_en