2025-08-21 14:04:44 +08:00
|
|
|
import yaml
|
2025-08-21 14:46:49 +08:00
|
|
|
import time
|
2025-08-21 14:04:44 +08:00
|
|
|
from src.asr_runner import ASRRunner
|
|
|
|
|
from src.sound_input_stream import SoundInputStream
|
|
|
|
|
from src.wake_word_runner import WakeWordRunner
|
2025-08-21 14:46:49 +08:00
|
|
|
from src.shared import stop_flag
|
2025-08-21 14:04:44 +08:00
|
|
|
|
|
|
|
|
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'])
|