OpenVoiceOS / ovos-listener

ovos-core metapackage for speech daemon
Apache License 2.0
1 stars 1 forks source link

Relative path doesn't work for sounds #10

Closed goldyfruit closed 8 months ago

goldyfruit commented 1 year ago

When using a relative path for start_listening, the listener returns this warning.

2023-03-27 15:21:09.206 - voice - ovos_listener.mic:_handle_hotword_found:753 - WARNING - 'NoneType' object has no attribute 'split'

Adding a print before the try here returns the correct value configured into mycroft.conf but adding a print after resolve_resource_file(sound) returns None.

I was able to get the sound with the absolute path /home/ovos/.venv/lib/python3.11/site-packages/ovos_listener/res/snd/start_listening.wav configured instead of snd/start_listening.wav.