1
0
mirror of https://github.com/home-assistant/core.git synced 2025-05-18 21:09:18 +00:00

5 Commits

Author SHA1 Message Date
c0ffeeca7
c3a3ddcfa4
Standardize spelling of TTS and STT ()
* Standardize spelling of TTS and STT

* Apply suggestions from code review

* Update homeassistant/components/tts/media_source.py

---------

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2023-05-31 11:00:19 -04:00
Dara Adib
e2daffc117
Fix exception handling in Microsoft TTS ()
pycsspeechtts uses the requests library, but Microsoft TTS previously
caught HTTPException from the standard library. This is changed to
catch requests.HTTPError and return `(None, None)` consistent with
other TTS integrations. This will properly raise HomeAssistantError
for display in the frontend.

Follow up to PR  which adds tests for Microsoft TTS.
2023-05-25 11:29:13 +02:00
Dara Adib
663f66a2b2
Scrape Microsoft TTS supported languages ()
* Update Microsoft TTS supported languages

`script.microsoft_tts` scrapes Microsoft Azure documentation for
the list of supported languages and saves them to
`homeassistant.generated.microsoft_tts` for use in the component.

This adds support for more TTS languages, like fa-ir (Persian).

* Improve xpath query for Microsoft TTS languages

* Remove asserts for Microsoft TTS languages

* Add more tests for Microsoft TTS languages
2023-05-25 10:46:34 +02:00
Erik Montnemery
68379dd55a
Improve TTS cache dir mocking () 2023-05-24 21:00:35 +02:00
Dara Adib
3bd6dea63b
Add tests for Microsoft TTS ()
* Add tests for Microsoft TTS

* Update requirements_test_all

* Update tests/components/microsoft/__init__.py

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-05-24 08:25:03 +02:00