Skip to main content

Matcha Models

Matcha is a high-quality TTS model that uses an acoustic model + vocoder pipeline to produce very natural-sounding speech. It’s designed for applications where quality is the top priority.

Model Architecture

Matcha uses a two-stage architecture:
  • Acoustic Model (acoustic_model.onnx) – Generates mel-spectrogram from text
  • Vocoder (vocoder.onnx) – Converts mel-spectrogram to waveform
  • Tokens (tokens.txt) – Text token vocabulary
This separation allows for high-quality synthesis by using specialized neural networks for each stage.

When to Use

High-Quality Audio

When naturalness and quality are more important than speed

Audiobook Narration

Professional-quality narration for long-form content

Content Creation

Voiceovers for videos, podcasts, and media

Expressive Speech

Natural prosody and intonation

Supported Languages

Matcha models are available for:
  • English (primary focus)
  • Some multilingual variants
Check the download page for available languages.

Performance Characteristics

Matcha Models

Browse and download pretrained Matcha models

Configuration Example

Basic TTS

With Model Options

Streaming TTS

Save to File

Model Options

Matcha models support two tuning parameters:

Tuning Examples

Runtime Updates

Model Detection

Matcha models are detected automatically by:
  • Presence of acoustic_model.onnx + vocoder.onnx
  • No folder name pattern required
Expected files:
  • acoustic_model.onnx
  • vocoder.onnx
  • tokens.txt

Performance Tips

Optimize Thread Count

Use Streaming for Long Text

For better perceived performance:

Hardware Acceleration

Streaming Support

Streaming: ✅ YesMatcha models support streaming generation. Use generateSpeechStream() for incremental audio generation and low-latency playback.

Advantages

  1. Excellent Quality: Very natural-sounding speech
  2. Natural Prosody: Good intonation and rhythm
  3. Streaming: Supports incremental generation
  4. Acoustic Model + Vocoder: Flexible two-stage architecture
  5. Multi-Speaker: Some models support multiple speakers

Limitations

  1. Slower than VITS: Two-stage architecture is slightly slower
  2. Larger Size: Requires both acoustic model and vocoder
  3. No Voice Cloning: Cannot synthesize custom voices
  4. Limited Languages: Primarily English-focused

Use Cases

Audiobook Narration

Professional-quality long-form narration

Content Production

Voiceovers for videos and media

E-Learning

High-quality educational content

Podcasts

Natural-sounding podcast narration

Common Issues

  • Verify both acoustic_model.onnx and vocoder.onnx are present
  • Check that tokens.txt exists
  • Ensure sufficient device memory for both models
  • Increase numThreads on multi-core devices
  • Use hardware acceleration (provider: 'nnapi')
  • Consider using VITS for faster generation
  • Ensure no other heavy apps are running
  • Adjust noiseScale for more/less expressiveness
  • Try different lengthScale values
  • Ensure correct sample rate for playback
  • Check that vocoder output is not being resampled incorrectly

Comparison with Other Models

Next Steps

TTS API

Detailed API documentation

Streaming TTS

Low-latency streaming guide

Model Setup

How to download and bundle models

Execution Providers

Hardware acceleration options