Page 4 of 8

Re: Alexa text to speech

Posted: Wednesday 05 September 2018 19:41
by freijn
philchillbill wrote: Wednesday 05 September 2018 15:05 Frank,

I just use the well-known

Code: Select all

LANGUAGE="en-US"
AMAZON='amazon.co.uk'
ALEXA='alexa.amazon.co.uk'
The rocket science is not in those settings but in using the cookies.txt plugin to create the cookie in Firefox run locally on the same machine as the script. As mentioned, running Firefox on a different machine and capturing that cookie didn't work for me.
I never had the cookie issue.. All was accepted but no voice was heard from Alexa. Only then when I moved to DE it started to work.

Can I ask? Where was your Alexa born? ( where did you buy it ) ?
Could that be the problem?

Re: Alexa text to speech

Posted: Wednesday 05 September 2018 23:31
by philchillbill
I have 3 Germans, 1 UK and 1 US and all work on UK settings. Never tried anything else.


Sent from my iPhone using Tapatalk

Re: Alexa text to speech

Posted: Saturday 08 September 2018 9:16
by philchillbill
For those having issues with this script, it may be worthwhile restoring your Echo to factory settings and retrying. When I originally had just 2 echo dots and wasn't sure what rooms I'd put them in, I called them White and Black after their physical colours to distinguish. Later when I added another Dot, a Show and a Spot, I renamed and all devices now have a room name. The thing is, for drop-in purposes, I cannot for the life of me get Alexa to use the new names - I have to still say White and Black as drop-in names. There's clearly an Amazon bug somewhere that keeps some old things persistent. Resetting to factory defaults gives a clean slate to start over and that might help people with weird anomalies here too.

Re: Alexa text to speech

Posted: Wednesday 12 September 2018 0:12
by EdddieN
mmm... need to try this! :)

Re: Alexa text to speech

Posted: Thursday 13 September 2018 0:07
by nono212
What you have done Guys is great ...
I want to implement that home but I am using domoticz on synology
I do not that that qj is available ... any idea of a tutorial for synology

Re: Alexa text to speech

Posted: Thursday 13 September 2018 11:54
by nono212
Great Jobs guys
I have a script that notify me when to taking out the trash.
I used email as notification but with your contribution I will asks Alexa to warn me but what happens If I am not there when Alexa say it ...
So Alexa will say it every half hour Is there a way to acknowledge the message so Alexa stops the notification

Re: Alexa text to speech

Posted: Thursday 13 September 2018 13:13
by philchillbill
nono212 wrote: I do not that that jq is available ... any idea of a tutorial for synology
You can run a remote script on an rpi from your synology using ssh keys and remote execution. I explained how to do this in the wiki for Logitech Media Server. Same principle if you understand how it works. So buy an rpi-zero for a few €, put the Alexa script on it and launch it when you need it from your synology.


Sent from my iPhone using Tapatalk

Re: Alexa text to speech

Posted: Wednesday 19 September 2018 8:11
by philchillbill
nono212 wrote: So Alexa will say it every half hour Is there a way to acknowledge the message so Alexa stops the notification
Tell Alexa to turn off a switch (via e.g Habridge), where that switch is checked before an announcement is made...


Sent from my iPhone using Tapatalk

Re: Alexa text to speech

Posted: Sunday 23 September 2018 12:28
by heggink
the DE (non cookie) approach stopped working for me today :-(. Need to go down the cookie route.

Re: Alexa text to speech

Posted: Wednesday 26 September 2018 20:15
by freijn
Is that the reason Alexa is sick? "Sorry having toubles, please try again later" Is what she say during an event.

Re: Alexa text to speech

Posted: Wednesday 26 September 2018 21:12
by heggink
No. The script borked indicating that a caption may be used.

Re: Alexa text to speech

Posted: Wednesday 26 September 2018 22:17
by freijn
@ Phil

changed to the US amazon. Having the same issue again. No voice on Alexa... :-(

This is what the script produces....

Code: Select all

pi@raspberrypi:~/domoticz/scripts $ sudo ./alexa_remote_control.sh -d Office  -e speak:'ATTENTION PLEASE ! ,I like to inform you the washingmachine has finished its wairkje '
sending cmd:speak:ATTENTION PLEASE ! ,I like to inform you the washingmachine has finished its wairkje  to dev:Office type:A3S5BH2HU6 serial:G090LF107212 customerid:A3MOWYBUE3
Sequence command: Alexa.Speak
HTTP/1.1 0 x-amzn-RequestId: ce9bb1ad-c1c8-11e8-8ff1-a31f9459
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, 26 Sep 2018 20:14:42 GMT
Connection: close


Re: Alexa text to speech

Posted: Wednesday 26 September 2018 22:20
by heggink
For me it works using the cookie. I switched back to the UK instance.

Re: Alexa text to speech

Posted: Wednesday 26 September 2018 22:28
by freijn
AAaahahhh YESSSSS Cookies monster has arrived. :-)

After playing again with the cookie ( deleting and recreating it again ) it is now working from the US amazon....

Really happy now (again) :-)

THanks !!! Frank

Re: Alexa text to speech

Posted: Wednesday 26 September 2018 22:29
by heggink
Yay!

Re: Alexa text to speech

Posted: Wednesday 26 September 2018 23:42
by philchillbill
Seems like the cookie expires in about 48 hours though...

Re: Alexa text to speech

Posted: Thursday 27 September 2018 0:00
by heggink
That's pretty shitty then.

Re: Alexa text to speech

Posted: Saturday 29 September 2018 10:16
by Hesmink
heggink wrote: Sunday 23 September 2018 12:28 the DE (non cookie) approach stopped working for me today :-(. Need to go down the cookie route.
Still working for me.

Re: Alexa text to speech

Posted: Wednesday 24 October 2018 15:23
by salopette
with me since yesterday, no function.
Does anyone know advice?

Code: Select all

pi@raspberrypi:~/domoticz/scripts $ sudo ./alexa_remote_control.sh -d ALL -e speak:'Put your text to announce here'
cookie does not exist. logging in ...
ERROR: Amazon Login was unsuccessful. Possibly you get a captcha login screen.
 Try logging in to https://alexa.amazon.de with your browser. In your browser
 make sure to have all Amazon related cookies deleted and Javascript disabled!

 (For more information have a look at /tmp/.alexa.login)
pi@raspberrypi:~/domoticz/scripts $
PS..(/tmp/.alexa.login) does not exist with me

Re: Alexa text to speech

Posted: Wednesday 24 October 2018 17:02
by freijn
Go 1 page back and find the post starting "Got it ! And all with UK settings."

That helped me getting it working again..