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

Đang mở
#6 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
8/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp, python

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
C
Star
35
Fork
5
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của RapidAI/RapidSpeech.cpp

Tất cả issue của RapidAI/RapidSpeech.cpp

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.