M5-TTS integration — native GGUF TTS architecture (completed, PR #5)

Aperta
#6 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
8/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
cpp, python

Direzione di ricerca

This is a completion report for work already landed in PR #5, not a task to pick up; read PR #5 first and confirm whether anything remains open. If it does, the entry points are scripts/convert_m5tts_to_gguf.py for the GGUF conversion and rapidspeech/src/arch/m5tts.cpp with m5tts_lm.cpp, m5tts_codec.cpp and m5tts_graph.h for the ISpeechModel implementation, plus the C API whitelist entry "m5-tts". The only follow-ups named are the F16 im2col quantization noise in the codec encoder and missing streaming TTS / HTTP reference-audio endpoints; "done" needs a maintainer to scope one of those first.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Summary

Integration of ASLP-lab/M5-TTS — a 50M-param multilingual TTS with multi-token prediction (16 codebooks @ 12.5 fps) and the Qwen3-TTS 12Hz codec — as a native GGUF architecture for RapidSpeech.cpp.

PR: #5

What was done

  • scripts/convert_m5tts_to_gguf.py: converts the M5-TTS checkpoint + Qwen 12Hz codec into a single GGUF (LM weights + codec encoder + codec decoder + llama3 byte-level BPE tokenizer + precomputed RoPE tables)
  • rapidspeech/src/arch/m5tts.{h,cpp} + m5tts_lm.cpp + m5tts_codec.cpp + m5tts_graph.h: full inference architecture implementing the ISpeechModel interface
  • C API whitelist: "m5-tts" added to the TTS architecture list

Pipeline

text (+ref audio) → wetext TN → llama3 BPE
  → backbone (8L llama-30M) prefill [text ‖ codec-encoded prompt]
  → frame loop: backbone step → MTP depth decoder (5L llama-20M) × 16 codebooks
  → Qwen3-TTS 12Hz codec decoder → 24 kHz PCM

Verification

  • x-asr round-trip on target text: exact match ("你好,欢迎使用我们的语音合成模型。")
  • RTF: 1.46 (CPU 8-thread, WSL2)
  • GGUF models available at: yoleen/M5-TTS-GGUF

Notes

  • The codec encoder uses F16 im2col (ggml limitation) which introduces ~0.1% quantization noise in reference audio encoding, degrading voice-cloning prompt quality slightly
  • Streaming TTS and HTTP server reference-audio endpoints are potential follow-up work
Lingua principale
C
Stelle
35
Fork
5
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di RapidAI/RapidSpeech.cpp

Tutte le issue di RapidAI/RapidSpeech.cpp

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.