Tts logo

Tts

Community
crazynomad
tts

Text-to-speech and speech-to-text on Apple Silicon using Vox CLI (Qwen3-TTS + MLX)

Overview

Publishercrazynomad
Repositoryskills
Skill nametts
Stars
27
Forks
8
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by crazynomad on GitHub. Read the source before you install it.

Installation

Install the Tts AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/crazynomad/skills/tree/master/tts
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/crazynomad/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/tts .claude/skills/tts
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Tts in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Tts on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Tts is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Vox TTS / STT (Apple Silicon)

Local text-to-speech, speech-to-text, and voice cloning powered by Qwen3-TTS/ASR + MLX on Apple Silicon.

Description

A powerful local TTS/STT skill based on Vox CLI that runs entirely on Apple Silicon Macs. Features speech synthesis with preset and custom voices, voice cloning from audio samples, speech recognition with subtitle generation, and batch processing. All models run locally via MLX - your data never leaves your machine.

When to Use

Use this skill when users:

  • Want to convert text to speech, "read this aloud", "generate audio from text"
  • Ask for "TTS", "text to speech", "语音合成", "文字转语音", "朗读"
  • Want to transcribe audio to text, "STT", "speech to text", "语音识别", "转录"
  • Need voice cloning from a sample, "clone this voice", "克隆声音"
  • Want to generate subtitles (SRT/VTT) from audio
  • Ask for batch text-to-speech conversion
  • Mention "vox" or "Qwen3-TTS"

Features

  • Text-to-Speech: Synthesize speech with 20+ preset voices
  • Speech-to-Text: Transcribe audio with word-level timestamps
  • Voice Cloning: Clone a voice from a 3+ second audio sample
  • Voice Design: Describe a voice in natural language and generate it
  • Subtitle Generation: Output SRT/VTT with word-level timestamps
  • Batch Processing: Process multiple texts in one model-load cycle
  • Daemon Mode: Keep models resident in memory for faster subsequent calls
  • Multiple Models: 0.6B (small/fast) and 1.7B (large/quality) parameter models
  • 100% Local: All processing runs on-device via MLX

Usage

Basic Syntax

bash
python scripts/vox_tts.py speak "Hello, this is a test" [OPTIONS]
python scripts/vox_tts.py transcribe audio.wav [OPTIONS]
python scripts/vox_tts.py clone "Text to speak" --ref voice_sample.wav [OPTIONS]

Common Scenarios

Speak text with default voice:

bash
python scripts/vox_tts.py speak "Hello world" -o ./output

Speak text and play immediately:

bash
python scripts/vox_tts.py speak "Hello world" --play

Speak with a specific voice:

bash
python scripts/vox_tts.py speak "Hello world" --voice Chelsie -o ./output

Speak with emotion/style instruction:

bash
python scripts/vox_tts.py speak "I can't believe it!" --instruct "excited and surprised" -o ./output

Speak Chinese text:

bash
python scripts/vox_tts.py speak "你好,世界" --voice Chelsie -o ./output

Clone a voice and speak:

bash
python scripts/vox_tts.py clone "Text in the cloned voice" --ref sample.wav -o ./output

Register a cloned voice for reuse:

bash
python scripts/vox_tts.py clone --ref sample.wav --register my-voice
python scripts/vox_tts.py speak "Now using my custom voice" --voice my-voice

Design a voice from description:

bash
python scripts/vox_tts.py design "Hello everyone" --desc "A warm, friendly female voice with a slight British accent" -o ./output

Transcribe audio to text:

bash
python scripts/vox_tts.py transcribe recording.wav

Transcribe with subtitles:

bash
python scripts/vox_tts.py transcribe recording.wav --subtitle srt -o ./output

Batch TTS from file (one line per utterance):

bash
python scripts/vox_tts.py batch texts.txt --voice Chelsie -o ./output

Use large model for higher quality:

bash
python scripts/vox_tts.py speak "High quality speech" --model large -o ./output

List available voices:

bash
python scripts/vox_tts.py voices

Arguments

speak - Text-to-Speech
ArgumentDescriptionDefault
textText to synthesize (required)-
-o, --outputOutput directoryCurrent directory
-v, --voiceVoice name (see voices command)Chelsie
-m, --modelModel size: small, large, large-hqsmall
-s, --speedSpeech speed multiplier1.0
-i, --instructEmotion/style instructionNone
--playPlay audio after generationFalse
--subtitleGenerate subtitle: srt or vttNone
transcribe - Speech-to-Text
ArgumentDescriptionDefault
audioAudio file path (required)-
-o, --outputOutput directoryCurrent directory
--subtitleOutput format: srt, vtt, jsonplain text
--languageSource languageauto-detect
clone - Voice Cloning
ArgumentDescriptionDefault
textText to synthesizeNone
--refReference audio file (3+ seconds, required)-
--registerRegister as reusable voice nameNone
-o, --outputOutput directoryCurrent directory
design - Voice Design
ArgumentDescriptionDefault
textText to synthesize (required)-
--descVoice description in natural language (required)-
-o, --outputOutput directoryCurrent directory
batch - Batch Processing
ArgumentDescriptionDefault
fileText file, one utterance per line (required)-
-v, --voiceVoice nameChelsie
-o, --outputOutput directoryCurrent directory

Dependencies

bash
# Requirements: Apple Silicon Mac (M1/M2/M3/M4), Python 3.10+, macOS 13+

