0xShug0/audio.cpp

★ 3,958⑂ 479

An all-in-one, pure C++ inference engine for audio models, powered by ggml. Supports TTS, STT, VAD, voice conversion, music generation, and more, with highly optimized performance.

About 0xShug0/audio.cpp

0xShug0/audio.cpp is an open-source project on GitHub, mainly written in C++. An all-in-one, pure C++ inference engine for audio models, powered by ggml. Supports TTS, STT, VAD, voice conversion, music generation, and more It currently holds 3,958 stars and 479 forks with 16 open issues, and was last pushed on 2026-11-03 (repository created 2026-06-23).

Project Overview

Git Homed tracks it on the Audio Trending board and on the AI Audio Trending list.

GitHub Repository Details

Repository 0xShug0/audio.cpp · default branch main · size 141956 KB · watchers 32 · source: GitHub REST API and repository README

README

audio.cpp

https://github.com/0xShug0/audio.cpp/blob/HEAD/0xShug0%2Faudio.cpp | Trendshift 0xShug0/audio.cpp | Trendshift

audio.cpp is a high-performance C++ audio inference framework built on top of ggml, designed to make modern local audio models practical, portable, and fast.

Tired of juggling a dozen Conda environments, hundreds of Python packages, and dependency conflicts just to try a few audio models? audio.cpp gives those paths a shared native runtime instead. Runs on Windows, Linux, and macOS, with support for NVIDIA, AMD, Apple Silicon, and CPU-only machines.

Lost in a sea of audio model names, papers, and codebases? Explore 100+ audio models in the Audio Model Architecture Atlas to see how they're built, what they share, and where they differ, whether you're learning or building your own.

Hugging Face ModelScope Open In Colab Open Architecture Atlas

Supported backends: CPU CUDA HIP/ROCm Vulkan Metal WebGPU SYCL

[!TIP]
> v0.9.6 highlights
> New models: SoulX-Singer supports singing synthesis and voice conversion; Tiny Voca offers compact English TTS; and Inworld Voice Isolator removes background sound with offline and streaming checkpoints. M5-TTS brings preset voices, voice cloning, and streaming; VoxMel-TTS adds speech generation and cloning; ROSVOT transcribes singing notes; and Granite Speech 5.0 adds multilingual ASR.
> Performance and memory: Faster Kokoro CPU and PocketTTS inference (and other models). The standalone MoE engine supports independently selected expert-placement and cache policies.
> Broader backend coverage: Expanded WASM + WebGPU validation, with new pooling, transposed-convolution, and BF16 matrix-multiplication support. Linux and Windows HIP builds gain rocBLAS compatibility packages.
> Controls and fixes: CLI YAML configuration, ACE-Step reference-audio conditioning, Japanese/Korean Qwen3 alignment improvements, opt-in chunk-overlap text trimming, and custom Kokoro phoneme rules.
>

audio.cpp is built for real end-to-end execution rather than one-off model demos. Its optimized, reusable building blocks support speech generation and recognition, separation, alignment, and multi-model workflows. Shared components make new models easier to integrate and let improvements benefit multiple model families while keeping inference efficient, maintainable, and portable.

Features

⭐ 154 audio model families and 250+ variants. Run TTS, ASR, music generation, voice cloning, conversion, separation, and more locally through a shared CLI and server API.

⭐ Built-in WebUI. Generate and clone voices in Studio, compare models in Arena, manage models and voice libraries, and assemble narration with reusable speakers and passage editing in the TTS app.

⭐ Performance. Reusable sessions, cached graphs, and batched offline inference. Selected TTS paths run 1.8–8× faster than Python; tested Q8 packages deliver up to 1.53× speedup and 37% lower peak VRAM versus 16-bit weights (report). Supertonic 3 generates 10 hours of audio in 3 minutes on RTX 5090 (demo), while Nemotron 3.5 ASR matches WER at roughly ¼ the wall time in the TranscrIA benchmark. audio.cpp is among the fastest inference engines for streaming TTS latency on the Open TTS Leaderboard.

