Alexa TTS (Text-To-Speech) [and more] plug-in for Vera

@Catman

play ‘does not exist’ ?

log into pitangui.amazon.com ? when I log into pitangui.amazon.com with my credentials logs me out and force to login to alexa.amazon.uk

Apologies. Terrible phrasing.

All I was trying to say is that the alexa cookie may not be the right one and therefore ‘the correct alexa cookie does not exist’.
When I log into pitangui I get to Amazon Sign In

Which shows all my old commands and alexa stuff. I exported my cookie from there

C

I noticed that when I insert the .alexa.cookie file reload Engine and Web browser. When I checked SCP I had


and when I refresh SCP

.alexa.cookie was automatically deleted

So it’s not liking your cookie for some reason and your authentication doesn’t appear to be working :frowning:

Hang on, what are all those header and postdata files? Are you adding those?

C

@Catman

No they are created automatically.

I created new .alexa.cookie using the Firefox and Export cookie plugin copied to /storage/Alexa
Then:
Reload Engine and Web browser and refresh SCP. Postdata files appeared like shown on first picture and then like shown on second picuere automatically deleted along with .alexa.cookie

Hmm, I have never seen those.

All I can offer is to have a look at your cookie, but you want to be careful about sharing the token in there

C

Please see few posts above. Would this be enough?

Ahh yes

My cookie does not have lines for alexa.amazon.co.uk

I wonder if deleting those two lines might help.

Also you don’t seem to have a sesion-token line which may really be an issue!

Totally no promises!

C

@Catman PM

@Catman @therealdb

Yohooo it’s working! BIG THANK YOU to @Catman for his support over PM. :handshake:THANK YOU! :+1:

I don’t know what I done it but is working now … :crossed_fingers:

I absolutely love this feature BIG THANK YOU to @therealdb we need more people like him :crossed_fingers: :clap:

2 Likes

At a guess it was getting those hosts correct, and the cookie sorted

Great news!

C

@Catman Well cookie seams to be the same without session-token. So I don’t really know what was wrong :smirk:

Pass! As long as it works

C

Argh, I’ve had this working perfectly for ages and now it’s just stopped. I get no errors at all and Im not getting OTP’s from Amazon that I haven’t added.

The only thing that changed was I recently ditched the UPnP app thinking I didnt need it anymore (I had it installed for a crude Belkin wifi app that was never published). anyway AlexaTTS stopped working after this … however I re-installed UPnP and it started working again.

Then tonight it just stopped again. Any idea’s on how to troubleshoot this? eg logs to check etc.

There are not dependencies in the latest release, so it’s strange. Logs are Vera Logs, try to look at them.

1 Like

Cheers, I’ll have another crack tomorrow.

Ok, here are the logs of my test scene - this is after I backed up my cookie, ran the reset code and then copied my cookie back:

08 06/26/20 11:55:27.145 Scene::RunScene running 101 Test Alexa TTS <0x70421520>
08 06/26/20 11:55:27.146 JobHandler_LuaUPnP::HandleActionRequest device: 388 service: urn:bochicchio-com:serviceId:VeraAlexa1 action: Say <0x70421520>
08 06/26/20 11:55:27.146 JobHandler_LuaUPnP::HandleActionRequest argument Repeat=1 <0x70421520>
08 06/26/20 11:55:27.146 JobHandler_LuaUPnP::HandleActionRequest argument Text=Testing, Testing <0x70421520>
08 06/26/20 11:55:27.146 JobHandler_LuaUPnP::HandleActionRequest argument GroupZones=Study <0x70421520>
08 06/26/20 11:55:27.146 JobHandler_LuaUPnP::HandleActionRequest argument Volume=20 <0x70421520>
50 06/26/20 11:55:27.147 luup_log:388: VeraAlexa: addToQueue: added to queue for 388 <0x70421520>

Im not seeing any errors at all.

I also replaced all the files from the GitHub repo to ensure I have the latest version.

Btw, Im not sure if this has changed, but my device ID now says:

urn:bochicchio-com:device:VeraAlexa:1

I dont recall the “:” being there before and my test code uses “urn:bochicchio-com:serviceId:VeraAlexa1”

should I drop the 1? (makes no difference)

This is frustrating - I have done a full reset, new cookie the works but she wont speak to me. :cry:

EDIT: when I rebuilt it from scratch I forgot the leading period for the cookie, all good now and no UpnP plugin in sight! :sunglasses:

1 Like

I’ve been curious about that @therealdb are you aware of any reason why all the files are hidden? I know this wasn’t ‘yours’ initially, just curious as to your thoughts.

C

1 Like

hey @Catman I really don’t know the answer :slight_smile:

@dJOS I don’t remember to have edited it, but you should consider that it’s beta software and I was adapting it quite fast. Wish jq package could be finally added, because with its support, as @Catman already knows, it’s night and day.

1 Like