OpenVoiceOS / ovos-docker

Open Voice OS container images and docker-compose.yml files for x86_64 and aarch64 CPU architectures.
https://openvoiceos.github.io/ovos-docker/
Apache License 2.0
41 stars 13 forks source link

ovos_listener cannot play start_listening file #7

Closed atd closed 1 year ago

atd commented 1 year ago

When wake word is triggered, no sound is played. There is the following trace in docker.

ovos_listener                | 2023-05-10 22:52:34.059 - voice - ovos_utils.sound:play_listening_sound:62 - WARNING - Could not find 'start_listening' audio file!

The file does exist in the ovos_listener container:

/home/ovos/.venv/lib/python3.11/site-packages/ovos_listener/res/snd/start_listening.wav

and the configuration seems too match:

Value: snd/start_listening.wav, found in /sounds/start_listening

Any ideas why the file is not found?

goldyfruit commented 1 year ago

The file exists in the ovos_listener container:

ovos@f8a30d712825:/$ find / -name  start_listening.wav
/home/ovos/.venv/lib/python3.11/site-packages/ovos_listener/res/snd/start_listening.wav

The issue is related to the relative and absolute path, I opened an issue in ovos-listener repository about it here.

Add this to your mycroft.conf configuration file.


{
  "sounds": {
    "start_listening": "/home/ovos/.venv/lib/python3.11/site-packages/ovos_dinkum_listener/res/snd/start_listening.wav",
    "end_listening": "/home/ovos/.venv/lib/python3.11/site-packages/ovos_dinkum_listener/res/snd/end_listening.wav",
    "acknowledge": "/home/ovos/.venv/lib/python3.11/site-packages/ovos_dinkum_listener/res/snd/acknowledge.mp3"
  }
}
goldyfruit commented 1 year ago

Feel free to re-open the issue if its not fixed by the information provided from above. :+1:

atd commented 1 year ago

Thank you, it worked (using ovos_listener instead of ovos_dinkum_listener)