rhasspy / rhasspy3

An open source voice assistant toolkit for many human languages
MIT License
295 stars 23 forks source link

Outputting sound after wake word (satellite) #47

Closed lightsabata closed 1 year ago

lightsabata commented 1 year ago

Hi everyone ! i've managed to config a satellite connected to my home assistant server, it work like a charm but i would like to enhance my experience with a sound after triggering the wake word program. ive tried to add a command on my configuration with no luck.

Is anybody knows a tweak to do this ?

Here's my satellite configuration:

satellites:
  default:
    mic:
      name: arecord
    wake:
      name: porcupine2
      after: 
        command: |
          aplay "${data_dir}/wake_alfred.wav"
    remote:
      name: home_assistant
    snd:
      name: aplay

Thanks

lightsabata commented 1 year ago

With the argument when running the satellite script --wake-after-wav with and absolute path to a .wav file, we can outputting a sound after wake word:

script/run bin/satellite_run.py --debug --loop --wake-after-wav "/PATH/TO/.WAV"