Alexa sample not starts after instaliation #1372
Comments
Hi @handysofts thanks for reaching out. From the error you posted it looks like portaudio is throwing an Invalid Device error: This usually happens if the sample rate negotiations fail. Could you please follow the troubleshooting guide here:https://github.com/alexa/avs-device-sdk/wiki/Troubleshooting-Guide Please follow the section under Raspberry Pi and see if it fixes the issue. |
Thanks for quick response. But the same devices(microphone and headphone) works in the same Raspberry for Google Assistant. Also I checked your link and tested, I can hear a tone. But there wasn't any step to check microphone, maybe SampleSDK can't find my microphone? sound confs are below:
|
Hi @handysofts, can you please try to run the following commands to test your microphone?
This will try to record the audio using the same parameters as the sample application. Thanks! |
Hi @celinval , thanks for your advice. It is working, I mean records and plays what it recorded. But no success on Alexa :(
|
can reproduce this after upgrading to the latest kernel. Found a fix setting environment variable |
Hi there, sorry for our late response on this. Are you still having problems? |
I am having the same problem on SDK v1.15.0, I get: I followed the guide available here: and I am running the SampleApp with |
Hi @lucarosellini, I think the link is missing for the guide you followed. Could you please share it again? What command are you using to start the sample app? Also, did you complete our "Test the Microphone" step in https://github.com/alexa/avs-device-sdk/wiki/Raspberry-Pi-Quick-Start-Guide#test-the-microphone ? Audio configuration depends on your device's particular hardware so it can be tricky for us to debug, since we don't have your exact device on hand. I also recommend that you search through our previous closed issues to see if anyone else's solutions work for you. I tried searching for your error ("alsa_snd_pcm_hw_params_set_period_size_near") and several related issues came up, like #1366 . We'll keep working on it with you, though! |
Hello @caleighatamazon, sorry for the late reply. I've followed this guide: https://github.com/alexa/avs-device-sdk/wiki/Raspberry-Pi-Quick-Start-Guide The command used to launch the sample app is: I also started from scratch and following the guide using the setup.sh script here: https://github.com/alexa/avs-device-sdk/wiki/Raspberry-Pi-Quick-Start-Guide-with-Script Here the command used is simply The result is the same, I always get the error I posted previously. I using a Raspberry v1 on Raspbian stretch. |
hey @lucarosellini have you tried the steps in troubleshooting? https://github.com/alexa/avs-device-sdk/wiki/Troubleshooting-Guide#raspberrypi |
Hello @womw, yes I did, it seems my issue is not listed there. |
I'm also experiencing this. Does anyone have a work around? |
@priceey after some tinkering, I determined the "Illegal instructions" is not related to the "Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 923" message. It seems during the execution flow we hit some assembly instruction not compatible with the CPU. If I am not wrong, the only bit of code not compiled on the board itself is the third party Sensory wake word engine, which is closed source code. From the sensory documentation it looks like their code is not compatible with RASPi v1, which is the board I am using. |
oh game over then. That's a shame. Thanks for the update. |
You may want to switch to Kitt.AI KWD engine which is built from source on the target device. |
I am closing this issue due to inactivity. Please feel free to re-open it if it has been closed in error. |
I just encountered this error on the Rasp Pi Quick start. After spending a while trying to debug it, I finally figured out that it is simply complaining that there is no microphone installed on the system. The error is because it can't open an ALSA input device. I plugged a mic in and the error went away. |
IMPORTANT: Before you create an issue, please take a look at our Issue Reporting Guide.
Briefly summarize your issue:
Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 923
2019-05-31 21:19:54.927 [ 1] I PortAudioMicrophoneWrapper:PortAudio suggestedLatency has been configured to :Seconds=0.150000
2019-05-31 21:19:54.927 [ 1] C PortAudioMicrophoneWrapper:Failed to open PortAudio default stream:errorCode=-9996
2019-05-31 21:19:54.927 [ 1] C PortAudioMicrophoneWrapper:Failed to initialize PortAudioMicrophoneWrapper
2019-05-31 21:19:54.929 [ 1] C SampleApplication:Failed to create PortAudioMicrophoneWrapper!
2019-05-31 21:19:54.931 [ 1] 5 DefaultClient:DirectiveSequencerShutdown
What is the expected behavior?
It is working in the same Raspberry for Google assistant
What behavior are you observing?
Failed to create to SampleApplication!
Provide the steps to reproduce the issue, if applicable:
Tell us about your environment:
What version of the AVS Device SDK are you using?
Tell us what hardware you're using:
Tell us about your OS (Type & version):
The text was updated successfully, but these errors were encountered: