Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alexa no sound #27

Open
QuadDepo opened this issue Dec 18, 2018 · 13 comments
Open

Alexa no sound #27

QuadDepo opened this issue Dec 18, 2018 · 13 comments

Comments

@QuadDepo
Copy link

QuadDepo commented Dec 18, 2018

After playing around with it I finally got passed the cookie stuff.

Now i try doing a command or tts I do get a response in the terminal but Alexa doesn't talk at all.

core-ssh:/config# ./alexa_remote_control.sh -d "Alexa bedroom" -e goodmorning
sending cmd:goodmorning to dev:Alexa bedroom type:A3S5BH2HU6***
serial:G090LF1174831T** customerid:A1NJJUS9Z****
Sequence command: Alexa.GoodMorning.Play
HTTP/1.1 0 x-amzn-RequestId: baa41eed-02fd-11e9-****-576a926e3217
Access-Control-Allow-Origin: https://alexa.amazon.com
Content-Encoding: deflate
Vary: Origin
Access-Control-Expose-Headers: x-amzn-dat-gui-client-upgrade,X-Amzn-Error,loginUrl,X-Amzn-RequestId,x-amzn-alt-domain,Date,Location
Access-Control-Allow-Credentials: true
Date: Tue, 18 Dec 2018 19:47:19 GMT
Connection: close

This is what i get back. I did read somewhere that I'm not the only one that have/used to have this issue but I could see a fix for it really quick.

@AdminGSUK
Copy link

Getting this also. Appears to accept the commend, but no sound out of the echo. Would appreciate some pointers.

@borisfeldman
Copy link

I get exactly the same.

For me, just using the password didn't work. So I used the "Export Cookies" extension in Firefox to save the amazon.com cookies and that seems to have resolved the login issue.

Now "./alexa_remote_control.sh -a" works fine and lists out my Echo devices.

But any other commands don't generate sound. I get the same output as @QuadDepo

@ACrazyConcept
Copy link

ACrazyConcept commented Dec 26, 2018

I have the same issue.

Edit: Created a new cookie and then it worked.

@borisfeldman
Copy link

UPDATE: It works for me now.

After seeing @ACrazyConcept's note, I tried again and it still didn't work. Same error message.

Then I re-read the directions and realized that I had gone to http://amazon.com when the right URL to get the cookies from is http://alexa.amazon.com.

@QuadDepo
Copy link
Author

Have been redoing the steps for around 4 times now but still no success :(

Good to hear your guys are making it work.

What kind of browser are you using? and how are you loading in the alexa.amazon.com website?

@borisfeldman
Copy link

borisfeldman commented Dec 31, 2018

I used a new install of Firefox with the Export Cookies extension.

Went to alexa.amazon.com and exported the cookies for “amazon.com” (one of the options) which included a couple of alexa.amazon.com entries.

I then transferred the file to my Ubuntu VM and copied it to /tmp/.alexa.cookie

@QuadDepo
Copy link
Author

Still no luck. :/

@AdminGSUK
Copy link

Got mine working now. I couldn't get the cookie right because Firefox kept crashing. Used Firefox on another machine and went to alexa.amazon.co.uk. Copied the cookie to the Raspberry PI and now all working.

@QuadDepo
Copy link
Author

QuadDepo commented Jan 2, 2019

Made a mutli-room group in the Alexa app and tried deleting it using the CLI and also this is not working :(

response:

pi@hassbian:/home/homeassistant/.homeassistant/alexa_tts/ha-alexa-tts $ ./alexa_remote_control.sh -m "Everywhere"
HTTP/1.1 0 x-amzn-RequestId: 7b1232ef-****-11e9-9e73-db6c4ed5cbbf
Access-Control-Allow-Origin: https://alexa.amazon.com
Content-Encoding: deflate
Vary: Origin
Access-Control-Expose-Headers: x-amzn-dat-gui-client-upgrade,X-Amzn-Error,loginUrl,X-Amzn-RequestId,x-amzn-alt-domain,Date,Location
Access-Control-Allow-Credentials: true
Date: Wed, 02 Jan 2019 20:46:29 GMT
Connection: close

@darrepac
Copy link

darrepac commented Jan 4, 2019

same for me: cookie stuff ok but no sound...

@rtoralba1123
Copy link

I was able to run the ./alexa_remote.sh to all device and play the weather but it wouldn't make a sound with speak

root@hassio:/usr/share/hassio/homeassistant# ./alexa_remote_control.sh -d "Echo1" -e speak:this_is_a_text
sending cmd:speak:this_is_a_text to dev:Echo1 type:REDACTED serial:REDACTED customerid:REDACTED
Sequence command: Alexa.Speak
HTTP/1.1 0 x-amzn-RequestId: 36b73799-4a65-11e9-a46c-a786a1d0b0cf
x-amzn-alt-domain: https://alexa.amazon.ca/logout
Access-Control-Allow-Origin: https://alexa.amazon.com
Content-Encoding: deflate
Vary: Origin
Access-Control-Expose-Headers: x-amzn-dat-gui-client-upgrade,X-Amzn-Error,loginUrl,X-Amzn-RequestId,x-amzn-alt-domain,Date,Location
Access-Control-Allow-Credentials: true
Date: Tue, 19 Mar 2019 16:36:57 GMT
Connection: close

what other component i need to install - pyhton - looking on the alexa_wrapper.sh file it has this path
PATH=/usr/local/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/$
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

Any advise ? thanks a lot

@ooii
Copy link

ooii commented Mar 28, 2020

Hi,

I succeeded to log in and get the list of connected devices. But when I run a test, I have the following result:

sending cmd:speak:This_is_a_test to dev:Salon type:A7WXQPH584YP serial:G090RF048XXXXXXX customerid:A1A0581XXXXXXX
Sequence command: Alexa.Speak

Is the script still working or am I doing something wrong?

@regisleclerc
Copy link

If it helps, I had the same issue, I used firefox (instead of chrome initially) to get cookies' content, it solved the issue !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants