I tried setting up Microsoft TTS as the Dutch neural voice is a lot better than Google.
When I try
I get the following errors:
TSS config is
I tried setting up Microsoft TTS as the Dutch neural voice is a lot better than Google.
When I try
I get the following errors:
TSS config is
I am having the same problem using neural voices, did you find a solution?
No, I couldnāt get it to work unfortunately.
Are you using TSL connection?
I had the same problem, when I used a http URL it worked but with https it didnāt.
But if you add base_url to tts then it works (at least for me)
Could you share your yaml config?
tts:
- platform: google_translate
language: 'sv'
base_url: https://yourDNS-URL.duckdns.org:8123
Same problem here - not able to synthesize Dutch TTS with the Microsoft engine. This config is working when selecting AriaNeural without changing language or gender:
- platform: microsoft
cache: false
api_key: <HIDDEN>
region: westeurope
type: AriaNeural
This one fails, keeps the default language (en-us) but changes gender and voice:
- platform: microsoft
cache: false
api_key: <HIDDEN>
region: westeurope
gender: Male
type: GuyNeural
And this one fails as well (change of language and voice type, but keeping gender to default):
- platform: microsoft
cache: false
api_key: <HIDDEN>
region: westeurope
language: nl-nl
type: ColetteNeural
Using the same parameters in Python with the test script and the latest version of pycsspeechtts all combinations are working correctly (WAV file is created). Iām not that experienced with Python, Docker and Linux so I was unable to check which version pycsspeechtts is included in 117.1. Could it be thereās an older version included of pycsspeechtts? Or is there a bug in the āMicrosoftā TTS integration code?
Thanks for the investigation. You could have a look at github and see who created it and contact them or file a bug report.
Thanks for the suggestion. It took me a few hours to find out how I could debug this, but finally succeeded in finding the issue and resolving it. I hope I submitted my first bug in GitHub correctly at https://github.com/home-assistant/core/issues/42809.
Your issue report made me dig into this issue too (as I was having this issue too) and verify that your investigation was spot on
Iāve requested the owner of the package needed for this to release a new version:
PR for merging into HA (maybe 0.118):
Hello, i have the same issue. Any news ? How can i fix it for now?
I have the HA 0.118.4
Tryed to update manually with
pip install git+https://github.com/prairiesnpr/pycsspeechtts.git --upgrade --force-reinstall
But still not workingā¦
It is already in since 0.118.0. What is your exact error and config?
Did you set up both the language and voice type?
Hello Hmmbob,
There is my configuration, i have tryed a lot of changes, with and without some config values and the result is same.
tts:
- platform: microsoft
api_key:
region: francecentral
language: fr-fr
type: DeniseNeural
The only way i found to make it work was with this configuration =>
tts:
- platform: microsoft
api_key:
region: francecentral
Here is my two logs =>
Logger: homeassistant.components.tts
Source: components/tts/__init__.py:172
Integration: Text-to-Speech (TTS) (documentation, issues)
First occurred: 20:08:23 (2 occurrences)
Last logged: 20:08:27
Error on init TTS: No TTS from microsoft for 'test'
Logger: pycsspeechtts.pycsspeechtts
Source: /usr/local/lib/python3.8/site-packages/pycsspeechtts/pycsspeechtts.py:68
First occurred: 20:08:23 (2 occurrences)
Last logged: 20:08:27
Text synthesis failed, statuscode 400, reason:
francecentral doesnāt support neural voices. Try another region (i.e. westeurope (=Netherlands)). You will need to create a new resource there though.
Itās worked !
Canāt believe that Microsoft limit the neural tts to some regionsā¦
I didnāt seen any infos about thatā¦
Thank you for your help, your awesome
Youāre welcome.
I think itās related to capacity or specific hardware needed or so. Glad it worked
Iāll probably put in a PR to specify this better in the docs.
And done, itās in the docs now/soon:
It took me some trials to make it working.
What I got wrong was how to use the voice name, for example en-US-AriaNeural
.
It turns out that you need to split it yourself like this:
language: en-us # note that is all lowercase
type: AriaNeural
Hope it helps.