Apply 1 suggestion(s) to 1 file(s)

Co-authored-by: Twirre <s.a.meulenbelt@students.uu.nl>
This commit is contained in:
Pim Hutting
2025-11-19 11:50:07 +00:00
parent 6436fc12c8
commit 1372fe89f6

View File

@@ -53,6 +53,12 @@ def patch_settings(monkeypatch):
async def simulate_streaming_with_probabilities(streaming, probabilities: list[float]):
"""
Simulates a streaming scenario with given VAD model probabilities for testing purposes.
:param streaming: The streaming component to be tested.
:param probabilities: A list of probabilities representing the outputs of the VAD model.
"""
model_item = MagicMock()
model_item.item.side_effect = probabilities
streaming.model = MagicMock()