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

Abierto
#6 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
8/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Activo
Stack tecnológico
cpp, python

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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
Lenguaje dominante
C
Estrellas
35
Forks
5
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de RapidAI/RapidSpeech.cpp

Todos los issues de RapidAI/RapidSpeech.cpp

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.