AI voice · Course
SGLang-Omni, Read Closely
Read sgl-project/sglang-omni closely by following one text-to-speech request through it: how sound becomes codes and codes become sound again, then the processes, stages, streaming and scheduling that serve it. Every number on screen comes from a real run of the pinned code.
9 parts out2.6 h of video29 episodes plannedEN · 中文
What you get
- A video for each part, with chapters
- Slides to read at your own pace (PDF)
- A code index with every file:line shown, linked to the source
- Practice questions answered from real runs
Good fit
- Engineers moving into speech model serving or voice agents
- Backend engineers new to audio who want codecs and TTS explained from the code
- Teams deciding whether to serve speech models with SGLang-Omni
Not for
- Training or fine-tuning speech models
- Calling a hosted TTS API without running a model yourself
Syllabus
FreeFree with accountMembersPlanned
Foundations: how a machine speaks
8 parts · 145 minOverview
1 parts · 13 min1bThe way in
1cCodes stream to the vocoder
1dThe way out
Runtime skeleton
Planned2Launch: from sgl-omni serve to ready
3The stage shell and three scheduler loops
4The control plane: ZMQ sockets and messages
5Routing and the stage-to-stage stream protocol
6Moving data: local objects, CUDA IPC, shared memory, Mooncake
7How aborts and failures spread
8The Coordinator: admission, in-flight caps, backlog
Qwen3-TTS in depth
Planned9Building the Qwen3-TTS prompt
10Talker and code predictor: 16 codes per frame
11Plugging into SGLang: KV cache, radix, feedback embeddings
12The incremental vocoder and its state arena
13The chunk ramp: time to first audio vs underruns
14Making it fast: CUDA graphs, fused kernels, async decode
15Benchmarking: time to first audio, real-time factor, QPS
More TTS
Planned16Other TTS shapes: CosyVoice3, S2-Pro, Higgs
Speech recognition
Planned17Qwen3-ASR: a recognition pipeline that runs on a Mac
18Streaming ASR, long-audio chunking and diarization
Serving
Planned19The API layer: speech, voice upload, SSE and WebSocket
20The router and replicas
21Several stages on one GPU: placement and memory fractions
Voice agents
Planned22Sessions and the realtime interface
23VAD and turn detection
24The streaming cascade: ASR → LLM → TTS
25Native full-duplex models
26Capstone: a voice agent on your own server
Contributing
Planned27Adding a new TTS model by the checklist
28Your first PR