preparations for using the bumble auracaster

This commit is contained in:
2025-02-24 15:10:57 +01:00
parent 56b942ce39
commit 18ecedfe45
12 changed files with 134 additions and 238 deletions

View File

@@ -1,9 +1,11 @@
import os
ANNOUNCEMENT_DIR = os.path.join(os.path.dirname(__file__), 'announcements')
VENV_DIR = os.path.join(os.path.dirname(__file__), '../venv')
PIPER_EXE_PATH = f'{VENV_DIR}/bin/piper'
SAMPLING_RATE_HZ = int(16e3)
FRAME_DUR_MS = 10
BITRATE_BPS = int(32e3) # TODO: test 16khz 16kbps
BITRATE_BPS = int(32e3)
LANG_CONFIG = {
"de": {
"file": f"{ANNOUNCEMENT_DIR}/announcement_{SAMPLING_RATE_HZ//1000}_{FRAME_DUR_MS}_{BITRATE_BPS//1000}_de",