⭐ Portability. A native ggml runtime supporting CUDA, HIP/ROCm, Vulkan, Metal, WebGPU, SYCL, and CPU through common CLI and server interfaces.

⭐ Hardware-specific optimizations. ARM NEON acceleration, Rockchip RKNN component execution, experimental HIP kernels, and CUDA, Metal, and Vulkan optimizations. Model-specific perf_mode presets expose optional fast paths for supported hardware.

⭐ Parity. Validation tooling for comparing model outputs against Python reference implementations.

⭐ Integrations and deployment. Powers speech, music, and transcription in Unsloth Studio. Fun-ASR-Nano and SenseVoice can also be deployed through the FunASR platform.

Contributing

audio.cpp would not be moving this quickly without generous contributors bringing in real fixes, new capabilities, and careful polish. See CONTRIBUTING.md for how to contribute and for a shout-out to the people already helping shape the project. Before starting a new model port, check the supported model table because several families are already implemented or under testing, and read the New Model PRs section in CONTRIBUTING.md. New ports should start under the community model source tree, where review is lighter than core models but still needs reproducible validation.

News

[!IMPORTANT]
2026-11-21 — Release v0.9.6: New SoulX-Singer, Tiny Voca, Inworld Voice Isolator, M5-TTS, VoxMel-TTS, ROSVOT, and Granite Speech 5.0 models. This release expands browser WebGPU coverage, improves CPU inference and streaming reuse, reduces metadata memory reservations, and introduces a standalone MoE engine with independent placement and cache policies. CLI YAML configuration and new conditioning and frontend controls round out the release. Thanks to our contributors for the ports, optimizations, fixes, and backend validation!

2026-11-14 — Release v0.9.5: New Zonos2/3, Kroko XL, Edda ASR, MOSS-SoundEffect v2, and MuLaCover models; MossFormer2 enhancement and super-resolution; SYCL backend support; shared DiT and MoE execution; and WebUI, model-management, and memory improvements. Thanks to everyone contributing model ports, optimizations, fixes, and validation!

2026-11-04 — Release v0.9.4: WebGPU support brings audio inference to the browser with WASM, and the WebUI gains streaming voice chat with animated SoulX avatars, cross-language dubbing, and voice-library export, import, and sorting. New models include Nemotron 3.5 Transcribe with CPU offload below 7 GB VRAM, LFM3-Audio, LFM D1-Omni, PocketTTS Small, SoulX-FlashHead, Real-time RE-USE, Magenta RealTime 2, Music Flamingo, Haas, and Underdog Bark 3, plus Irodori-TTS v4 Large. Experimental AMD kernel selection, new performance controls, and backend fixes improve speed, memory use, and compatibility. This release brings together community model ports, backend optimizations, and fixes shaped by real deployment reports.

2026-10-26 — Release v0.9.3: New speech models including Drama3, Ming 3.0 TTS/Audio Tiny, XTTS v2, Plapre 3, Gradium Phonon, and Earshot VAD, plus experimental LatentSync lip sync. Highlights include LoRA across 11 models, a TTS workspace, voice-cloning and dubbing recipes, perf_mode presets, lower memory use, and expanded HIP, ARM NEON, and Rockchip NPU support. Thanks to our contributors!

2026-10-15 — Release v0.9.2: New models include Voxtral TTS, TF-GridNet, MossFormer2, Hviske v6, FireRed VAD, AST, CED, and wake-word detection models. This release expands TTS streaming, adds multi-turn LFM2.5-Audio conversations, and improves model performance and compatibility. The WebUI gains a shared Voice Library and layout improvements. Downloadable C API libraries, Windows Vulkan portable builds, and packaged server configuration examples make integration easier. Thanks to everyone contributing code, testing, and feedback!

2026-09-30 - Release v0.9.0: 100+ audio models, an enhancement and denoising WebUI tab, speaker-tagged ASR, and performance and memory improvements. Explore the Architecture Atlas. Thanks to our community!

