Erik Montnemery
3e62c6ae2f
Move core config functionality to its own module ( #129065 )
...
* Move core config functionality to its own module
* Adjust test
2024-10-24 13:34:51 +02:00
Erik Montnemery
52b6f00363
Adjust name of Google Translate TTS provider ( #124688 )
2024-08-27 19:07:04 +02:00
epenet
ba54a19d4b
Simplify mock_tts_cache_dir_autouse fixture ( #123783 )
2024-08-13 18:01:06 +02:00
epenet
4cc414fbf8
Use service_calls fixture in google_translate tests ( #120920 )
2024-07-01 13:10:39 +02:00
Marc Mueller
921430d497
Import Generator from collections.abc (3) ( #120916 )
2024-07-01 12:09:11 +02:00
Marc Mueller
33ed4fd862
Import Generator from typing_extensions (3) ( #118990 )
2024-06-06 17:28:59 +02:00
epenet
f178467b0e
Add type hints for TTS test fixtures ( #118704 )
2024-06-03 17:43:18 +02:00
epenet
7e62061b9a
Improve typing for `calls` fixture in tests (a-l) ( #118349 )
...
* Improve typing for `calls` fixture in tests (a-l)
* More
* More
2024-05-29 09:06:48 +02:00
Joost Lekkerkerker
906d3198e3
Use is in enum comparison in config flow tests F-J ( #114670 )
...
* Use right enum expression F-J
* Fix
2024-04-02 23:01:37 +02:00
Robert Resch
17625dc74d
Fix Google translate TTS test race condition ( #114656 )
2024-04-02 18:52:41 +02:00
Marc Mueller
c88b337600
Add empty line after module docstring [tests f-k] ( #112709 )
2024-03-08 14:50:04 +01:00
Michael Hansen
ae516ffbb5
Automatically convert TTS audio to MP3 on demand ( #102814 )
...
* Add ATTR_PREFERRED_FORMAT to TTS for auto-converting audio
* Move conversion into SpeechManager
* Handle None case for expected_extension
* Only use ATTR_AUDIO_OUTPUT
* Prefer MP3 in pipelines
* Automatically convert to mp3 on demand
* Add preferred audio format
* Break out preferred format
* Add ATTR_BLOCKING to allow async fetching
* Make a copy of supported options
* Fix MaryTTS tests
* Update ESPHome to use "wav" instead of "raw"
* Clean up tests, remove blocking
* Clean up rest of TTS tests
* Fix ESPHome tests
* More test coverage
2023-11-06 15:26:00 -05:00
Martin Hjelmare
4d2fa5bdbc
Onboard Google Translate ( #95352 )
2023-06-27 13:12:25 +02:00
Martin Hjelmare
f9366e5cc7
Migrate google translate to config entries ( #93803 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-06-21 14:58:58 +02:00
Erik Montnemery
68379dd55a
Improve TTS cache dir mocking ( #93468 )
2023-05-24 21:00:35 +02:00
epenet
89e4ee5320
Add type hints to integration tests (part 8) ( #87982 )
2023-02-13 11:13:48 +01:00
Todd Johnson
5533368171
Add dialect support to google_translate ( #81768 )
...
* Add TLD option support to google_translate
* Fix tests for added TLD option in google_translate
* Add Language to TLD mapping, Make tld configurable in google_translate
* Move const to dedicated file in google_translate
2022-12-01 13:31:19 +01:00
epenet
0d696b84b2
Cleanup root component imports in tests ( #78893 )
2022-09-21 06:57:41 -10:00
Erik Montnemery
47d0cc9b09
Update integrations to pass target player when resolving media ( #72597 )
2022-05-27 09:05:06 -07:00
Paulus Schoutsen
9303e35a7d
tts.say to use media source URLs ( #70382 )
2022-04-26 13:49:32 -07:00
Paulus Schoutsen
8456c6416e
Add a media source to TTS ( #66483 )
2022-02-14 08:54:12 -08:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Marvin Wichmann
ce056656f8
Implement new Google TTS API via dedicated library ( #43863 )
...
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-12-02 22:03:31 +01:00
Franck Nijhof
2223592486
Add get_url helper, deprecate base_url ( #35224 )
2020-05-08 02:29:47 +02:00
Paulus Schoutsen
2af984917e
Use asynctest-mock in most places ( #35109 )
...
* Use asynctest-mock in most places
* Fix broken patch in pilight
2020-05-03 11:27:19 -07:00
Franck Nijhof
98a2efcbab
Collection of random (mainly) test improvements ( #33733 )
2020-04-06 12:51:48 +02:00
Paulus Schoutsen
f41623ca64
Log warning when entities referenced in service call not found ( #31427 )
...
* Raise entities not found error
* Make it a warning, not an error
* Add support for MATCH_ENTITY_NONE
* Fix lint
* Fix tests
2020-02-04 14:42:07 -08:00
Bas Nijholt
d58e6e924a
Sort imports according to PEP8 for components starting with "G" ( #29767 )
2019-12-09 14:17:36 +01:00
Ville Skyttä
d88ca0f5cb
Lint exclusions ( #28655 )
...
* Remove malformed pylint disable markers
* Remove some unused imports
* Remove some unneeded lint exclusions
* Remove more unneeded lint exclusions
* Add specific codes to all noqa's
2019-11-16 10:22:07 +01:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Jason Hu
308d1fbba0
Rename google/tts.py to google_translate/tts.py ( #23090 )
...
* Rename google/tts.py to google_translate/tts.py
* Move config migration before load config file
Migrate default config google tts to google_translate tts
* Revert change in process component config
* Fix tests
2019-04-16 14:27:07 -07:00