1 """Constants for the Assist pipeline integration."""
3 DOMAIN =
"assist_pipeline"
5 DATA_CONFIG = f
"{DOMAIN}.config"
6 DATA_MIGRATIONS = f
"{DOMAIN}_migrations"
8 DEFAULT_PIPELINE_TIMEOUT = 60 * 5
10 DEFAULT_WAKE_WORD_TIMEOUT = 3
12 CONF_DEBUG_RECORDING_DIR =
"debug_recording_dir"
14 DATA_LAST_WAKE_UP = f
"{DOMAIN}.last_wake_up"
15 WAKE_WORD_COOLDOWN = 2
17 EVENT_RECORDING = f
"{DOMAIN}_recording"
23 SAMPLES_PER_CHUNK = SAMPLE_RATE // (1000 // MS_PER_CHUNK)
24 BYTES_PER_CHUNK = SAMPLES_PER_CHUNK * SAMPLE_WIDTH * SAMPLE_CHANNELS
26 OPTION_PREFERRED =
"preferred"