Sid
f7b7f74d10
Enable Ruff TRY201 ( #114269 )
...
* Enable Ruff TRY201
* remove redundant rules
2024-03-28 10:18:07 +01:00
Marc Mueller
062cc4bfce
Add empty line after module docstring [t-v] ( #112705 )
2024-03-08 10:35:23 -05:00
Marc Mueller
8b0c9d3d18
Use builtin TimeoutError [t-z] ( #109683 )
2024-02-05 12:20:36 +01: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
Michael Hansen
a894146cee
Fix TTS streaming for VoIP ( #104620 )
...
* Use wav instead of raw tts audio in voip
* More tests
* Use mock TTS dir
2023-11-29 12:07:22 -05:00
Aarni Koskela
706add4a57
Switch formatting from black to ruff-format ( #102893 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-11-27 14:38:59 +01:00
J. Nick Koston
cc31d77205
Use ulid_now instead of ulid_at_timestamp if no timestamp is passed ( #104226 )
...
* Use ulid_now instead of ulid_at_timestamp if no timestamp is passed
ulid_now is slightly faster than ulid_at_timestamp
* tweak usage
2023-11-19 22:27:24 -05:00
Michael Hansen
785618909a
Use webrtc-noise-gain for audio enhancement in Assist pipelines ( #100698 )
...
* Use webrtc-noise-gain instead of webrtcvad package
* Switching to ProcessedAudioChunk
* Refactor VAD and fix tests
* Add vad no chunking test
* Add test that runs audio enhancements
2023-09-25 20:03:50 -04:00
Marc Mueller
8b0fdd6fd2
Use asyncio.timeout [s-z] ( #98452 )
2023-08-15 14:34:18 +02:00
Franck Nijhof
868a5f377f
Ruff: isort don't split imports based on trailing comma ( #98162 )
2023-08-10 14:27:03 +02:00
Michael Hansen
33c7cdcdb3
Disconnect VoIP on RTCP bye message ( #95452 )
...
* Support RTCP BYE message
* Make RtcpState optional
2023-06-28 21:41:11 -04:00
Michael Hansen
65454c945d
Add VAD sensitivity option to VoIP devices ( #94688 )
...
* Add VAD sensitivity option to VoIP devices
* Use select entitiy for VAD sensitivity
* Add sensitivity to tests
* Add to assist pipeline tests
* Update homeassistant/components/assist_pipeline/select.py
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
* Update tests/components/voip/test_voip.py
---------
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-06-23 23:28:13 -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
Michael Hansen
1dcabae760
Don't skip chunk before speech ( #93825 )
2023-05-30 22:18:55 +02:00
Michael Hansen
aa78962a9a
Pass OPUS payload ID through VoIP ( #92421 )
2023-05-03 19:43:14 +02:00
Michael Hansen
b1d6f3afc0
Allow configuring SIP port in VoIP ( #92210 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-05-01 22:42:27 +02:00
Michael Hansen
c35aabe497
Add VoIP error tone ( #92260 )
...
* Play error tone when pipeline error occurs
* Play listening tone at the start of each cycle
2023-04-29 15:24:56 -04:00
Michael Hansen
8dfecac013
Time out TTS based on audio length ( #92032 )
...
* Time out TTS based on audio length
* Use async mock
2023-04-26 00:35:14 -04:00
Michael Hansen
ebabf504da
Play pre-recorded message if pipeline is misconfigured ( #91985 )
...
* Play pre-recorded message if pipeline is misconfigured
* Use voip_device
2023-04-24 21:48:40 -05:00
Michael Hansen
5a57602163
Wait for TTS before restarting pipeline ( #91962 )
2023-04-24 13:27:13 -04:00
Michael Hansen
5348ea3ac4
Add processing tone ( #91931 )
...
* Add processing tone
* Update homeassistant/components/voip/voip.py
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
* Update homeassistant/components/voip/voip.py
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
* Fix linting
* Fix tests
---------
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-04-23 21:28:56 -05:00
Paulus Schoutsen
f18056f0a4
Add a VoIP user ( #91884 )
...
* Add a VoIP user
* Fix tests
2023-04-22 23:44:13 -04:00
Michael Hansen
7fcf07c964
Ensure .pcm binary files do not have line endings changed ( #91881 )
2023-04-22 22:22:30 -04:00
Michael Hansen
8abd047e21
Rename raw audio files to .pcm ( #91879 )
2023-04-22 22:03:08 -04:00
Paulus Schoutsen
1eef4af493
Use configured voice in TTS output for assist pipeline ( #91878 )
2023-04-22 22:01:32 -04:00
Michael Hansen
5080654776
VoIP listening tone and "not configured" message ( #91762 )
...
* Play tone when starting a VoIP call
* Play audio message when call is rejected
* Add option to disable tone for tests
* Send RTP audio in executor to reduce jitter
* Don't start pipeline until speech
* Bump voip utils
2023-04-20 20:30:51 -04:00
Erik Montnemery
090f59aaa2
Make context a mandatory parameter for async_pipeline_from_audio_stream ( #91658 )
2023-04-19 09:30:29 -04:00
Michael Hansen
95d16c9829
VoIP audio queue ( #91577 )
...
* Clear audio queue after every conversation turn
* Stream STT audio when voice command starts
2023-04-17 22:51:14 -04:00
Paulus Schoutsen
bd22e0bd43
Allow picking a pipeline for voip devices ( #91524 )
...
* Allow picking a pipeline for voip device
* Add tests
* Fix test
* Adjust on new pipeline data
2023-04-17 12:09:11 -05:00
Paulus Schoutsen
2b6fd0df6a
VoIP: Add is active call binary sensor ( #91486 )
...
* Refactor VoIP integration for more entities
* Add active call binary sensor
* Add actually missing binary sensor files
* Improve test coverage
2023-04-16 22:59:05 -04:00
Erik Montnemery
4e80154ebe
Rename voice_assistant to assist_pipeline ( #91371 )
...
* Rename voice_assistant to assist_pipeline
* Fix tests
* Fix voip test
---------
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2023-04-13 17:25:38 -04:00
Paulus Schoutsen
0678ab4e45
Add VoIP entities ( #91320 )
...
* WIP
* Add VoIP entities to enable calls
* Mark voip entities as config only
* Remove commented code
2023-04-12 23:23:20 -04:00
Michael Hansen
78fec33b17
Voip integration ( #90945 )
...
* Media playback working
* Working on OPUS audio
* Before rollback
* Fix is_end
* First working pipeline
* Clean up
* Remove asserts
* Send HA version in SDP
* Use async_pipeline_from_audio_stream
* Use config flow with allowed IP
* Satisfy ruff
* Remove use of regex for SIP IP
* Use voip-utils
* Fix imports
* Add Pipeline to __all__
* Fix voice assistant tests
* Basic VoIP test
* Run hassfest
* Generate requirements
* Bump voip utils (missing requirement)
* Allow tts_options to be passed in to pipeline run
* Add config flow tests
* Update test snapshots
* More tests
* Remove get_extra_info
* Appeasing the codebot
2023-04-11 20:25:05 -04:00