Closed timaschew closed 4 years ago
Hi @timaschew
Am I right you run arecord outside of docker? If you have custom asound.conf it may be the reason
Try to run arecord from docker container and check the result
For reference please check the link below. It's for hassio addon but it will work for you too https://community.rhasspy.org/t/hass-io-addon-make-rhasspy-use-custom-asound-conf/106
And for hotword please try https://github.com/synesthesiam/rhasspy/issues/117#issuecomment-569540334
I believe it's hardware or docker misconfuguration...
Am I right you run arecord outside of docker?
No, I've can run the command in the host and in the docker container. In both cases the wav files is good. This is how I did it:
docker ps
and start a bash inside the container: docker exec -it 02d69699c7fd bash
If you have custom asound.conf it may be the reason
This is my /home/pi/.asoundrc file:
pcm.!default {
type hw
card 1
}
ctl.!default {
type hw
card 1
}
I've copied the file to the container: sudo docker cp /home/pi/.asoundrc 02d69699c7fd:/root/.asoundrc
and restarted rhasspy and nothing has changed.
Changing the snowboy settings did also not help, but I don't expect that this will work before the manual triggered recording is working.
I've changed the code to use wav
instead of raw
but it didn't help.
@synesthesiam Any chance to save the recorded wav files to listen them and find out what's wrong with them?
Yes, the plan is to add an intent tests page where you can record examples and use them as unit tests for your assistant.
In the mean time, something could be added to have Rhasspy write recorded commands (WAVs) out to a directory. Would this be helpful?
Yes, that would be great!
v2.4 and v2.5 both have playback buttons for the last recorded voice command
Related to #141 So I'm running client/server setup (from the tutorial) with a Raspberry 3B with docker. I have this soundcard and this microphone.
I've tried to speak different sentences and it was never recognized correctly.
Also the hotword doesn't work.
See logs at the bottom. When I record on the same Raspberry wav file with this command:
and upload the file to rhasspy, all my 5 sentences are recognized correctly.
Of course I use the same microphone the same distance, voice, ...
Rhasspy logs during the recording. First two were recorded via Hold to record, the others via Tap to record.
my profile.json