ai-experiment/config/asr.py

13 lines
501 B
Python
Raw Normal View History

2026-09-15 14:59:25 +07:00
NUM_THREADS = 2
SAMPLE_RATE = 16000
FEATURE_DIM = 128
PROVIDER = "cpu"
MAX_TOTAL_LEN = 2048
MAX_NEW_TOKENS = 256
LANGUAGE = "" # "" = support all languages / auto-detect
HOTWORDS = "" # Comma-separated hotword phrases, e.g. "AcmeCorp, FooBar".
# Biases the model to transcribe these phrases correctly,
# useful for brand/product/person names the model may
# otherwise mishear. Leave empty to disable.