# Install via pipx (recommended, global CLI)
brew install pipx
pipx ensurepath
git clone https://github.com/3Craft/tts.git /tmp/vox-tts
cd /tmp/vox-tts && pipx install .

# Or install via pip in a venv
pip install -e /path/to/tts

# Optional: Chinese text support
pipx inject vox-cli 'misaki[zh]'

# Optional: Japanese text support
pipx inject vox-cli 'misaki[ja]'

Output Structure

Single TTS

OutputDir/
├── output.wav              # Generated audio
└── output.srt              # Subtitle (if --subtitle srt)

Batch TTS

OutputDir/
├── 001_first_line.wav
├── 002_second_line.wav
└── ...

Transcription

OutputDir/
├── recording.txt           # Plain text transcript
└── recording.srt           # Subtitle (if --subtitle srt)

Claude Integration

When user requests TTS, STT, or voice cloning:

  1. Read skill documentation:

    python
    view("/mnt/skills/user/tts/SKILL.md")
  2. Check if vox is installed:

    bash
    python /mnt/skills/user/tts/scripts/vox_tts.py check
  3. Install if needed:

    bash
    brew install pipx && pipx ensurepath
    git clone https://github.com/3Craft/tts.git /tmp/vox-tts
    cd /tmp/vox-tts && pipx install .
  4. Execute command:

    bash
    # TTS
    python /mnt/skills/user/tts/scripts/vox_tts.py speak "TEXT" \
      --voice Chelsie -o /mnt/user-data/outputs
    
    # STT
    python /mnt/skills/user/tts/scripts/vox_tts.py transcribe audio.wav \
      -o /mnt/user-data/outputs
    
    # Voice cloning
    python /mnt/skills/user/tts/scripts/vox_tts.py clone "TEXT" \
      --ref sample.wav -o /mnt/user-data/outputs
  5. Present files to user:

    python
    present_files(["/mnt/user-data/outputs/..."])

Available Voices

Run vox voices to see all preset voices. Some commonly used:

VoiceDescription
ChelsieDefault female voice
EthanMale voice

Custom voices can be registered via clone --register.

How It Works

TTS Workflow

  1. Text Processing: Tokenize and normalize input text
  2. Model Inference: Run Qwen3-TTS model via MLX on Apple Silicon GPU
  3. Audio Generation: Generate WAV audio at 24kHz
  4. Post-Processing: Apply speed adjustment, generate subtitles if requested

STT Workflow

  1. Audio Loading: Read audio file and resample if needed
  2. Model Inference: Run Qwen3-ASR model via MLX
  3. Decoding: Generate text with word-level timestamps
  4. Output: Format as plain text, SRT, VTT, or JSON

Under the Hood

  • Models are downloaded from HuggingFace on first use (~1-3 GB)
  • 8-bit quantization by default for memory efficiency
  • bf16 mode available via large-hq for highest quality
  • Daemon mode (vox serve) keeps models in memory for sub-second response

Common Issues

Q: First run is slow? A: Models are downloaded on first use (1-3 GB). Subsequent runs are much faster. Use daemon mode (vox serve) for instant response.

Q: "Not Apple Silicon" error? A: Vox CLI requires Apple Silicon (M1/M2/M3/M4). It uses MLX which only runs on Apple's Neural Engine.

Q: Chinese/Japanese text sounds wrong? A: Install language support: pipx inject vox-cli 'misaki[zh]' or pipx inject vox-cli 'misaki[ja]'

Q: Out of memory? A: Use the small model (default) instead of large. Close other apps to free memory.

Q: How to use a custom voice persistently? A: Register it: vox clone --ref sample.wav --register my-voice, then use --voice my-voice.

Example Conversations

User: "帮我把这段文字转成语音:今天天气真好"

Claude:

bash
python /mnt/skills/user/tts/scripts/vox_tts.py speak "今天天气真好" \
  --voice Chelsie -o /mnt/user-data/outputs --play

User: "Transcribe this audio file to SRT subtitles"

Claude:

bash
python /mnt/skills/user/tts/scripts/vox_tts.py transcribe recording.wav \
  --subtitle srt -o /mnt/user-data/outputs

User: "用这段录音克隆一个声音,然后用它朗读一段话"

Claude:

bash
# Register the cloned voice
python /mnt/skills/user/tts/scripts/vox_tts.py clone \
  --ref sample.wav --register custom-voice

# Speak with the cloned voice
python /mnt/skills/user/tts/scripts/vox_tts.py speak "这是用克隆声音朗读的文字" \
  --voice custom-voice -o /mnt/user-data/outputs --play

Limitations

  • Apple Silicon only: Requires M1/M2/M3/M4 Mac (MLX dependency)
  • macOS 13+: Minimum OS version requirement
  • Memory: Large model needs ~4GB RAM; small model ~2GB
  • Languages: Best quality for English and Chinese; other languages may vary
  • Voice cloning: Requires 3+ seconds of clear speech reference audio

Version History

v1.0 (Current)

  • Initial release wrapping Vox CLI v0.3.3
  • TTS, STT, voice cloning, voice design
  • Batch processing and subtitle generation
  • Daemon mode support

References

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Tts AI skill do?

Text-to-speech and speech-to-text on Apple Silicon using Vox CLI (Qwen3-TTS + MLX)

Why use Tts on TypingMind?

Because you install it once and use it with any model. Tts is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Tts in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/crazynomad/skills/tree/master/tts. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Tts?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Tts?

As many as you like. As long as a model supports skills, you can use Tts with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Tts AI skill free?

Yes. It is published on GitHub by crazynomad under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