Commit graph

14 commits

Author SHA1 Message Date
Michael Hansen
785618909a
Use webrtc-noise-gain for audio enhancement in Assist pipelines ()
* 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] () 2023-08-15 14:34:18 +02:00
Michael Hansen
65454c945d
Add VAD sensitivity option to VoIP devices ()
* 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 () 2023-05-31 16:56:12 -04:00
Michael Hansen
aa78962a9a
Pass OPUS payload ID through VoIP () 2023-05-03 19:43:14 +02:00
Michael Hansen
b1d6f3afc0
Allow configuring SIP port in VoIP ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-05-01 22:42:27 +02:00
Michael Hansen
c35aabe497
Add VoIP error tone ()
* 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 ()
* Time out TTS based on audio length

* Use async mock
2023-04-26 00:35:14 -04:00
Michael Hansen
5348ea3ac4
Add processing tone ()
* 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 ()
* Add a VoIP user

* Fix tests
2023-04-22 23:44:13 -04:00
Michael Hansen
5080654776
VoIP listening tone and "not configured" message ()
* 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
Paulus Schoutsen
2b6fd0df6a
VoIP: Add is active call binary sensor ()
* 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 ()
* 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
Michael Hansen
78fec33b17
Voip integration ()
* 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