Skip to content

Commit 0dc5478

Browse files
committed
fix vad logic in whisperstt
Signed-off-by: Holger Hees <holger.hees@gmail.com>
1 parent b3fab00 commit 0dc5478

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • bundles/org.openhab.voice.whisperstt/src/main/java/org/openhab/voice/whisperstt/internal

bundles/org.openhab.voice.whisperstt/src/main/java/org/openhab/voice/whisperstt/internal/WhisperSTTService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,7 @@ private void backgroundRecognize(final int nSamplesStep, Locale locale, STTListe
422422
// run vad
423423
if (nProcessedSamples + nSamplesStep > nSamplesMax - nSamplesStep) {
424424
logger.debug("VAD: Skipping, max length reached");
425+
break;
425426
} else {
426427
VAD.@Nullable VADResult lastVADResult = vad.analyze(stepAudioSamples);
427428
if (lastVADResult.isVoice()) {

0 commit comments

Comments
 (0)