Convert text to speech audio using mb voice CLI. Use when the user asks you to speak, say something aloud, generate audio, or produce a voice recording.
Generate MP3 audio from text using the mb voice CLI.
# Generate MP3, prints file path to stdout
mb voice "Hello, this is a test"
# Generate and play immediately
mb voice "Hello" --play
# Save to specific file
mb voice "Hello" -o greeting.mp3
# Override provider and voice
mb voice "Hello" --provider doubao --voice zh_female_wanqudashu_moon_bigtts
# Pipe text (useful for long content)
echo "Long text here" | mb voice
echo "Long text" | mb voice -o output.mp3
Edge TTS (default, free, no key needed):
zh-CN-XiaoyiNeural (default) — Female Chinesezh-CN-YunxiNeural — Male Chinesezh-CN-XiaoxiaoNeural — Female Chineseen-US-JennyNeural — Female EnglishDoubao (default when Volcengine keys configured):
zh_female_wanqudashu_moon_bigtts (default) — Female ChineseOpenAI (when OPENAI_API_KEY set):
alloy (default), echo, fable, onyx, nova, shimmerElevenLabs (when ELEVENLABS_API_KEY set):
mb voice "text"echo "..." | mb voice--play only when the user explicitly wants to hear the audio (it blocks until playback completes)-o with a descriptive filenamecp /tmp/mb-voice-xxx.mp3 /tmp/metabot-outputs/<chatId>/