Skip to main content

Overview

TTSKit provides on-device text-to-speech using Qwen3 TTS models running entirely on Apple silicon with real-time streaming playback.
TTSKit requires macOS 15.0+ or iOS 18.0+

Quick Start

Basic Speech Generation

TTSKit() automatically downloads the default 0.6B model on first run and loads all necessary components.

Real-Time Streaming Playback

Play audio as it’s being generated:
The audio begins playing immediately, streaming frame-by-frame as it’s generated.

Model Selection

TTSKit offers two model sizes:
Models are hosted on HuggingFace and cached locally after first download.

Voice Selection

Choose from 9 built-in voices:

Available Voices

  • ryan - Clear, neutral male voice
  • aiden - Warm male voice
  • onoAnna - Professional female voice
  • sohee - Friendly female voice
  • eric - Authoritative male voice
  • dylan - Casual male voice
  • serena - Calm female voice
  • vivian - Energetic female voice
  • uncleFu - Character voice

Multi-Language Support

TTSKit supports 10 languages:

Supported Languages

.english, .chinese, .japanese, .korean, .german, .french, .russian, .portuguese, .spanish, .italian

Generation Options

Customize the generation behavior:

Style Instructions (1.7B Model Only)

The 1.7B model accepts natural-language style instructions:
Style instructions only work with the 1.7B model. They are ignored by the 0.6B model.

Playback Strategies

Control how audio is buffered and played:

Saving Audio Files

Export generated audio to disk:

Progress Callbacks

Receive per-step audio during generation:

Complete SwiftUI Example

Command Line Usage

TTSKit is available through the whisperkit-cli tool:

Performance Optimization

Compute Units

Optimize for your device:

Concurrent Workers

Adjust concurrency for long text:

Demo App

The TTSKitExample app showcases:
  • Real-time streaming playback
  • Model management UI
  • Waveform visualization
  • Generation history
  • macOS and iOS support
Build and run to explore all features!

Next Steps

Basic Transcription

Learn speech-to-text with WhisperKit

Real-Time Streaming

Transcribe audio in real-time