File size: 889 Bytes
25d15ee
990f149
25d15ee
ba729b8
25d15ee
 
 
 
debd261
c127575
25d15ee
 
e368e99
 
 
8b29559
ba729b8
1df4f51
 
 
 
ba729b8
990f149
e368e99
1df4f51
909a8c1
 
 
990f149
8b29559
 
 
06fe429
 
 
 
 
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
35
36
37
38
from typing import Final
from stt_streamers import DeepgramStreamer, SonioxStreamer


CHUNK_SIZE: Final = 1024
TIMEOUT_FACTOR_MB: Final = 60
BASE_TIMEOUT_SECONDS: Final = 120

MODEL_ID: Final = "quail-vf-2.0-l-16khz"

MINUTES_KEEP: Final = 60

# All app temp files (spectrograms, audio, etc.) go here so we only purge our own files.
APP_TMP_DIR: Final = "/tmp/voicefocus"

DATASET_NAME: Final = "ai-coustics/dawn_chorus_en"
DEFAULT_SPLIT: Final = "eval"
MIX_DIR: Final = "mix"
SPEECH_DIR: Final = "speech"
TRANS_DIR: Final = "transcripts"

DEFAULT_SR: Final = 16000
STREAM_EVERY: Final = 0.2
WARMUP_SECONDS: Final = 2  # seconds before "recording ready" light turns on

TARGET_LOUDNESS: Final = -17.0
TARGET_TP: Final = -1.5

STREAMER_CLASSES: Final = {
    "Deepgram Nova-3 RT": DeepgramStreamer,
    "Soniox STT-RT v3": SonioxStreamer,
}

VAD_ON: Final = "🟢"
VAD_OFF: Final = "⚫"