question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TTS Stopped Working

See original GitHub issue

Describe the bug After upgrading to 2022.7 TTS stopped working. Subsequent updates have not resolved the issue. I have uninstalled and reinstalled alexa media player with no difference. Setting the type to notify does work.

To Reproduce Steps to reproduce the behavior: 2 Methods

  1. Go to ‘developer tools’
  2. Click on ‘services’
  3. fill in the relevant information
  4. click call service
service: notify.alexa_media_office_echo
data:
  message: Test Test
  data:
    type: tts
service: notify.alexa_media_office_echo
data:
  message: Test Test
  data:
    type: tts

Second Method

  1. create an automation to send a tts message after a button press from a zigby button

Screenshots Method 1 image

Method 2 image

System details

  • Home-assistant (version): core-2022.7.7
  • Hassio (Yes/No): Yes
  • alexa_media (version from const.py or HA startup): 4.1.0
  • alexapy (version from pip show alexapy or HA startup): 1.26.1
  • Amazon 2FA is enabled (y/n). We will not debug login issues if unanswered: Yes

Logs 2022-08-04 19:38:00 INFO (MainThread) [custom_components.alexa_media] Loaded alexapy==1.26.1 2022-08-04 19:38:00 DEBUG (MainThread) [custom_components.alexa_media.helpers] [SANATIZED]: Returning uuid {‘uuid’: ‘[SANATIZED]’, ‘index’: 0} 2022-08-04 19:38:00 DEBUG (MainThread) [alexapy.alexalogin] Creating TOTP for H************************************************N7A 2022-08-04 19:38:00 DEBUG (MainThread) [alexapy.alexalogin] Generating OTP 076257 2022-08-04 19:38:00 DEBUG (MainThread) [alexapy.alexalogin] Login created for [SANATIZED] - amazon.com 2022-08-04 19:38:00 DEBUG (MainThread) [alexapy.alexalogin] Searching for cookies from /config/.storage/alexa_media.[SANATIZED].pickle 2022-08-04 19:38:00 DEBUG (MainThread) [alexapy.alexalogin] Trying to load cookie from file /config/.storage/alexa_media.[SANATIZED].pickle 2022-08-04 19:38:01 DEBUG (MainThread) [alexapy.alexalogin] Trying to load aiohttpCookieJar to session 2022-08-04 19:38:01 DEBUG (MainThread) [alexapy.alexalogin] Loaded 9 cookies 2022-08-04 19:38:01 DEBUG (MainThread) [alexapy.alexalogin] Searching for cookies from /config/alexa_media.[SANATIZED].pickle 2022-08-04 19:38:01 DEBUG (MainThread) [alexapy.alexalogin] Using cookies to log in 2022-08-04 19:38:01 DEBUG (MainThread) [alexapy.alexalogin] Attempting to register with amazon.com 2022-08-04 19:38:11 DEBUG (MainThread) [alexapy.alexalogin] auth response <ClientResponse(https://api.amazon.com/auth/register) [200 OK]> <CIMultiDictProxy(‘Server’: ‘Server’, ‘Date’: ‘Fri, 05 Aug 2022 00:38:10 GMT’, ‘Content-Type’: ‘application/json;charset=UTF-8’, ‘Content-Length’: ‘5604’, ‘Connection’: ‘keep-alive’, ‘x-amz-rid’: ‘GJH4AWTCJYSC5Q23ZJDV’, ‘x-amzn-RequestId’: ‘d489bfe9-5b24-4f97-9103-981b6b8880fb’, ‘X-Amz-Date’: ‘Fri, 05 Aug 2022 00:38:10 GMT’, ‘Cache-Control’: ‘no-cache, no-store, must-revalidate’, ‘Pragma’: ‘no-cache’, ‘Vary’: ‘Content-Type,Accept-Encoding,X-Amzn-CDN-Cache,X-Amzn-AX-Treatment,User-Agent’, ‘Permissions-Policy’: ‘interest-cohort=()’)> with {“requested_extensions”: [“device_info”, “customer_info”], “cookies”: {“website_cookies”: [SANATIZED] 2022-08-04 19:38:11 DEBUG (MainThread) [alexapy.alexalogin] Successfully registered Erik’s 2nd Alexa Media Player device with Amazon 2022-08-04 19:38:11 DEBUG (MainThread) [alexapy.alexalogin] New access token received which expires at 2022-08-04 20:38:11.610162 in 0:59:59.999675 2022-08-04 19:38:15 DEBUG (MainThread) [alexapy.alexalogin] 5 cookies successfully exchanged for refresh token for domain .amazon.com 2022-08-04 19:38:15 DEBUG (MainThread) [alexapy.alexalogin] CSRF already exists; no need to discover 2022-08-04 19:38:17 DEBUG (MainThread) [alexapy.alexalogin] GET: https://alexa.amazon.com/api/bootstrap returned 200:OK with response <CIMultiDictProxy(‘Content-Type’: ‘application/json’, ‘Content-Length’: ‘145’, ‘Connection’: ‘keep-alive’, ‘Server’: ‘Server’, ‘Date’: ‘Fri, 05 Aug 2022 00:38:16 GMT’, ‘x-amz-rid’: ‘66NH139QJAM8Q4CFVDFQ’, ‘x-amzn-RequestId’: ‘0635ff7f-07f0-4dcc-ad54-70a8bc9b7e5d’, ‘Content-Encoding’: ‘gzip’, ‘Vary’: ‘Content-Type,Accept-Encoding,X-Amzn-CDN-Cache,X-Amzn-AX-Treatment,User-Agent’, ‘Permissions-Policy’: ‘interest-cohort=()’, ‘X-Cache’: ‘Miss from cloudfront’, ‘Via’: ‘1.1 648a9cc121d040a230a7c3a6982dca90.cloudfront.net (CloudFront)’, ‘X-Amz-Cf-Pop’: ‘DFW50-C1’, ‘X-Amz-Cf-Id’: ‘MrgSvX96VuiDTfARUcN9ZQPxOV84_r9VCC-bIIcvRWbK9Q5AJBHgdQ==’)> 2022-08-04 19:38:17 DEBUG (MainThread) [alexapy.alexalogin] Logged in as [SANATIZED] to amazon.com with id: [SANATIZED] 2022-08-04 19:38:18 DEBUG (MainThread) [alexapy.alexalogin] Domain amazon.com matches reported account domain: https://www.amazon.com 2022-08-04 19:38:18 DEBUG (MainThread) [alexapy.alexalogin] Login confirmed for [SANATIZED] - amazon.com; saving cookie to /config/.storage/alexa_media.[SANATIZED].pickle 2022-08-04 19:38:18 DEBUG (MainThread) [custom_components.alexa_media] Testing login status: {‘login_successful’: True} 2022-08-04 19:38:18 DEBUG (MainThread) [custom_components.alexa_media] Setting up Alexa devices for [SANATIZED] 2022-08-04 19:38:18 DEBUG (MainThread) [custom_components.alexa_media] [SANATIZED]: Websocket created: <alexapy.alexawebsocket.WebsocketEchoClient object at 0x7f7258a380> 2022-08-04 19:38:18 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/tcomm/ with {‘Cookie’: [SANATIZED] 2022-08-04 19:38:19 DEBUG (MainThread) [custom_components.alexa_media] [SANATIZED]: Websocket successfully connected 2022-08-04 19:38:19 DEBUG (MainThread) [custom_components.alexa_media] [SANATIZED]: Creating coordinator 2022-08-04 19:38:19 DEBUG (MainThread) [custom_components.alexa_media] [SANATIZED]: Refreshing coordinator 2022-08-04 19:38:19 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop. 2022-08-04 19:38:19 DEBUG (MainThread) [alexapy.alexawebsocket] Received raw WebSocket: b’0x37a1b607 0x0000009c {“protocolName”:“A:F”,“parameters”:{“AlphaProtocolHandler.maxFragmentSize”:“16000”,“AlphaProtocolHandler.receiveWindowSize”:“16”}}TUNE’ 2022-08-04 19:38:19 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG. 2022-08-04 19:38:19 DEBUG (MainThread) [alexapy.alexawebsocket] 0xfe88bc52 0x0000009c {“protocolName”:“A:F”,“parameters”:{“AlphaProtocolHandler.receiveWindowSize”:“16”,“AlphaProtocolHandler.maxFragmentSize”:“16000”}}TUNE 2022-08-04 19:38:19 DEBUG (MainThread) [alexapy.alexawebsocket] A:F Initialization Msg 2 sent: 307866653838626335322030783030303030303963207b2270726f746f636f6c4e616d65223a22413a46222c22706172616d6574657273223a7b22416c70686150726f746f636f6c48616e646c65722e7265636569766557696e646f7753697a65223a223136222c22416c70686150726f746f636f6c48616e646c65722e6d6178467261676d656e7453697a65223a223136303030227d7d54554e45 2022-08-04 19:38:19 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Register MSG. 2022-08-04 19:38:19 DEBUG (MainThread) [alexapy.alexawebsocket] bytearray(b’MSG\x00\x00\x03b\x10i.\xb4f\x00\x00\x00\x01\xcd5\xd5\x7f\x00\x00\x00\xe4GWM MSG 0x0000b479 0x0000003b urn:tcomm-endpoint:device:deviceType:0:deviceSerialNumber:0 0x00000041 urn:tcomm-endpoint:service:serviceName:DeeWebsiteMessagingService {“command”:“REGISTER_CONNECTION”}FABE’) <trimed>2022-08-04 19:38:22 DEBUG (MainThread) [custom_components.alexa_media] Office Echo: Locale en-us timezone America/Chicago 2022-08-04 19:38:22 DEBUG (MainThread) [custom_components.alexa_media] Office Echo: DND False 2022-08-04 19:38:22 DEBUG (MainThread) [custom_components.alexa_media] Loading config entry for media_player 2022-08-04 19:38:22 DEBUG (MainThread) [custom_components.alexa_media] Finished fetching alexa_media data in 3.004 seconds (success: True) 2022-08-04 19:39:46 DEBUG (MainThread) [custom_components.alexa_media.notify] Message: This is a test, kwargs: {‘target’: [‘[SANATIZED]’], ‘data’: None} 2022-08-04 19:39:46 DEBUG (MainThread) [custom_components.alexa_media.notify] Target type: <class ‘list’> 2022-08-04 19:39:46 DEBUG (MainThread) [custom_components.alexa_media.notify] Processing: [SANATIZED] 2022-08-04 19:39:46 DEBUG (MainThread) [custom_components.alexa_media.notify] Processed Target by string: [‘[SANATIZED]’] 2022-08-04 19:39:57 DEBUG (MainThread) [custom_components.alexa_media.notify] Message: This is a test, kwargs: {‘target’: [‘[SANATIZED]’], ‘data’: None} 2022-08-04 19:39:57 DEBUG (MainThread) [custom_components.alexa_media.notify] Target type: <class ‘list’> 2022-08-04 19:39:57 DEBUG (MainThread) [custom_components.alexa_media.notify] Processing: [SANATIZED] 2022-08-04 19:39:57 DEBUG (MainThread) [custom_components.alexa_media.notify] Processed Target by string: [‘[SANATIZED]’] 2022-08-04 19:40:03 DEBUG (MainThread) [custom_components.alexa_media.notify] Message: This is a test, kwargs: {‘target’: [‘[SANATIZED]’], ‘data’: {‘type’: ‘tts’}} 2022-08-04 19:40:03 DEBUG (MainThread) [custom_components.alexa_media.notify] Target type: <class ‘list’> 2022-08-04 19:40:03 DEBUG (MainThread) [custom_components.alexa_media.notify] Processing: [SANATIZED] 2022-08-04 19:40:03 DEBUG (MainThread) [custom_components.alexa_media.notify] Processed Target by string: [‘[SANATIZED]’] 2022-08-04 19:40:03 DEBUG (MainThread) [custom_components.alexa_media.notify] TTS by <Entity Office Echo: standby> : This is a test 2022-08-04 19:40:05 DEBUG (MainThread) [alexapy.alexaapi] [SANATIZED]: Creating sequence for 1 items 2022-08-04 19:40:05 DEBUG (MainThread) [alexapy.alexaapi] [SANATIZED]: Running behavior with data: {“behaviorId”: “PREVIEW”, “sequenceJson”: “{"@type": "com.amazon.alexa.behaviors.model.Sequence", "startNode": {"@type": "com.amazon.alexa.behaviors.model.SerialNode", "nodesToExecute": [{"@type": "com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode", "type": "Alexa.Speak", "operationPayload": {"deviceType": "A32DOYMUN6DTXA", "deviceSerialNumber": "[SANATIZED]", "locale": "en-us", "customerId": "[SANATIZED]", "textToSpeak": "This is a test", "target": {"customerId": "[SANATIZED]", "devices": [{"deviceSerialNumber": "[SANATIZED]", "deviceTypeId": "A32DOYMUN6DTXA"}]}, "skillId": "amzn1.ask.1p.saysomething"}}]}}”, “status”: “ENABLED”} 2022-08-04 19:40:05 DEBUG (MainThread) [alexapy.alexaapi] [SANATIZED]: POST: https://alexa.amazon.com/api/behaviors/preview returned 200:OK:application/octet-stream

Additional context Add any other context about the problem here.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:59

github_iconTop GitHub Comments

1reaction
domusmaximacommented, Sep 3, 2022

Seems there was an issue with my configuration. After the completely remove of the integration and reinstall with the right region (amazon.it for me not amazon.com), the integration works correctly.

0reactions
arthuraltinocommented, Dec 20, 2022

Are you using nginx proxy manager? Do you have your own domain or are you using something like duckdns? I can’t make it work with HA behind nginx proxy manager and duckdns.

Em ter., 20 de dez. de 2022 às 09:54, yan14 @.***> escreveu:

Same problem here! TTS and announcements are not working. Spotify and other apps are working!

Well, my problem has been resolved without doing anything… Strange!

— Reply to this email directly, view it on GitHub https://github.com/custom-components/alexa_media_player/issues/1683#issuecomment-1359311786, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIYEAAFUTIBJW43I6WIIZFDWOGT7ZANCNFSM55V5M32A . You are receiving this because you were mentioned.Message ID: @.***>

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix: Discord TTS 'Text-to-Speech' not Working - Appuals.com
Fix: Discord TTS 'Text-to-Speech' not Working · Disable and Enable Text to Speech in Discord · Change the 'Never' Option in TTS Notifications....
Read more >
How to Fix Discord TTS Not Working Errors - Help Desk Geek
In the User settings menu, select Notifications from the side menu. In the Text-to-Speech Notifications section, make sure to enable TTS ...
Read more >
Text-To-Speech Not Working on Discord? Try 6 Easy Methods
1. Enable Text-to-Speech for all channels · Hit the Windows key, type Discord, then open the first result. · Click on the User...
Read more >
My TTS not working : r/discordapp - Reddit
TTS works with your windows' voice, discord only sends the request to your system, after which the message is played system-wide. It might...
Read more >
Fix Discord Text-To-Speech (TTS) Not Working
The first reason why Discord TTS may stop working is if you set text-to-speech notifications to "Never." Setting TTS notifications to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found