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
39 stars 11 forks source link

cannot play start_listening #34

Closed denics closed 1 year ago

denics commented 1 year ago

I don't know if it is a bug or if it is my configuration, but I am unable to play the start_listening sound when using ovos_docker. Audio works fine in TTS / STT / LISTENER . Any hint?

This is the configuration:

{
  'start_listening': 'snd/start_listening.wav', 
  'end_listening': 'snd/end_listening.wav', 
  'acknowledge': 'snd/acknowledge.mp3', 
  'error': 'snd/error.mp3'
}

found in /sounds

and the files exists:

[12:58:12] ~/Git/ovos/ovos-docker/compose $ docker exec -it ovos_core bash
ovos@ovos_core:~$ paplay ./.venv/lib/python3.11/site-packages/mycroft/res/snd/start_listening.wav
j1nx commented 1 year ago

I believe I have the same issue.

During all my test and dev work I also never hear the listener confirmation sound, however have not yet paid attention to it as I am still busy with other things...

goldyfruit commented 1 year ago

Try with the absolute path.

  "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"
  },

https://github.com/OpenVoiceOS/ovos-listener/issues/10

j1nx commented 1 year ago

Which container should play the sound? Listerner, core or audio?

goldyfruit commented 1 year ago

Which container should play the sound? Listerner, core or audio?

Listener, until https://github.com/OpenVoiceOS/ovos-utils/pull/188 got merged

j1nx commented 1 year ago

Ah, great. Knew I read something about it. Thx for the link.

@denics You logged into the weong container as you appear to be logging into the core container in your test above.

denics commented 1 year ago

Should this be added to documentation? or provided into a mini default mycroft.conf ?

goldyfruit commented 1 year ago

Should this be added to documentation? or provided into a mini default mycroft.conf ?

This is mostly a bug that should be fixed in dinkum-listener. I'll add a link to the FAQ section pointing to this issue.

@JarbasAl you were assigned to this with the "legacy" listener https://github.com/OpenVoiceOS/ovos-listener/issues/10 any idea on how to fix it?

denics commented 1 year ago
"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"
  },

I confirm this solves the issue on a docker installation.