diff options
Diffstat (limited to 'app/backends/audiocpp/constants.py')
| -rw-r--r-- | app/backends/audiocpp/constants.py | 32 |
1 files changed, 32 insertions, 0 deletions
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" |
