AI Agent Hub
Back to skills
MiMo TTS and ASR Voice Toolkit icon

MiMo TTS and ASR Voice Toolkit

Development Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please install @user_168d274d/mimofreetts according to https://skillhub.cn/install/skillhub.md.

About this skill

Problem

Voice synthesis in local scripts, content pipelines, or audiobook-style generation often hits three gaps: a raw TTS API can be unstable on long text, there is no fallback when a key is missing or rate limits are triggered, and teams still have to hand-roll batch files, numeric normalization, and output validation. MiMo TTS & ASR targets these workflow gaps by wrapping model calls into reusable command-line behavior.

How it works

The skill centers on scripts/tts.py and scripts/asr.py:
- Three TTS modes: preset voices, natural-language voice design, and reference-audio cloning through one entry point;
- Engineering fallbacks: falls back to edge-tts when MIMO_API_KEY is absent, and retries 429, 502/503, and timeout cases with randomized delay;
- Long-text handling: segmenting by punctuation, reading batch files, and watching directories for new .txt inputs;
- Output safety: inferring wav/mp3/ogg, checking empty or overly short files, and supporting cache, denoise, and normalization.

Boundaries

Cloud ASR remains reserved; local recognition usually needs a GPU with CUDA. The three TTS models are currently limited-time free, so keeping --cache is useful once billing starts. The skill depends on ffmpeg/ffprobe and python3, and fits content batch processing, audio demos, and speech prototyping rather than replacing official API authorization, quota, or compliance controls.

Use Cases

  • Watch a directory for new .txt dialogue files and automatically synthesize auditable audio.
  • Generate Chinese or English narration with the free edge-tts fallback when no MiMo key exists in CI.
  • Split a long script by punctuation, synthesize multiple audio segments, and flag empty or too-short files.
  • Recommend 冰糖 or Mia by detected emotion, then output wav/mp3 files based on the -o suffix.

Best For

  • Audiobook production engineers who convert newly added dialogue files into auditable audio.
  • Python developers who prototype speech without a GPU using MiMo API or edge-tts fallback.
  • Automation engineers who split long copy into segments and validate empty or short audio outputs.
  • Voice application developers who switch preset, descriptive, and reference-cloning TTS modes through one entry point.