2026-06-25 to 2026-09-23 (releases 0.1 to 0.8): audio.cpp grew to 80+ model families and 120+ variants across TTS, ASR, music generation, voice conversion, separation, and speech analysis. Major additions included the native WebUI and Arena, GGUF packaging, LoRA adapters, streaming, and CUDA/Metal performance improvements, alongside Vulkan and experimental HIP support. The C ABI, Colab integration, MP3/HTTPS frontends, and models such as YuE2 and SheetSage2 expanded integration and audio-to-score workflows.

Supported Models

Task tags: TTS text to speech, Clone voice cloning, VC voice conversion, S2S speech-to-speech, ASR speech recognition, Classify audio classification, Wake wake-word detection, Align forced alignment, VAD voice activity detection, Diar speaker diarization, Codec audio codec, Sep source separation, MIDI audio-to-symbolic MIDI/events, Music music/song generation, SFX sound effects, Video video generation, Edit audio/music editing, Design voice design, Dialogue multi-speaker dialogue TTS, Ctrl TTS/clone voice control such as emotion, style, instruction, caption, or non-verbal tag control.

Runtime tags summarize the supported loading paths. GGUF package precision varies by model and release; check the audio.cpp GGUF repo or docs/gguf.md for the exact package list. Bundled means the tiny runtime asset ships under assets/framework/models and needs no separate model download. Stream means the family exposes a streaming server/session path. LoRA means adapter loading is supported in audio.cpp; see the LoRA guide for supported formats and usage.

Model weights keep the license of their original release, which is separate from audio.cpp's own license. docs/model_licenses.md lists that license per family, and whether it allows commercial use.

(C) marks a community model; contributor credits appear below its family name. Core and community models are grouped by task and listed alphabetically within each group.

Speech Generation And Conversation

