Workaround for another kind of decoder corruption
This commit is contained in:
parent
0a577d1947
commit
1cb41b8309
|
@ -135,6 +135,11 @@ BoundedTimeline<string> recognizeWords(const AudioClip& inputAudioClip, ps_decod
|
|||
ps_seg_frames(it, &firstFrame, &lastFrame);
|
||||
result.set(centiseconds(firstFrame), centiseconds(lastFrame + 1), word);
|
||||
}
|
||||
if (result.size() == 2) {
|
||||
// The two recognized words are "<s>" and "</s>", which is really nothing.
|
||||
// This seems to trigger a similar decoder corruption.
|
||||
decoderIsStillUsable = false;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue