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:17 +00:00
parent 1372fe89f6
commit 98dd2637c0

View File

@@ -74,6 +74,9 @@ async def simulate_streaming_with_probabilities(streaming, probabilities: list[f
@pytest.mark.asyncio @pytest.mark.asyncio
async def test_voice_activity_detected(audio_in_socket, audio_out_socket, streaming): async def test_voice_activity_detected(audio_in_socket, audio_out_socket, streaming):
"""
Test a scenario where there is voice activity detected between silences.
"""
speech_chunk_count = 5 speech_chunk_count = 5
probabilities = [0.0] * 5 + [1.0] * speech_chunk_count + [0.0] * 5 probabilities = [0.0] * 5 + [1.0] * speech_chunk_count + [0.0] * 5
await simulate_streaming_with_probabilities(streaming, probabilities) await simulate_streaming_with_probabilities(streaming, probabilities)