14 lines
407 B
Python
14 lines
407 B
Python
import yaml
|
|
import time
|
|
from src.asr_runner import ASRRunner
|
|
from src.sound_input_stream import SoundInputStream
|
|
from src.wake_word_runner import WakeWordRunner
|
|
from src.shared import stop_flag
|
|
|
|
with open(r"config/config.yaml", "r") as f:
|
|
cfg = yaml.load(f, Loader=yaml.FullLoader)
|
|
|
|
s = SoundInputStream(cfg["SoundInputStream"])
|
|
w = WakeWordRunner(cfg['WakeWordRunner'])
|
|
a = ASRRunner(cfg['ASRRunner'])
|