Alexa text to speech Topic is solved

Alexa, Google Home and Siri

Moderator: leecollings

freijn
Posts: 536
Joined: Friday 23 December 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands Purmerend
Contact:

Re: Alexa text to speech

Post 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?
User avatar
philchillbill
Posts: 399
Joined: Monday 12 September 2016 13:47
Target OS: Linux
Domoticz version: beta
Location: Eindhoven. NL
Contact:

Re: Alexa text to speech

Post 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
Alexa skills author: EvoControl, Statereport, MediaServer, LMS-lite
User avatar
philchillbill
Posts: 399
Joined: Monday 12 September 2016 13:47
Target OS: Linux
Domoticz version: beta
Location: Eindhoven. NL
Contact:

Re: Alexa text to speech

Post 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.
Alexa skills author: EvoControl, Statereport, MediaServer, LMS-lite
User avatar
EdddieN
Posts: 510
Joined: Wednesday 16 November 2016 11:31
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: Scotland
Contact:

Re: Alexa text to speech

Post by EdddieN »

mmm... need to try this! :)
11101101 - www.machinon.com
nono212
Posts: 39
Joined: Sunday 18 December 2016 13:47
Target OS: Linux
Domoticz version: 3.6179
Contact:

Re: Alexa text to speech

Post 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
nono212
Posts: 39
Joined: Sunday 18 December 2016 13:47
Target OS: Linux
Domoticz version: 3.6179
Contact:

Re: Alexa text to speech

Post 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
User avatar
philchillbill
Posts: 399
Joined: Monday 12 September 2016 13:47
Target OS: Linux
Domoticz version: beta
Location: Eindhoven. NL
Contact:

Re: Alexa text to speech

Post 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
Alexa skills author: EvoControl, Statereport, MediaServer, LMS-lite
User avatar
philchillbill
Posts: 399
Joined: Monday 12 September 2016 13:47
Target OS: Linux
Domoticz version: beta
Location: Eindhoven. NL
Contact:

Re: Alexa text to speech

Post 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
Alexa skills author: EvoControl, Statereport, MediaServer, LMS-lite
User avatar
heggink
Posts: 980
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: Alexa text to speech

Post by heggink »

the DE (non cookie) approach stopped working for me today :-(. Need to go down the cookie route.
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
freijn
Posts: 536
Joined: Friday 23 December 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands Purmerend
Contact:

Re: Alexa text to speech

Post by freijn »

Is that the reason Alexa is sick? "Sorry having toubles, please try again later" Is what she say during an event.
User avatar
heggink
Posts: 980
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: Alexa text to speech

Post by heggink »

No. The script borked indicating that a caption may be used.
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
freijn
Posts: 536
Joined: Friday 23 December 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands Purmerend
Contact:

Re: Alexa text to speech

Post 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

User avatar
heggink
Posts: 980
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: Alexa text to speech

Post by heggink »

For me it works using the cookie. I switched back to the UK instance.
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
freijn
Posts: 536
Joined: Friday 23 December 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands Purmerend
Contact:

Re: Alexa text to speech

Post 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
User avatar
heggink
Posts: 980
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: Alexa text to speech

Post by heggink »

Yay!
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
User avatar
philchillbill
Posts: 399
Joined: Monday 12 September 2016 13:47
Target OS: Linux
Domoticz version: beta
Location: Eindhoven. NL
Contact:

Re: Alexa text to speech

Post by philchillbill »

Seems like the cookie expires in about 48 hours though...
Alexa skills author: EvoControl, Statereport, MediaServer, LMS-lite
User avatar
heggink
Posts: 980
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: Alexa text to speech

Post by heggink »

That's pretty shitty then.
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
Hesmink
Posts: 168
Joined: Monday 22 June 2015 10:48
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Alexa text to speech

Post 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.
salopette
Posts: 187
Joined: Tuesday 07 March 2017 21:03
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Germany
Contact:

Re: Alexa text to speech

Post 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
freijn
Posts: 536
Joined: Friday 23 December 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands Purmerend
Contact:

Re: Alexa text to speech

Post 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..
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest