Hi Samreen,
yes the install in principle works flawlessly. I can install snips, I changed successfully the /etc/snips.toml to make use of the matrix voice. All the initial audo test work.
It starts getting frustrating when coming to the snips demo. It could be still that it has nothing to do with the matrix audio but maybe you have an idea how to solve it:
When snips discovers the wake word it tries to reply with playing a beep. This proces does not succeed and no further phrase is accepted:
[21:35:46] Watching on localhost:1883 (MQTT)
[21:35:49] [Hotword] detected on site default, for model hey_snips
[21:35:49] [Asr] was asked to stop listening on site default
[21:35:49] [Hotword] was asked to toggle itself ‘off’ on site default
[21:35:49] [Dialogue] session with id ‘c3cb1fac-8d7a-4180-96b6-ee6e81926a92’ was started on site default
[21:35:49] [AudioServer] was asked to play a wav of 41.1 kB with id ‘bdba4f93-7bbf-48bb-8e41-fff5fcc35970’ on site default
[21:36:05] [Dialogue] session with id ‘c3cb1fac-8d7a-4180-96b6-ee6e81926a92’ was ended on site default. The session was ended because one of the component didn’t respond in a timely manner
[21:36:05] [Asr] was asked to stop listening on site default
[21:36:05] [Hotword] was asked to toggle itself ‘on’ on site default
when I turn this audio feedback off in the /etc/snips.toml by setting
[snips-dialogue]
sound_feedback_disabled_default = true
snips does not play an audio as accnowledegement, and accept further phrases. Just to end up stuck again when the first audio should be sent to the speaker:
[21:43:16] Watching on localhost:1883 (MQTT)
[21:43:18] [Hotword] detected on site default, for model hey_snips
[21:43:18] [Asr] was asked to stop listening on site default
[21:43:18] [Hotword] was asked to toggle itself ‘off’ on site default
[21:43:18] [Dialogue] session with id ‘423a5440-c14a-4951-b6f5-b6198a1f4396’ was started on site default
[21:43:18] [Asr] was asked to listen on site default
[21:43:24] [Asr] captured text “what the weather today” in 5.0s
[21:43:24] [Asr] was asked to stop listening on site default
[21:43:24] [Nlu] was asked to parse input “what the weather today”
[21:43:25] [Nlu] detected intent searchWeatherForecast with confidence score 0.994 for input “what the weather today”
Slots ->
forecast_start_datetime -> 2019-08-12 00:00:00 +01:00 (confidence: 0.690)
[21:43:25] [Dialogue] New intent detected searchWeatherForecast with confidence 0.994
Slots ->
forecast_start_datetime -> 2019-08-12 00:00:00 +01:00 (confidence: 0.690)
[21:43:25] [Dialogue] was ask to end session with id 423a5440-c14a-4951-b6f5-b6198a1f4396 by saying ‘You asked for the weather today’
[21:43:25] [Tts] was asked to say “You asked for the weather today”
[21:43:25] [AudioServer] was asked to play a wav of 58.2 kB with id ‘9ac36433-90e4-4e3e-b8c1-f93267a0bcb7’ on site default
[21:43:40] [Dialogue] session with id ‘423a5440-c14a-4951-b6f5-b6198a1f4396’ was ended on site default. The session was ended because one of the component didn’t respond in a timely manner
[21:43:40] [Asr] was asked to stop listening on site default
[21:43:40] [Hotword] was asked to toggle itself ‘on’ on site default
my conclusion is that the audio input works fine with snips and the matrix one. The output is somehow corrupted and does not come through because the output process could not be successfully finished.
Im actually using the output on the raspberry board. But changing it to use the output on the matrix does not change anything.
I have read elsewhere that this has to do with sampling rates of what is sent and the setup is able to play. I also read that it is possible to solve it by some repiping of the audio signal by editing the asound.conf
Unfortunately I have still to less knowledge to do that in a targeted manner.
Any ideas are therefore still appreciated.