Closed wptracy closed 1 year ago
@al-one Is this related to https://github.com/hasscc/hass-edge-tts/issues/33?
I deleted google_translate, but it still didn't work. tts:
In entity_id
replace media_player
with notify.alexa_media
.
Like this?
service: tts.edge_tts_say data: entity_id: notify.alexa_media.william_s_office_echo_dot message: >- You can replace this text with any text you wish. You can either write in this text box or paste your own text here. Try different languages and voices. Change the speed and the pitch of the voice. You can even tweak the SSML (Speech Synthesis Markup Language) to control how the different sections of the text sound. Click on SSML above to give it a try! Enjoy using Text to Speech! options: voice: Eric (neural)
@wptracy Could you check these links:
It appears that this is a change in alexa_media_player
Like this?
I'm not entirely sure, but I think the links I sent above match the issue you're facing.
voice: Eric (neural)
P.S. your voice is invalid. It should be en-US-EricNeural
.
This is in my automation, and it works.
service: notify.alexa_media_william_s_office_echo_dot data: message: Shelly Flood Detected Water
I replaced entity_id: notify.alexa_media.william_s_office_echo_dot with entity_id: notify.alexa_media_william_s_office_echo_dot And Alexa doesn't say anything.
service: tts.edge_tts_say data: entity_id: notify.alexa_media_william_s_office_echo_dot message: >- You can replace this text with any text you wish. You can either write in this text box or paste your own text here. Try different languages and voices. Change the speed and the pitch of the voice. You can even tweak the SSML (Speech Synthesis Markup Language) to control how the different sections of the text sound. Click on SSML above to give it a try! Enjoy using Text to Speech! options: voice: Eric (neural)
I'm sorry but I don't think anyone here might be able to help you but there is also this thread with people with similar issues: https://github.com/custom-components/alexa_media_player/issues/1683
I changed voice and tried again. Alexa still complains.
Text to speech tts:
platform: google_translate
platform: edge_tts language: en-US-EricNeural # Default language or voice (Optional)
service: tts.edge_tts_say data: message: >- You can replace this text with any text you wish. You can either write in this text box or paste your own text here. Try different languages and voices. Change the speed and the pitch of the voice. You can even tweak the SSML (Speech Synthesis Markup Language) to control how the different sections of the text sound. Click on SSML above to give it a try! Enjoy using Text to Speech! options: voice: EricNeural entity_id: media_player.william_s_office_echo_dot
Where is you find the acceptable voice like en-US-EricNeural Is there a list?
I honestly haven't use HASS in a while (I only maintain the edge-tts library which this uses) but the list is accessible from https://github.com/hasscc/hass-edge-tts/blob/main/custom_components/edge_tts/tts.py#L24 or https://speech.platform.bing.com/consumer/speech/synthesize/readaloud/voices/list?trustedclienttoken=6A5AA1D4EAFF4E9FB37E23D68491D6F4 (either ShortName
or Name
would work)
This was working all along. I just didn't know how to use is. These are the currently supported media plays for Home Assistant. https://www.home-assistant.io/integrations/media_player/ Currently only supported on Sonos, Spotify, MPD, Kodi, Roon, Owntone, Squeezebox and Universal.
The Edge TTS card appears in the Media TTS Card. It plays on supported devices.
So this is solved?
yes
I can't get this to work. Alexa complains, says: Sorry, text to speech can only be called with the notify dot Alexa underscore media service. Please see the Alexa underscore media wiki for details.
Home Assistant 2023.1.7 Supervisor 2023.01.1 Operating System 9.5 Frontend 20230110.0 - latest
Alexa complains, says: Sorry, text to speech can only be called with the notify dot Alexa underscore media service. Please see the Alexa underscore media wiki for details.