Logo di Tts

Tts

Community
crazynomad
tts

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

Panoramica

Autorecrazynomad
Repositoryskills
Nome della skilltts
Stelle
27
Fork
8
File inclusi
1
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • 1 file inclusi

    Script, modelli di documento e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da crazynomad su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Tts in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/crazynomad/skills/tree/master/tts
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Tts in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Tts non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Tts non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Tts?

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

Perché usare Tts su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Tts è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Tts in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/crazynomad/skills/tree/master/tts. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Tts?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Tts?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Tts: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Tts è gratuita?

Sì. È pubblicata su GitHub da crazynomad con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