█

AI/TLDR

मुझे पिलाएं कॉफ़ी
मुझे एक कॉफ़ी पिलाएँ

audio.cpp

स्थानीय ऑडियो मॉडलों के लिए एक नेटिव ggml रनटाइम — TTS, ASR, voice cloning और conversion, diarization, VAD और separation, और इसमें Python की ज़रूरत नहीं

Audio, Music & Voiceओपन सोर्स
ताज़ा
v0.8.1
अपडेट किया गया
17 सित॰ 2026
भाषा
C++
लाइसेंस
Apache-2.0
$brew tap 0xShug0/audio-cpp

नया क्या है

v0.8.117 सित॰ 2026

YuE2 gained independent AR and NAR LoRA adapters through the CLI and server, with AR LoRA selection in the WebUI. The release also added six model families: Apollo, UniverSR, PulseVAD, Canary 180M Flash, Cohere Transcribe and MOSS-Transcribe-Diarize.

संक्षेप में

audio.cpp क्या है?

audio.cpp स्थानीय ऑडियो मॉडलों के लिए एक नेटिव ggml रनटाइम — TTS, ASR, voice cloning और conversion, diarization, VAD और separation, और इसमें Python की ज़रूरत नहीं. यह Multimodal Generation टूल्स की Audio, Music & Voice श्रेणी में आता है; ओपन सोर्स है, C++ में लिखा गया है और Apache-2.0 लाइसेंस के तहत है।

अपडेट किया गया Markdown वर्शन ↗

सारांश

audio.cpp एक C++ inference framework है, जो ऑडियो मॉडलों के लिए `ggml` पर बना है, और यह llama.cpp और whisper.cpp वाली उसी परंपरा से आता है। इसका मूल विचार यह है कि कुछ आधुनिक ऑडियो मॉडल चलाने के लिए कई Conda environments की ज़रूरत न पड़े। हर प्रोजेक्ट अपना अलग Python stack लेकर चलने के बजाय सभी एक साझा नेटिव रनटाइम का इस्तेमाल करते हैं, जिसकी एक common CLI और server सतह है। यह Windows, Linux और macOS पर चलता है, NVIDIA, AMD और Apple Silicon हार्डवेयर पर, और केवल CPU वाली मशीनों पर भी।

इसका दायरा text-to-speech से कहीं बड़ा है। वही रनटाइम TTS, voice cloning, voice conversion, ASR, diarization, voice-activity detection, source separation, forced alignment, codec-style मॉडल, और experimental JSON pipeline format के ज़रिए multi-step workflows को भी सँभालता है। बिल्ट-इन ऑडियो utilities denoise, enhancement, resampling और STFT/ISTFT का काम करती हैं, इसलिए आम production-style pre- और post-processing के लिए अलग toolchain की ज़रूरत नहीं पड़ती। रिलीज़ 0.8.0 (September 2026) में यह संख्या 80 से ज़्यादा model families और 120 model variants तक पहुँची।

Correctness को सिर्फ़ मान कर नहीं चला जाता, बल्कि उसे स्पष्ट रूप से जाँचा जाता है। प्रोजेक्ट में parity tooling है, जो randomness नियंत्रित करके FP32 पर CPU + Python reference path को पिन करता है, एक backend baseline बनाता है, और हर बदलाव को parity checks पर परखता है: byte-identical output, cosine similarity और log-mel similarity। इसका दस्तावेज़ी नियम है कि refactors, bug fixes और सामान्य performance काम से outputs byte-identical ही रहने चाहिए, और केवल गहरी optimisations ही नियंत्रित baseline reset को जायज़ ठहरा सकती हैं।

Performance में यह अपनी बात खुद साबित करता है। प्रोजेक्ट हर मॉडल के लिए उसकी आधिकारिक Python implementation के मुकाबले speed ratios प्रकाशित करता है, one-shot runs और long-lived sessions दोनों के लिए, और कहता है कि कई TTS paths अपने Python reference paths से 1.8× से 8× तेज़ चलते हैं, जबकि CUDA पर end-to-end latency 45–85% घटती है। सभी जारी families GGUF लोड करती हैं, और प्रोजेक्ट बताता है कि Higgs Audio, Fish Audio और Voxtral जैसे रास्तों पर परखे गए Q8 packages 1.53× तक तेज़ चलते हैं, और peak VRAM लगभग 37% तक घटता है।

Bar chart titled One-shot showing audio.cpp's speed against each model's official Python implementation across models including ace step, chatterbox, kokoro tts, parakeet tdt, sortformer diar and vevo2; blue bars mark models where audio.cpp is faster, reaching above 13x on parakeet tdt, and orange bars mark the few where it is slower.
One-shot speed against each model's official Python implementation — blue is faster, orange is slower, the dashed line is parity.audio.cpp README ↗
Bar chart titled Long-lived session showing the same model list measured with a reused session; most bars sit between 1x and 3.2x faster than the Python implementation, with a handful — ace step, htdemucs, kokoro tts, marblenet vad, miocodec, parakeet tdt and voxcpm2 — below parity.
The same comparison with a reused, long-lived session, where the gaps narrow.audio.cpp README ↗

SvelteKit WebUI को `audiocpp_server` बाइनरी में compile किया गया है, इसलिए ब्राउज़र इंटरफ़ेस को न Python की ज़रूरत है और न अलग frontend फ़ाइलों की। इसका Arena टैब एक साझा इनपुट पर कई लोकल मॉडल या GGUF वैरिएंट कतार में लगाता है और आउटपुट की मेट्रिक्स के साथ तुलना करता है। यह तब काम आता है जब सवाल यह हो कि आपके अपने ऑडियो पर पाँच लोकल TTS मॉडलों में से कौन सबसे अच्छा सुनाई देता है।

यह क्या करता है

  • रिलीज़ 0.8.0 तक 80+ model families के साथ, TTS, voice cloning और conversion, ASR, diarization, VAD, source separation, alignment और codec models के लिए एक ggml-आधारित नेटिव रनटाइम
  • CUDA, HIP/ROCm, Vulkan, Metal और CPU के लिए बैकएंड, जो साझा CLI (`audiocpp_cli`) और server (`audiocpp_server`) entry points के पीछे काम करते हैं
  • सभी जारी families में GGUF लोडिंग, प्रकाशित 16-bit बनाम Q8 मापों के साथ
  • एक parity harness, जो बदलावों को byte-identical output और Python reference path के मुकाबले cosine और log-mel similarity पर परखता है
Flow diagram of the parity test workflow: establish a CPU + Python FP32 reference, generate a backend baseline on GPU, make a development change, compare against the baseline through parity gates for byte-identical output and cosine and log-mel similarity, then either require strict parity or allow a small parity drop and regenerate the baseline before accepting the change.
The parity workflow every change goes through before a backend result is accepted.audio.cpp README ↗
  • server binary के अंदर embedded SvelteKit WebUI, जिसमें मेट्रिक्स के साथ side-by-side मॉडल तुलना के लिए Arena टैब शामिल है
  • Composite builds — पूरा सेट बनाने के बजाय केवल ज़रूरी model families compile करें (`--model-set custom --models …`)
  • बिल्ट-इन denoise, enhancement, resampling और STFT/ISTFT utilities, और multi-step workflows के लिए experimental JSON pipelines

शुरू करें

हर रिलीज़ के साथ आधिकारिक packages संलग्न होते हैं, इसलिए आम तौर पर कुछ भी build करने की ज़रूरत नहीं होती। Windows x64 में CPU, Vulkan और CUDA (12.4 / 13.3) builds आते हैं, Ubuntu x64 में CPU और Vulkan, और macOS arm64/x64 में Metal।

Homebrew tap से macOS पर इंस्टॉल करें

इस tap में Metal build है।

bashbash
brew tap 0xShug0/audio-cpp
brew trust 0xShug0/audio-cpp
brew install audio-cpp

या Releases पेज से prebuilt package लें

अपने platform और backend के लिए archive डाउनलोड करें। Windows पर CUDA packages CUDA runtime को अलग `cudart` archive में देते हैं। इसे binaries के बगल में extract करें, ताकि CUDA backend `ggml-cuda.dll` के साथ cudart, cuBLAS और cuFFT DLLs भी लोड कर सके। Weights प्रोजेक्ट के Hugging Face repo, `audio-cpp/audio.cpp-gguf` से आते हैं, और इनका ModelScope mirror भी है।

बिल्ट-इन WebUI के साथ server शुरू करें

