Paulus Schoutsen
754de6f998
Add shared history for conversation agents ( #135903 )
...
* Add shared history for conversation agents
* Remove unused code
* Add support for native history items
* Store all assistant responses as assistant in history
* Add history support to DefaultAgent.async_handle_intents
* Make local fallback work
* Add default agent history
* Add history cleanup
* Add tests
* ChatHistory -> ChatSession
* Address comments
* Update snapshots
2025-01-18 22:33:03 -05:00
Marc Mueller
19e5b091c5
Use HassKey for assist_pipeline singleton ( #135875 )
2025-01-18 09:52:13 -10:00
Joost Lekkerkerker
9f7a38f189
Enable RUF022 ( #135767 )
2025-01-16 13:48:24 +01:00
Franck Nijhof
60bdc13c94
Drop Python 3.12 support ( #135589 )
2025-01-14 16:23:15 +01:00
Joost Lekkerkerker
8db63adc11
Bump ruff to 0.9.1 ( #135197 )
2025-01-14 11:46:12 +01:00
Michael Hansen
b897e6a85f
Use STT/TTS languages for LLM fallback ( #135533 )
2025-01-13 14:17:12 -06:00
Paulus Schoutsen
7a484ee0ae
Add extra prompt to assist pipeline and conversation ( #124743 )
...
* Add extra prompt to assist pipeline and conversation
* extra_prompt -> extra_system_prompt
* Fix rebase
* Fix tests
2025-01-06 12:58:42 -05:00
Michael Hansen
23459a0355
Revert speech seconds to 0.3 ( #134360 )
2024-12-31 20:04:41 +01:00
Michael Hansen
50b897bdaa
Add STT error code for cloud authentication failure ( #133170 )
2024-12-13 14:59:46 -05:00
Michael Hansen
053f03ac58
Change warning to debug for VAD timeout ( #132987 )
2024-12-12 09:03:05 +01:00
Michael Hansen
94260147d7
Fix pipeline conversation language ( #132896 )
2024-12-11 18:52:02 +01:00
Jan-Philipp Benecke
6b7724c556
Track if intent was processed locally ( #132166 )
2024-12-04 09:52:15 +01:00
Michael
1a9ab07742
Allow empty trigger sentence responses in conversations ( #131849 )
...
allow empty trigger sentence responses
2024-11-28 18:30:05 +01:00
Michael Hansen
7621012ee6
Ensure sentence triggers are only checked once ( #131210 )
...
Co-authored-by: Artur Pragacz <49985303+arturpragacz@users.noreply.github.com>
2024-11-22 17:38:19 +01:00
Michael Hansen
5fa9a945d9
Handle sentence triggers and local intents before pipeline agent ( #129058 )
...
* Handle sentence triggers and registered intents in Assist LLM API
* Remove from LLM
* Check sentence triggers and local intents first
* Fix type
* Fix type again
* Use pipeline language
* Fix cloud test
* Clean up and fix translation key
* Refactor async_recognize
2024-11-14 10:50:50 -06:00
Michael Hansen
69e3348cd7
Use different VAD thresholds for before and during voice command ( #129848 )
...
* Use two VAD thresholds
* Fix VoiceActivityTimeout class
* Update homeassistant/components/assist_pipeline/audio_enhancer.py
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-11-05 08:01:45 -06:00
Paulus Schoutsen
471c68f653
Update the Selected Pipeline entity name ( #126845 )
2024-09-26 20:38:51 +02:00
Erik Montnemery
c96d4991b9
Add issue asking users to disable VoIP call_in_progress binary sensor ( #126504 )
...
* Add issue asking users to disable VoIP call_in_progress binary sensor
* Add tests
* Add files
* Update homeassistant/components/voip/binary_sensor.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Fix test
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-09-24 11:46:43 +02:00
Erik Montnemery
6cd99e4ed4
Add issue asking users to disable ESPHome assist_in_progress sensor ( #125805 )
...
* Add issue asking users to disable ESPHome assist_in_progress binary sensor
* Include integration name in title and description
* Add repair flow
* Improve test coverage
2024-09-21 17:14:12 -04:00
epenet
47a9dda3b8
Use root import in components ( #125858 )
2024-09-12 22:21:21 +02:00
Paulus Schoutsen
ff3cabbf3a
Small Assist Satellite fixes ( #125384 )
2024-09-06 07:36:02 -04:00
Michael Hansen
60b0f0dc53
Add assist satellite entity component ( #125351 )
...
* Add assist_satellite
* Update homeassistant/components/assist_satellite/manifest.json
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
* Update homeassistant/components/assist_satellite/manifest.json
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
* Add platform constant
* Update Dockerfile
* Apply suggestions from code review
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Address comments
* Update docstring async_internal_announce
* Update CODEOWNERS
---------
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-09-05 21:16:30 -04:00
Michael Hansen
4ecc6555bf
Add support for sample bytes in preferred TTS format ( #125235 )
2024-09-04 13:42:41 -04:00
Michael Hansen
8fee1975b4
Bump pyspeex-noise to 1.0.2 ( #124721 )
...
Co-authored-by: TheJulianJES <TheJulianJES@users.noreply.github.com>
2024-08-27 14:26:46 -10:00
Paulus Schoutsen
1aa0dbdaf5
Revert "Revert "Use speex for noise suppression and auto gain"" ( #124637 )
...
Revert "Revert "Use speex for noise suppression and auto gain" (#124620 )"
This reverts commit 302ffe5e56
.
2024-08-26 15:10:43 +02:00
Paulus Schoutsen
302ffe5e56
Revert "Use speex for noise suppression and auto gain" ( #124620 )
...
Revert "Use speex for noise suppression and auto gain (#124591 )"
This reverts commit 592f60643a
.
2024-08-26 10:12:05 +02:00
Michael Hansen
592f60643a
Use speex for noise suppression and auto gain ( #124591 )
2024-08-25 23:50:32 -05:00
Michael Hansen
156e39ebb2
Add minimum command seconds to VAD ( #124447 )
2024-08-24 22:21:03 +02:00
Michael Hansen
f2d39feec0
Adjust VAD seconds better for microVAD ( #123942 )
2024-08-15 11:08:40 +02:00
Franck Nijhof
5142cb5e98
Mark assist_pipeline as a system integration type ( #123202 )
2024-08-05 21:07:11 +02:00
Michael Hansen
80aa2c269b
Standardize assist pipelines on 10ms chunk size ( #123024 )
...
* Make chunk size always 10ms
* Fix voip
2024-08-01 22:39:17 +02:00
Michael Hansen
6baee603a5
Bump pymicro-vad to 1.0.1 ( #122973 )
2024-07-31 22:10:50 +02:00
Michael Hansen
d5388452d4
Use finished speaking detection in ESPHome/Wyoming ( #122962 )
2024-07-31 20:39:03 +02:00
Michael Hansen
7f4dabf546
Switch from WebRTC to microVAD ( #122861 )
...
* Switch WebRTC to microVAD
* Remove webrtc-noise-gain from licenses
2024-07-31 09:42:45 +02:00
HarvsG
7e0970e917
Log timeouts for `assist_pipeline` end of speech detection ( #122182 )
...
* log timeouts
* import logger the right way
2024-07-19 13:43:38 -05:00
Paulus Schoutsen
154da1b18b
Allow targeting conversation agent as pipeline ( #119556 )
...
* Allow targetting conversation agent as pipeline
* Test that we can use a conversation entity as an assist pipeline
* Add test for WS get
---------
Co-authored-by: Michael Hansen <mike@rhasspy.org>
2024-07-09 10:56:53 -05:00
Paulus Schoutsen
01861cd240
Ensure we prepare conversation pipeline when speech-to-text starts ( #114665 )
...
* Ensure we prepare conversation pipeline when speech-to-text starts
* Add lock around recognize
* Update homeassistant/components/conversation/default_agent.py
* Add lock around load intents
2024-07-09 09:58:52 -05:00
Michael Hansen
6e85f09722
Revert webrtc to 1.2.3 ( #121561 )
2024-07-08 22:50:55 +02:00
Michael Hansen
2a31774f91
Bump webrtc-noise-gain to 1.2.5 ( #121539 )
2024-07-08 21:57:10 +02:00
Michael Hansen
1ec95f900d
Bump webrtc-noise-gain to 1.2.4 ( #121346 )
2024-07-06 10:51:40 +02:00
Paulus Schoutsen
22718ca32a
Assist Pipeline minor cleanup ( #121187 )
2024-07-05 09:26:32 +02:00
Paulus Schoutsen
869f24df49
Convert async_get_conversation_languages from async to callback ( #121162 )
...
* Convert get_languages to callback
* One more callback
2024-07-04 10:41:31 +02:00
Marc Mueller
ca55986057
Import Generator from collections.abc (1) ( #120914 )
2024-07-01 11:51:51 +02:00
Joost Lekkerkerker
1fdd056c0e
Fix ruff manual-dict-comprehension PERF403 ( #120723 )
...
* Fix PERF403
* Fix
* Fix
2024-06-28 14:17:47 +02:00
Marc Mueller
b393024acd
Improve collection schema typing ( #120441 )
2024-06-25 18:57:15 +02:00
Erik Montnemery
0d1b050520
Remove create_create from StorageCollectionWebsocket.async_setup ( #119489 )
2024-06-24 15:41:08 +02:00
Erik Montnemery
e0378f79a4
Remove create_list from StorageCollectionWebsocket.async_setup ( #119508 )
2024-06-17 12:16:36 +02:00
Erik Montnemery
003f216820
Rename collection.CollectionChangeSet to collection.CollectionChange ( #119532 )
2024-06-14 08:54:37 +02:00
epenet
960d1289ef
Avoid references to websocket_api.const in core and other components ( #119285 )
2024-06-10 13:49:44 +02:00
Marc Mueller
fe21e2b8ba
Import Generator from typing_extensions (1) ( #118986 )
2024-06-06 17:02:13 +02:00