Apply 1 suggestion(s) to 1 file(s)
Co-authored-by: Twirre <s.a.meulenbelt@students.uu.nl>
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user