| Family | Task | Lang | Variants | Runtime | |---|---|---|---|---| | audio8_tts (C)
@jasonchen31 | TTS, Clone | auto, yue, zh, nl, en, fr, de, it, ja, ko, pl, es | Audio8 TTS Realistic / Preview 0.6B | GGUF BF16/Q8, Stream | | auk (C) | TTS, audio editing | auto | AuK Base and AuK-Flash | GGUF F32/F16/Q8 | | breeze_tts | TTS, Clone, Design, Ctrl | zh, en | BreezeTTS 2 | GGUF BF16/Q8/Q4_0, Stream | | chatterbox | TTS, Clone, VC | ar, da, de, el, en, es, fi, fr, hi, it, ko, ms, nl, no, pl, pt, sv, sw, tr | Chatterbox 0.5B | GGUF 16/Q8 | | chatterbox_turbo (C)
@pannagaps | TTS (testing) | en | Chatterbox Turbo | GGUF 16/Q8 | | confucius4_tts | TTS, Clone | zh, en, ja, ko, de, fr, es, id, it, th, pt, ru, ms, vi | Confucius4-TTS | GGUF F32, Stream | | cosyvoice3 | TTS, Clone | zh, en, ja, ko, de, es, fr, it, ru, yue | Fun-CosyVoice3 | GGUF F32/Q8, LoRA | | dots_tts | TTS, Clone, Edit, Ctrl | multilingual | DotTTS SOAR
DotTTS MeanFlow
DotTTS Edit | GGUF 16/Q8, Stream | | dramabox | TTS, Clone | en | DramaBox | GGUF Q8 | | echo_tts (C)
@5uck1ess | TTS, Clone | en | Echo-TTS | GGUF 16/Q8 | | f5_tts (C)
@tareko | TTS, Clone | en, ar (Habibi) | F5-TTS / Habibi | GGUF, LoRA | | firered_audio | ASR, TTS, Clone, Design, Ctrl | zh, en | FireRedAudio | GGUF original/Q8 | | fireredtts3 | TTS, Clone, Design, Ctrl | 24 langs + 21 zh dialects | FireRedTTS3 Base
FireRedTTS3 Instruct/Voicedesign | GGUF original/Q8 | | fish_audio | TTS, Clone, Ctrl | auto, en, zh | Fish Audio S2 Pro | GGUF 16/Q8, Stream, LoRA | | fish_drama3 (C)
@JarodMica (base)
@Th-Underscore (small) | TTS, Clone, Ctrl, Edit | auto | Drama 3 / Drama3-small | Mixed Q2_K/Q3_K/Q4_K GGUF, IQ3_XXS (small), Stream | | glm_tts (C)
Mirek @mirek190 | TTS, Clone | zh, en | GLM-TTS | GGUF | | gradium_phonon | TTS | en/fr/de/es/pt | Phonon 31M EN, 40M FR/Multilingual | GGUF Q8, Safetensors, Stream | | higgs_audio_tts | TTS, Clone, Ctrl | auto | Higgs Audio v3 TTS 4B | GGUF 16/Q8, Stream | | index_tts2 | TTS, Clone, Ctrl | zh, en, ja, es, ar | IndexTTS-2
IndexTTS-2.5 | GGUF 16/Q8 | | inflect_v2 (C)
Jan @JanWerder | TTS | en | Inflect Micro v2 and Nano v2 | GGUF FP32 | | irodori_tts | TTS, Clone, Design, Ctrl | ja | Irodori-TTS-v4.1-Small (RF and MF)
Irodori-TTS-v4.1-Anime
Irodori-TTS-500M-v3
Irodori-TTS-600M-v3-VoiceDesign | GGUF 16/Q8 | | kitten_tts (C)
Community | TTS | en + 15 | Mini 0.8, TTS2 Mini | GGUF FP32 | | kitten_tts2 (C)
@dignome | TTS, Clone | en, ar, zh, fr, de, hi, it, pt, ru, es, nl, id, ja, ko, pl, tr | Kitten TTS 2 | GGUF Q8/Q4 | | kokoro_tts | TTS | en-us, en-gb, es, fr, hi, it, ja, pt-br, zh | Kokoro 82M | Safetensors, local GGUF BF16/Q8, Stream | | kugelaudio | TTS, Clone | European multilingual | KugelAudio-0-Open | GGUF BF16 / Q8_0 / Q4_K, Stream | | lfm2_audio (C)
@ykhrustalev / Liquid AI | ASR, TTS, S2S · Conversation | en, ja | LFM2.5-Audio | GGUF F32/16/Q8/Q4, Stream | | lfm3_audio (C)
Community | ASR, TTS, S2S · Conversation | en, ar, da, de, el, es, fi, fr, he, it, ja, ko, nl, pl, pt, sv, tr, zh | LFM3-Audio | GGUF BF16/16/Q8/Q4, Safetensors, Stream, experimental | | magpie_tts | TTS | ar-AE, ar-MSA, ar-SA, de, en, es, fr, hi, it, ko, pt-BR, vi, zh | MagpieTTS Multilingual 357M (v2607) | GGUF original/Q8 | | maya1 | TTS, Design, Ctrl | en | Maya1 | GGUF original/Q8 | | ming3_tts | TTS, Clone, Design, Ctrl | zh, en, ja, ko, de, fr, es | Ming 3.0 TTS 0.5B | GGUF BF16/Q8, Stream | | miotts | TTS, Clone | en, ja | MioTTS-1.7B | GGUF 16/Q8 | | mira_tts (C)
Mirek @mirek190 | TTS, Clone | en | MiraTTS | Local conversion | | moss_tts_local
@justinjohn0306 | TTS, Clone, Ctrl | auto, optional language hint | MOSS-TTS-Local-Transformer-v1.5 | GGUF 16/Q8 | | moss_tts_nano | TTS, Clone | auto | MOSS-TTS-Nano-100M | GGUF 16/Q8, Stream | | m5_tts | TTS, Clone | zh, en, de, fr, ja, ko | M5-TTS 50M VoiceClone / CustomVoice | GGUF F16/Q8, Stream | | moss_tts_v15 (C)
Chris @christopherthompson81 | TTS, Clone | en, zh | MOSS-TTS-v1.5 | GGUF | | moss_ttsd (C)
Chris @christopherthompson81 | TTS, Clone, Dialogue | en, zh | MOSS-TTSD | GGUF BF16/Q8/Q4 | | moss_voicegen (C)
Joost @jrohde | Voice Design | en, zh | MOSS-VoiceGenerator | GGUF | | neutts | TTS, Ctrl | en | NeuTTS 2E | GGUF original precision, Stream | | omnivoice | TTS, Clone, Design, Ctrl | 646+ langs | OmniVoice
VoiceTut-TTS (Egyptian Arabic) | GGUF 16/Q8, Stream | | outetts (C)
Mirek @mirek190 | TTS, Clone | en, ar, zh, nl, fr, de, it, ja, ko, lt, ru, es, pt, be, bn, ka, hu, lv, fa, pl, sw, ta, uk | OuteTTS 1.0 1B | GGUF, LoRA | | personaplex | Dialogue, S2S · Conversation | en | PersonaPlex 7B v1 | GGUF Q4/Q8, Stream | | piper_tts (C)
Community | TTS | en | Piper TTS | GGUF FP32 | | plapre | TTS, Clone, Ctrl, Edit | da | Plapre 3 | GGUF F32/BF16, Stream | | pocket_tts | TTS, Clone | en, fr, de, it, pt, es | PocketTTS 100M | GGUF 16/Q8, Stream | | pocket_tts_small | TTS, Clone | en | PocketTTS Small 18M / 7M / 2M
Base / ReFL | GGUF F32, Stream | | qwen3_tts | TTS, Clone, Design, Ctrl | zh, en, fr, de, it, ja, ko, pt, ru, es | Qwen3-TTS 0.6B Base
1.7B Base / CustomVoice / VoiceDesign | GGUF 16/Q8, Stream, LoRA | | sanotts (C)
Ashish @voidash | TTS | en, vi, id, cs, de, es, fr, it, pt, ro, ru, tr, ne, hi | sanoTTS voice family | GGUF FP32 | | soprano_tts (C)
@drzsdrtfg | TTS | en | Soprano 1.1 80M | GGUF Q8, Stream | | sopro_tts (C)
@Brioch
@samuel-vitorino | TTS, Clone | en, pt, fr, de | Sopro V2 Turbo (2.2.0) | Safetensors, GGUF F16, Stream | | tiny_voca (C)
Nazeem @n4ze3m | TTS | en | tiny-voca | GGUF FP32 | | supertonic | TTS | en, ko, ja, ar, bg, cs, da, de, el, es, et, fi, fr, hi, hr, hu, id, it, lt, lv, nl, pl, pt, ro, ru, sk, sl, sv, tr, uk, vi, na | Supertonic 3 | GGUF F32, Stream | | vibevoice | TTS, Dialogue | en, zh | VibeVoice-1.5B
VibeVoice-7B | GGUF 16/Q8, Stream, LoRA | | vieneu_v3_turbo (C)
Bảo @pnnbao97
@phuocnguyen90 | TTS, Clone | vi, en | VieNeu-TTS v3 Turbo | GGUF | | voxcpm1 (C)
@jasonchen31 | TTS, Clone | zh, en, ja, ko | VoxCPM1 | GGUF Q8, Stream, LoRA | | voxcpm2 | TTS, Clone, Design, Ctrl | ar, da, de, el, en, es, fi, fr, he, hi, id, it, ja, km, ko, lo, ms, my, nl, no, pl, pt, ru, sv, sw, th, tl, tr, vi, zh | VoxCPM2-2B
VocalRender-Pro | GGUF 16/Q8, Stream, LoRA | | voxmel_tts | TTS, Clone | en, zh | VoxMel 0.6B | GGUF F16/Q8 | | voxtral_tts | TTS | en, fr, es, de, it, pt, nl, ar, hi | Voxtral-4B-TTS-2603 | GGUF BF16/Q8, Stream | | xtts_v2 (C)
@whoreson | TTS, Clone | en, es, fr, de, it, pt, pl, tr, ru, nl, cs, ar, zh-cn, hu, ko, ja, hi | Coqui XTTS v2 | GGUF original/Q8_0/Q4_K_M | | zipvoice (C)
Community | TTS, Clone | zh, en | ZipVoice | GGUF F32, Stream | | zonos2 (C)
@Ryu1845 | TTS, Clone | en, fr, de, es, it, pt, ja, zh, ko | ZONOS2 | GGUF Q8_0, Stream | | zonos3 (C)
@Ryu1845 | TTS, Clone | en, fr, de, es, it, pt, ja, zh, ko | ZONOS3-Mini | GGUF Q4_0/Q8_0, Stream |

