From 6656a7e664edceec074edc028e65a4d269b29588 Mon Sep 17 00:00:00 2001 From: ivan-digital <42473865+ivan-digital@users.noreply.github.com> Date: Fri, 14 Aug 2026 10:24:09 +0200 Subject: [PATCH] test(sdk): start VAD timeout after fixture synthesis --- .../androidTest/kotlin/audio/soniqo/speech/SileroVadTest.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sdk/src/androidTest/kotlin/audio/soniqo/speech/SileroVadTest.kt b/sdk/src/androidTest/kotlin/audio/soniqo/speech/SileroVadTest.kt index 6faead3..327efcf 100644 --- a/sdk/src/androidTest/kotlin/audio/soniqo/speech/SileroVadTest.kt +++ b/sdk/src/androidTest/kotlin/audio/soniqo/speech/SileroVadTest.kt @@ -55,6 +55,10 @@ class SileroVadTest { @Test fun synthesizedSpeechTriggersSpeechStartedAndEnded() = runBlocking { + // Fixture generation is deliberately outside the event timeouts. On a + // loaded emulator Kokoro can take longer than 30 seconds, but VAD has + // not received any audio yet and therefore has nothing to detect. + val audio = synthesize("The quick brown fox jumps over the lazy dog.") val pipeline = SpeechPipeline(SpeechConfig(modelDir = modelDir, useNnapi = false)) try { pipeline.start() @@ -69,7 +73,6 @@ class SileroVadTest { } } - val audio = synthesize("The quick brown fox jumps over the lazy dog.") for (offset in audio.indices step 512) { val end = minOf(offset + 512, audio.size) val chunk = audio.sliceArray(offset until end)