vad: use exponential smoothed volume to improve speech detection

This commit is contained in:
Aleix Conchillo Flaqué
2024-05-17 17:13:31 -07:00
parent 455ec4f1fd
commit 3e13678f23
3 changed files with 27 additions and 16 deletions

View File

@@ -13,10 +13,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added `VADParams` so you can control voice confidence level and others.
- `VADAnalyzer` now uses an exponential smoothing to avoid sudden changes.
- `VADAnalyzer` now uses an exponential smoothed volume to improve speech
detection. This is useful when voice confidence is high (because there's
someone talking near you) but volume is low.
### Fixed
- Fixed an issue where TTSService was not pushing TextFrames downstream.
- Fixed issues with Ctrl-C program termination.
- Fixed an issue that was causing `StopTaskFrame` to actually not exit the