"""Constants shared across the audio.cpp backend modules.""" from pathlib import Path DEFAULT_HOST = "127.0.0.1" FALLBACK_PORT = 8080 BACKENDS = ("cuda", "vulkan", "hip", "cpu") TASK_TTS = "tts" TASK_CLON = "clon" 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"