Skip to main content
skill CX Codex

moss-tts-nano-speech — Claude Code skill: local CPU text-to-speech

A skill that shows the agent how to run MOSS-TTS-Nano, a tiny multilingual speech model with voice cloning that works on CPU.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add reason-machines/trending-skills --skill moss-tts-nano-speech -a claude-code
Open on GitHub

What moss-tts-nano-speech does

MOSS-TTS-Nano comes from MOSI.AI and the OpenMOSS team: 0.1B parameters, an audio tokenizer paired with an autoregressive LLM, stereo output at 48 kHz. Twenty languages are covered, and the token stream runs at 12.5 Hz. The skill hands the agent working recipes — the moss-tts-nano generate CLI, infer.py, the MossTTSNanoInference Python class, and the HTTP routes of the local server.

Voice cloning takes a reference WAV through --prompt-speech or --prompt-audio-path, and the same timbre carries across the whole text. Long documents are split automatically while the speaker stays the same. Streaming via infer_stream returns chunks as they are produced, which cuts the wait before the first sound.

Setup runs through conda with Python 3.12: conda create -n moss-tts-nano python=3.12 -y, then clone the repo, pip install -r requirements.txt and pip install -e .. If WeTextProcessing fails to build, the instructions include a workaround with pynini and a GitHub fork. Weights download from Hugging Face on the first run, so that run needs a network connection.

The local web demo starts with moss-tts-nano serve and answers on http://127.0.0.1:18083; the model stays in memory, so later requests skip the load. Language is picked up from the text and the reference audio, no code parameter needed.

What it helps with

  • clone a voice from a short reference clip
  • synthesize speech in 20 languages without a GPU
  • stream audio chunks for low-latency playback
  • narrate a long document in one consistent voice
  • run a local HTTP speech endpoint

Example prompts for the agent

  • Generate speech from my_script.txt using the voice in assets/audio/zh_1.wav
  • Show me how to call MossTTSNanoInference for streaming synthesis
  • Start the MOSS-TTS-Nano web demo and show which endpoint to hit

How to install moss-tts-nano-speech

1Skills CLI (Vercel)

npx skills add reason-machines/trending-skills --skill moss-tts-nano-speech -a claude-code

2Manually: put the files in place

~/.claude/skills/moss-tts-nano-speech/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/moss-tts-nano-speech/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about moss-tts-nano-speech

How do I install moss-tts-nano-speech in Claude Code?

Run npx skills add reason-machines/trending-skills --skill moss-tts-nano-speech -a claude-code; the skill lands at ~/.claude/skills/moss-tts-nano-speech/SKILL.md.

What does moss-tts-nano-speech do?

It gives the agent the commands and Python calls for MOSS-TTS-Nano: CLI generation, streaming inference and the local HTTP server. Everything runs on CPU.

Does MOSS-TTS-Nano need a GPU?

No. The 0.1B model is built for CPU inference. Weights are pulled from Hugging Face the first time you run it.

Similar skills

All skills for AI and ML →

From the same set139

pyre-code-ml-practice This skill walks you through hosting Pyre Code, a practice platform with 68 ML problems, and through writing your own. Handy when you want hands-on work on transformer and diffusion internals without a GPU. CX Codex +1 517installs maoxuan-skill-cognitive-framework A skill that hands your agent a set of thinking models drawn from Mao Zedong's writings: find the principal contradiction, plan from the weaker side, gather allies. CX Codex +1 513installs codex-oauth-automation-extension Installs a Chrome extension that walks the whole OpenAI OAuth signup and login: pulls the email code, confirms the callback, repeats for several rounds. CX Codex +1 505installs rattles-terminal-spinners A Claude skill covering rattles, a minimal Rust library for terminal spinners. Useful when a CLI needs a loading indicator without extra dependencies. CX Codex +1 497installs isolet-widget-isolation This skill packages a component into a self-contained widget with shadow DOM and scoped styles, ready to embed on any page. CX Codex +1 474installs capso-screenshot-macos A skill about Capso, the open-source macOS app for capturing screens and recording video. It helps you embed Capso's SPM packages in your own project. CX Codex +1 445installs ntwarden-windows-analysis-toolkit A skill for digging into Windows internals: processes, services, network, ETW, kernel. Useful when you need to break down what a suspicious process is doing. CX Codex +1 443installs geoflow-content-automation A skill that walks your agent through GEOFlow: AI article generation, task scheduling, review and publishing via CLI, REST API and Docker. Useful when the content pipeline runs on PHP and PostgreSQL. CX Codex +1 442installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor