Description
bark.cpp is a C and C++ implementation of Suno AI's Bark text-to-speech model, using the ggml inference library. The README says the goal is real-time, multilingual speech generation that runs without heavy dependencies. It supports the Bark Small and Bark Large models, mixed F16 and F32 precision, and 4-bit, 5-bit and 8-bit quantization. CPU backends include AVX, AVX2 and AVX512 on x86, and GPU backends include Metal and CUDA. The README shows a demo of it running on an iPhone. You build it with CMake, prepare the model data, then run the binary with a text prompt. Weights can be quantized with several strategies, and the README notes that the codec model is left unquantized to keep audio quality. Developers who want to run text-to-speech locally from C or C++ code, or on a phone or laptop, are the intended audience.…
Highlights
- Bark text-to-speech in C and C++
- Bark Small and Bark Large models
- CPU and GPU support including Metal and CUDA
- 4-bit, 5-bit and 8-bit quantization
- Built with CMake
Ratings & Reviews
No ratings yet
Be the first to rate Bark.cpp.
People also visit
Audio.cpp-webui
audio.cpp with a full-task WebUI - pure C++ audio-model inference engine…
Bark.cpp FAQ
What is bark.cpp?
A C and C++ port of Suno AI's Bark model for generating speech from text.
Does it need an internet connection?
The README describes local inference. You run it on your own machine, after building it and preparing the model data.
Which models are supported?
Bark Small and Bark Large, according to the README. Other models such as AudioCraft and Piper are listed as planned.
How do I build it?
Use CMake, following the build section of the README, then prepare the data and run the program.
What are the best Bark.cpp alternatives?
Popular alternatives to Bark.cpp include Audio.cpp, Whisper.cpp and llama.cpp. See all Bark.cpp alternatives