soonsouth
cfc2f17f35
Remove repetitive words in comments and docstrings ( #113529 )
...
chore: remove repetitive words
Signed-off-by: soonsouth <cuibuwei@163.com>
2024-03-15 18:11:12 +01:00
Michael Hansen
890e651bdd
Avoid race condition with UDP voice server starting in ESPHome ( #111644 )
...
* Avoid race condition with UDP server starting
* Fix test
2024-02-27 10:54:56 -06:00
Jesse Hills
e1dade69e1
ESPHome: Pass through wake_word_phrase from on-device microWakeWord ( #111585 )
...
* ESPHome: Pass through wake_word_phrase from on-device microWakeWord
* Bump aioesphomeapi to 23.0.0
2024-02-26 23:29:03 -05:00
Michael Hansen
3347a3f8a6
More thorough checks in ESPHome voice assistant UDP server ( #109394 )
...
* More thorough checks in UDP server
* Simplify and change to stop_requested
* Check transport
2024-02-02 21:26:44 -05:00
Michael Hansen
d793203163
Skip TTS when text is empty ( #104741 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-11-30 01:31:27 +01:00
Jesse Hills
95c771e330
Send esphome tts_stream event after audio bytes are actually loaded into memory ( #104448 )
...
Send tts_stream event after audio bytes are actually loaded into memory
2023-11-27 09:00:39 +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
Michael Hansen
474f4329bc
Don't warn about unknown pipeline events in ESPHome ( #102174 )
...
Don't warn about unknown events (debug)
2023-10-17 11:57:08 -04:00
Jesse Hills
16c5a12c87
Send events for tts stream start/end ( #102139 )
2023-10-17 19:46:25 +13:00
Jesse Hills
09ba34fb3a
Allow esphome device to disable vad on stream ( #101352 )
2023-10-04 13:09:12 +13:00
Jesse Hills
6ce6952a06
ESPHome: fix voice assistant default audio settings ( #101241 )
2023-10-02 10:35:15 +02:00
Jesse Hills
d41144ee88
ESPHome: dont send error when wake word is aborted ( #101032 )
...
* ESPHome dont send error when wake word is aborted
* Add test
2023-09-27 23:39:57 -04:00
Jesse Hills
4c21aa18db
Add audio_settings for pipeline from ESPHome device ( #100894 )
...
* Add audio_settings for pipeline from ESPHome device
* ruff fixes
* Bump aioesphomeapi 17.0.0
* Mypy
* Fix tests
---------
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-09-26 16:27:26 -05:00
Jesse Hills
57bc8ae68e
Set assist pipeline binary sensor to true only when stt-start is received ( #98844 )
2023-08-23 08:00:38 +12:00
Jesse Hills
a42d975c49
ESPHome Wake Word support ( #98544 )
...
* ESPHome Wake Word support
* Remove all vad code from esphome integration
* Catch exception when no wake word provider found
* Remove import
* Remove esphome vad tests
* Add tests
* More tests
2023-08-21 12:13:02 -04:00
Marc Mueller
e2d2ec8817
Use asyncio.timeout [b-e] ( #98448 )
2023-08-15 08:30:20 -05:00
Michael Hansen
0f08e6699c
Add VAD sensitivity to ESPHome ( #95283 )
...
* Change to "finished speaking detection"
* Add select entity to ESPHome for finished speaking detection
* Fix entity name
* Use vad select in stt stream
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-06-26 16:47:32 -04:00
Paulus Schoutsen
cd330a2740
Pass device ID to conversation input ( #93867 )
2023-05-31 16:56:12 -04:00
Paulus Schoutsen
927b59fe5a
Simplify get pipeline method ( #93865 )
2023-05-31 10:06:03 -05:00
Jesse Hills
d7d9143a44
Add speech detection and conversation_id to esphome voice assistant ( #93578 )
...
* Add speech detection to esphome voice assistant
* Timeout after silence
Ensure events are sent before finish is called
* use va_version 3 instead of ESPHome version
* Convert repeated fixtures to factory
* Add some v3 tests
* Add conversation_id
* Bump aioesphomeapi to 13.8.0
* Fix missed buffering of detected chunk
* Alter log message
* Updates
* Spelling
* Fix return type
2023-05-30 19:49:22 -04:00
Jesse Hills
32ed45084a
ESPHome voice assistant: Version 2 - Stream raw tts audio back to device for playback ( #92052 )
...
* Send raw audio back
* Update tests
* More tests
* Fix docstrings and remove unused patches
* More tests
* MORE
* Only set raw for v2
2023-04-26 22:24:29 -04:00
Jesse Hills
29ca43acf6
Set pipeline_id from pipeline select ( #92085 )
2023-04-27 10:29:08 +12:00
Erik Montnemery
090f59aaa2
Make context a mandatory parameter for async_pipeline_from_audio_stream ( #91658 )
2023-04-19 09:30:29 -04:00
Jesse Hills
0ddccb26fa
ESPHome voice assistant ( #90691 )
...
* Add ESPHome push-to-talk
* Send pipeline events to device
* Bump aioesphomeapi to 13.7.0
* Log error instead of print
* Rename variable
* lint
* Rename
* Fix type and cast
* Move event data manipulation into voice_assistant callback
Process full url
* Add a test?
* Remove import
* More tests
* Update import
* Update manifest
* fix tests
* Ugh
---------
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-04-13 19:18:56 -04:00