Breeze TTS 2

audio_tokenizer/LICENSE · Apache-2.0 · Qwen/Qwen3-TTS-Tokenizer-12Hz

Apple M5 Pro · 48 GiB · TTFA / RTF / RSS

2026-10-30 · en · 8bit=3.20 s · bf16=3.20 s · seed=42 · CFG=4 · firstChunkFrames=3 · chunkFrames=25 · MLX cache=2 GiB · warm=3

MLXTTFA p50RTFRSS (GiB)Huella física máxima (GiB)
8bit178 ms0.5353.927.23
bf16272 ms0.8686.069.22

WAV=45 · distinct=11 · 8bit PCM SHA256=baseline · unit=1933 · skipped=42 · E2E=15 · Qwen3-ASR-0.6B-MLX-4bit

BF16 alcanza RTF 0.868 en la frase corta (referencia: 1.258) y 0.853 en el párrafo de 9.20 s (referencia: 1.280). Con un fotograma inicial, el primer PCM llega en 138 ms. Las 11 formas de onda finales distintas tienen WER/CER normalizados de cero en ASR independiente; la salida de 8 bits con bloques predeterminados es idéntica byte a byte a la referencia. El redondeo BF16 puede cambiar el audio con la misma semilla. Configura SPEECH_SWIFT_BREEZE_GEMV=0 antes de cargar para comparar la ruta de proyección original.

Para iniciar antes la reproducción, usa un fotograma inicial, dos por bloque posterior y una caché MLX de 1 GiB. El párrafo de 8 bits de 9.04 s completa el búfer previo estimado de la CLI en 190 ms, sin búfer adicional según las llegadas registradas. La estimación excluye el callback de renderizado y la latencia del dispositivo de salida.

2026-10-30 · 8bit · 9.04 s · firstChunkFrames=1 · chunkFrames=2 · MLX cache=1 GiB · PCM=103 ms · buffer=190 ms · RTF=0.761 · peak=6.10 GiB

speech speak "The quick brown fox jumps over the lazy dog." --engine breeze \
  --instruct "A clear, calm English narrator." --first-chunk-frames 1 \
  --chunk-frames 2 --breeze-cache-limit-mib 1024 --stream -o fast-start.wav

TTFA excluye la carga del modelo y la reproducción por altavoces. Los resultados dependen del hardware, texto y ajustes. La política compartida limita la caché MLX reutilizable al menor valor entre 2 GiB y un cuarto de la memoria física, respetando presupuestos inferiores de la aplicación. --breeze-cache-limit-mib puede reducir el límite del proceso; 0 desactiva la caché reutilizable. No limita los tensores activos.

TTS en inglés y chino con diseño de voz, clonación y dirección mediante audio de referencia y audio en streaming (MLX BF16/8-bit, 24 kHz; licencia de investigación y uso no comercial).

BreezeTTS · 24,000 Hz · 16 × 2,048 · 80 ms · MLX BF16 / 8-bit

Uso

speech speak "The quick brown fox jumps over the lazy dog." --engine breeze \
  --instruct "A clear, calm English narrator." --stream -o design.wav

speech speak "The weather is beautiful today." --engine breeze \
  --voice-sample reference.wav --breeze-reference-text "Exact transcript." \
  --breeze-seed 42 -o clone.wav

speech speak "We need to discuss what happened." --engine breeze \
  --voice-sample reference.wav --breeze-reference-text "Exact transcript." \
  --instruct "Speak slowly, with a serious tone." --stream -o directed.wav

API Swift

import BreezeTTS

let model = try await BreezeTTSModel.fromPretrained()
let samples = try await model.generate(
    text: "The quick brown fox jumps over the lazy dog.",
    instruction: "A clear, calm English narrator.")

try await model.generateStreaming(text: "Hello, world!", instruction: "A warm voice.") { chunk in
    print(chunk.sampleRate, chunk.samples.count, chunk.isFinal)
}

Opciones

Licencia

Derived from Breeze TTS 2 by BreezeBlue and licensed for research and non-commercial use only.

BreezeBlue Research and Non-Commercial License · Breeze TTS 2 MLX 8-bit · Breeze TTS 2 MLX BF16

Código y conversión

speech-swift / BreezeTTS · export_breeze_mlx.py · WER / CER / RSS / TTFA / RTF