Speech Recognition And Analysis

| Family | Task | Lang | Variants | Runtime | |---|---|---|---|---| | ast_audioset | Classify | language agnostic | AST AudioSet | GGUF F32 | | audio8_asr (C)
@gqf2008 | ASR | en, zh, yue, ja, ko, fr, de | Audio8-ASR-0.1B (local conversion) | GGUF Q8, Safetensors | | audio_flamingo | ASR, Audio understanding | en | Audio Flamingo 3 / Next
Music Flamingo 2601
SpotSound | GGUF BF16/Q8/Q4, LoRA | | canary_asr | ASR, Translate | en, de, es, fr | Canary 180M Flash | GGUF F32/Q8 | | ced | Classify | language agnostic | CED Tiny / Mini / Small / Base | GGUF F32 | | citrinet_asr | ASR | en | Citrinet-256 | GGUF Q8 | | cohere_asr | ASR | en, fr, de, es, it, pt, nl, pl, el, ar, ja, zh, vi, ko | Cohere Transcribe 03-2026 | GGUF BF16/Q8/Q4_0 | | confucius4_r2t2 (C)
@davidxifeng | ASR | 30 languages | Confucius4-R2T2 | Safetensors, GGUF F16/Q8/Q4, Stream | | crisperwhisper | ASR, Align | 99 language codes | CrisperWhisper 2.0 Large | GGUF BF16/Q8, Stream | | earshot_vad (C)
@Etherll | VAD | lang agnostic | Earshot VAD | Bundled, Stream | | edda_asr (C)
Lars Karlslund @lkarlslund | ASR | da | Edda v0.2 large | Safetensors, GGUF 16/Q8, Stream | | firered_vad | VAD | lang agnostic | FireRed VAD / Stream-VAD | GGUF F32/F16/Q8, Stream | | fun_asr_nano
@LauraGPT (FunASR team) | ASR | auto, zh, en, ja | Fun-ASR-Nano-2512 | GGUF 16/Q8 | | gigaam_asr | ASR | ru, kk, ky, uz, en | [GigaAM v3 C

GitHub Stars & Activity

3,958Stars
479Forks
16Open issues
C++Language

GitHub Popularity

GitHub stars3,958
Forks479
Open issues16
Primary languageC++
LicenseNOASSERTION
Stars gained today0
Created2026-06-23
Last pushed2026-11-03

Trending History

Trending statusnot on today's boards

Related GitHub Projects

1

ggml-org / whisper.cpp

C++★ 55,506⑂ 0
→
2

mozilla / DeepSpeech

C++★ 26,775⑂ 0
→
3

k2-fsa / sherpa-onnx

C++★ 16,224⑂ 0
→
4

rhasspy / piper

C++★ 11,335⑂ 0
→
5

flashlight / wav2letter

C++★ 6,443⑂ 0
→
6

coqui-ai / STT

C++★ 2,603⑂ 0
→
7

huggingface / transformers

Python★ 169,302⑂ 0
→
8

debpalash / VoiceStudio

Python★ 118,066⑂ 0
→

More Trending Repositories