Production UI `audiocpp_server` के अंदर compile होता है, इसलिए Python या frontend फ़ाइलों की ज़रूरत नहीं। `--ui-management` catalog browsing, downloads, temporary uploads और dynamic model switching चालू करता है, यानी पहले server config लिखे बिना चीज़ें आज़माने का सबसे तेज़ तरीका। फिर http://127.0.0.1:8080 खोलें।

bashbash
audiocpp_server --ui --ui-management --backend cuda

अगर अलग backend चाहिए तो source से build करें

Helper scripts CMake को wrap करते हैं। Linux को GCC 13+ और CMake चाहिए, साथ में आपके backend का toolchain (CUDA Toolkit, Vulkan SDK या ROCm)। macOS को Xcode command line tools और CMake चाहिए, और Metal builds के लिए `xcrun` का Metal compiler।

bashbash
scripts/build_linux.sh --backend cuda --target audiocpp_cli --target audiocpp_server
scripts/build_linux.sh --backend vulkan --target audiocpp_cli --target audiocpp_server
scripts/build_linux.sh --backend cpu --target audiocpp_cli --target audiocpp_server

केवल ज़रूरी मॉडल compile करें

`full` डिफ़ॉल्ट है और रिलीज़ तथा Docker builds इसी का इस्तेमाल करें। `custom` केवल आपके नाम दिए loaders रजिस्टर करता है, और `core` बिना optional model-family सेट के runtime बनाता है। Direct CMake में भी वही variables काम करते हैं जो scripts में हैं।

bashbash
scripts/build_linux.sh --backend cuda --model-set custom \
  --models qwen3_tts,pocket_tts,qwen3_asr --target audiocpp_cli

# or directly through CMake
cmake -S . -B build/debug -DCMAKE_BUILD_TYPE=Debug \
  -DAUDIOCPP_MODEL_SET=custom -DAUDIOCPP_MODELS=qwen3_tts,pocket_tts,qwen3_asr
cmake --build build/debug --target audiocpp_cli -j 8

कमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।

कब इस्तेमाल करें

  • जब कई ऑडियो मॉडल एक ही product में जाने हों, और आप कई Python environments के बजाय एक नेटिव रनटाइम संभालना पसंद करें, तब इसे चुनें
  • CPU-only या edge मशीनों पर TTS, ASR या diarization चलाने के लिए, जहाँ Python stack विकल्प नहीं है
  • जब लोकल TTS या ASR मॉडलों में से चुनना हो, तब इसे चुनें। Arena टैब उन्हें एक साझा इनपुट पर कतार में लगाता है और मेट्रिक्स दिखाता है
  • जब VRAM सीमा हो और GGUF Q8 packaging बिना rewrite के अतिरिक्त जगह दिलाए, तब इसे चुनें

How audio.cpp compares

audio.cpp alongside other open-source audio, music & voice tools AI/TLDR tracks, ranked by GitHub stars.

टूलस्टारयह क्या करता है
VoiceStudio★ 122kअपने ही हार्डवेयर पर पूरी तरह voice clone करें, video dub करें और dictate करें
Whisper★ 114kसामान्य उपयोग वाला स्पीच रिकग्निशन मॉडल, जो कई भाषाओं के ऑडियो को टेक्स्ट में बदलता और उसका अनुवाद करता है
GPT-SoVITS★ 64.4kसिर्फ़ एक मिनट के ऑडियो से few-shot वॉइस क्लोनिंग और TTS WebUI
Voicebox★ 61.7kलोकल वॉइस स्टूडियो: वॉइस क्लोनिंग, speech जनरेशन, dictation और एजेंट्स के लिए आवाज़
VibeVoice★ 57.7kMicrosoft का ओपन सोर्स voice AI, लंबे और कई स्पीकर वाले TTS और ASR के लिए
whisper.cpp★ 55.8kबिना किसी डिपेंडेंसी के, सादे C/C++ में Whisper स्पीच रिकग्निशन
Coqui TTS★ 46.3kओपन सोर्स टेक्स्ट-टू-स्पीच, मल्टीलिंगुअल वॉइस क्लोनिंग के साथ
audio.cpp★ 4.6kस्थानीय ऑडियो मॉडलों के लिए एक नेटिव ggml रनटाइम — TTS, ASR, voice cloning और conversion, diarization, VAD और separation, और इसमें Python की ज़रूरत नहीं