From 8b5c8697740ff415cf7f1d03c9fb5a8c8851d420 Mon Sep 17 00:00:00 2001 From: historia Date: Wed, 26 Aug 2026 02:25:55 -0400 Subject: refactor: audiocpp.py setup flow --- app/backends/audiocpp/constants.py | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 app/backends/audiocpp/constants.py (limited to 'app/backends/audiocpp/constants.py') diff --git a/app/backends/audiocpp/constants.py b/app/backends/audiocpp/constants.py new file mode 100644 index 0000000..aaa1eed --- /dev/null +++ b/app/backends/audiocpp/constants.py @@ -0,0 +1,32 @@ +"""Constants shared across the audio.cpp backend modules.""" + +import re +from pathlib import Path + +DEFAULT_HOST = "127.0.0.1" + + +FALLBACK_PORT = 8080 + + +BACKENDS = ("cuda", "vulkan", "hip", "cpu") + + +TASK_TTS = "tts" + + +TASK_VDES = "vdes" + + +AUDIOCPP_DIR_NAME = "audio.cpp" + + +AUDIOCPP_GIT_URL = "https://github.com/0xShug0/audio.cpp" + + + +# ggml build patches shipped in this repo and applied to the (gitignored) +# audio.cpp checkout before building, so a fresh clone survives known ggml +# build bugs the audio.cpp fork has not re-vendored yet. See +# apply_ggml_patches() in backends.audiocpp.build. +PATCH_DIR = Path(__file__).resolve().parent / "patches" -- cgit v1.2.3