Merge pull request #191 from pipecat-ai/aleix/fix-silero-vad

vad: fix silero vad frame processor
This commit is contained in:
Aleix Conchillo Flaqué
2024-05-30 23:25:52 +08:00
committed by GitHub
2 changed files with 8 additions and 2 deletions

View File

@@ -5,6 +5,12 @@ All notable changes to **pipecat** will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Fixed
- Fixed SileroVAD frame processor.
## [0.0.24] - 2024-05-29
### Added

View File

@@ -37,8 +37,6 @@ class SileroVADAnalyzer(VADAnalyzer):
repo_or_dir="snakers4/silero-vad", model="silero_vad", force_reload=False
)
self._processor_vad_state: VADState = VADState.QUIET
logger.debug("Loaded Silero VAD")
#
@@ -73,6 +71,8 @@ class SileroVAD(FrameProcessor):
self._vad_analyzer = SileroVADAnalyzer(sample_rate=sample_rate, params=vad_params)
self._audio_passthrough = audio_passthrough
self._processor_vad_state: VADState = VADState.QUIET
#
# FrameProcessor
#