alexa-pi / AlexaPiDEPRECATED

DEPRECATED - Use https://github.com/alexa-pi/AlexaPi instead ...Turn a Raspberry Pi into an Alexa Client
https://github.com/alexa-pi/AlexaPi
MIT License
587 stars 442 forks source link

Getting no response from Alexa #154

Closed pavankrishnamurthy closed 7 years ago

pavankrishnamurthy commented 7 years ago

Hi,

I tried to setup my Rasp Pi 2 Model B, as per the instructions given and modified my sound card settings in the code. I can properly record and playback using my usb headphone connected to PI. But when I run the main.py and record the query and send, I never get a response back. I am not sure if I am doing anything wrong. I can see my recording saved properly and can be played back as well using vlc. Any clue what could be the reason ? Does this version still work or should I move over to https://github.com/alexa-pi/AlexaPi ?

Here is the log I see while running the app:

sudo python main.py Checking Internet Connection... /usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl.py:334: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings SNIMissingWarning /usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl.py:132: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecurePlatformWarning Connection OK PlayAudio Request for: /home/pi/alexa2/AlexaPi/hello.mp3 Player State: State.Opening Player State: State.Playing Player State: State.Ended Ready to Record. Recording... Recording Finished. Sending Speech Request... /usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl.py:132: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecurePlatformWarning Processing Request Response... Request Response is null (This is OKAY!) Ready to Record.

pavankrishnamurthy commented 7 years ago

I seem to find a clue about my issue. I changed my headphone which was recording in 2 channel, 44.1 kHz to a USB speaker, which can do 1 channel 16kHz. Now I am able to get back the response from Alexa.