Repository navigation
Replies: 27 comments 6 replies
|
remote api? most of our users want their model downloaded locally so they can convert offline. |
|
Hi @ROBERT-MCDOWELL No. It’s completely local. It provides an OpenAI-compatible server (with docker and prebuilts), so you can run everything locally. |
|
In terms of performance, audio.cpp is generally 2× to 8× faster than the corresponding Python implementations, and our community keeps pushing performance improvements for popular models. I made a demo before using audio.cpp to generate 10 hours of audio (The Adventures of Sherlock Holmes) in about 3 minutes on RTX 5090 with the Supertonic 3 model. audio_cpp_supertonic_offline.mp4 |
|
I don't catch how we can manage audio.cpp with e2a, and all supported CPU/GPU/XPU/Jetson/MPS devices. |
|
Release includes server prebuilts https://github.com/0xShug0/audio.cpp/releases/tag/v0.7.2 or docker https://github.com/0xShug0/audio.cpp/pkgs/container/audio.cpp. AMD prebuilts are maintained by the community. They should be able to run out of the box. Jetson may need compile 0xShug0/audio.cpp#12. Our contributor tested 34/40 models run on Orin Nano 8GB without any issues (the other issues are just OOM such as MiniMax-H3 and Music3). In e2a, you can lanuch the prebuilt server locally and just use Python client to send the request to get audio outputs. Of course, all TTS-related bugs should be forwarded to audio.cpp. Since audio.cpp is also integrated into other frontends like LocalAI and llama-swap, SubtitleEdit as well as Alibaba’s production pipeline in FunASR, we prioritize fixing issues in the core runtime so the fixes benefit all integrations. |
|
so the best is to compile ourselves all OS and devices we support. what about XPU? |
|
For CPU,CUDA,MPS,ROCM, you can just use the prebuilt server binaries from releases. No need to compile. For Intel XPU, there isn't a dedicated oneAPI/XPU backend at the moment. Intel GPUs can potentially run through the Vulkan backend. Our users did this already on Intel Iris Xe Graphics + Intel Mesa Vulkan. For Python integration, you don't need Python bindings. The easiest way is to lanuch Example: Detailed server doc is here https://github.com/0xShug0/audio.cpp/blob/main/app/server/README.md |
|
how audio.cpp manage the models and the tts engines installation? progressive downloads? |
|
We implement all model inference logic directly in C++ and keep it parity-safe with the official Python implementations. A single audio.cpp (prebuilt) binary contains the inference engines for all supported models. All models are hosted on HF. You can download the models however you prefer, then simply configure the server with the model path. You can confiugre multiple models. |
|
so E2A needs to download the models from your HF right? |
|
HF: Not necessary. You can host your own repo with only the models you want. |
|
our user has the choice to select the device type before each conversion. meaning can pass from cpu to cuda or rocm, does it mean the user must run in backend each of the audio.cpp for each device? |
|
In CUDA/Vulkan/ROCm prebuilts CPU come for free. You just need to use CUDA + ROCm dual-GPU setups are rare, and we have not seen that as a common user configuration. In this case it requires two prebuilts. I’m curious how e2a currently handles CUDA + ROCm dual-GPU setups. |
|
wait, you just told me that audio.cpp is installed locally as a backend. and now you say the backend are hosted somewhere? so it goes back to what I said, it's a remote api with paid service which is not E2A goals. |
|
(1) You don't need to install anything. The prebuilts can be run out of the box If you know llama.cpp, audio.cpp is built around the same philosophy. Just think audio.cpp as llama.cpp for audio. |
|
Doesn't e2a also has the client - server setup?
Similar here, once you lanuch the audio.cpp server locally, you can just send requests to http://localhost:8008/ (or whatever port set) to do TTS and voice conversion. If the "server" keyword makes you feel confusing, there are "cli" prebuilts and you can just call it directly as using normal Linux cmds. |
|
I understand very well after 35 years of code dev.... don't under estimate people you are talking to and their experiences on traps and scams. this said. so which rate are you talking about if it's entirely open source and local? |
|
Just take you one sec to check the repo https://github.com/0xShug0/audio.cpp |
|
@DrewThomasson I connected with you on LinkedIn, and I’m sure you have a much better understanding of llama.cpp and audio.cpp. First time I’ve heard someone say llama.cpp is for profit lmao. Of course if you think my background is fake, send emails to Princeton Univ and my former students to validate :) |
|
what game are you playing now? |
|
I transfer this issue to discussions. once you will answer to my questions I will reopen the discussion if your explanations are relevant. |
|
In case anyone was misled by the comments, clarifications: (1) No such thing as remote CPU/GPU. The “server” is just another interface to the inference engine for easier integration and deployment. You can’t expect a WebUI to work efficiently by launching a command for every inference request instead of communicating with a persistent local server. All inference happens locally using your local GPU/CPU device, and you can run completely offline. The server will load the model weights from your disk and keep them in memory, so no need to reload every inference. Saving a lot of time on disk reads. If anyone checks Tortoise-TTS (and recent open source TTS models), which is one of the TTS engines used in e2a, the official code also provides a streaming server mode. Piper also provides the server mode https://github.com/OHF-Voice/piper1-gpl/blob/main/docs/API_HTTP.md (2) Server is a lightweight process. Switch between GPU and CPU do not need new server prebuilts. Restart is cheap. (3) llama.cpp has nothing to do with Llama (from FB/Meta). llama.cpp is an independent open-source C/C++ local inference runtime. Llama is a model. |
|
ok, it's a better explanation thanks. now the biggest issue is the way e2a can switch from various backends, cuda to cpu, etc.. |
|
also important question is how to manage audio.cpp in the e2a docker, kaggle, unraid and other non conventional environment like hf space etc... |
|
is it possible to have a torch.tensor or list tuple rather than a wav as option for the output? |
|
great!! I'm looking forward to this!! |
|
implemented since v26.11.1 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi! I'm the maintainer of audio.cpp.
I found the discussions about adding another TTS engine becomes difficult because each one brings its own Python packages/version requirements and more maintenance over time.
This made me wonder if audio.cpp could be useful here. ebook2audiobook could use it as a single backend for multiple TTS families. audio.cpp already supports 38 TTS/voice clone models and the list keeps growing through community contributions. This includes models such as Qwen3-TTS, IndexTTS 2/2.5, Higgs Audo TTS v3, Fish Audio, PocketTTS, VibeVoice, and many others. They all run locally through the same C++ runtime, with optimized inference across CUDA, Metal, Vulkan, and HIP.
audio.cpp inference itself has NO Python dependency and provides a server API (/v1/audio/speech) as well as CLI support, so this could potentially stay fairly decoupled from ebook2audiobook itself.
Would this be something you'd be interested in? Happy to answer any questions about audio.cpp.
All reactions