aboutsummaryrefslogtreecommitdiff
path: root/app/backends/audiocpp/constants.py
blob: 017dd60b3c1318f726d2552b94f4a0af045af6cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
"""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"