Can't Get Alexa to work

I have Spent many days on getting Alexa to work with the Respeaker and cannot get it to work.

I have a Pi 3 Model B+

And a Respeaker 4 Mic Array HAT



When I run python ns_kws_doa_alexa_with_light.py or ns_kws_doa_alexa.py I get



Traceback (most recent call last):

File “ns_kws_doa_alexa_with_light.py”, line 13, in

from voice_engine.source import Source

ImportError: No module named voice_engine.source



Sometimes I also get

File “ns_kws_doa_alexa.py”, line 20

from avs.alexa import Alexa

^

IndentationError: unexpected indent



Can someone help me get Alexa working completely

Thank you

Hi there,


  1. it seems voice engine is not installed correctly. please try below steps.



    git clone https://github.com/voice-engine/voice-engine.git

    cd voice-engine

    python setup.py bdist_wheel

    pip install dist/*.whl


  2. you also can download the image 2018-08-06-raspbian-for-respeaker.zip with driver and alexa setup. <LINK_TEXT text=“https://v2.fangcloud.com/share/7395fd13 … 8000207913”>https://v2.fangcloud.com/share/7395fd138a1cab496fd4792fe5?folder_id=188000207913</LINK_TEXT>



    first, if you want to use the interactive function, please enter alexa-auth to apply for authorization. After the authorization is successful, the .avs.json file will be generated in the /home/pi directory, and then the interactive function can be used.



    second, there will be a respeaker routine folder in the /home/pi directory, which can be used depending on the mic used. You can update it by executing the git pull origin master command in the related directory. then you can run the python code to active the respeaker. thanks.