alphacep / alphacep/vosk-api

First part of text returned on some lines missing using vosk-model-ja-0.22

未关闭
#1,133 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Jupyter Notebook
星标
15.1k
派生
1.8k
PR 合并指标
30 天内没有已合并 PR

描述

I'm using the vosk integration in SubtitleEdit (current 3.6.7). Basically, it works very well.
But I've found one issue.

I noticed when doing audio to text using Japanese big model (vosk-model-ja-0.22), text for the first part of some spoken lines will be missing. Maybe once in 20 lines or so.
Audio is clear enough in these cases, so I think vosk should have picked something up.
It usually happens in the first part of a spoken phrase. Text elsewhere basically seems to be recognized well.

I reported this issue with SubtitleEdit on [https://github.com/SubtitleEdit/subtitleedit/issues/6171] "First part of text returned on some lines missing in Japanese audio to text #6171"
Conclusion there was that it's a vosk issue.
So I want to ask about it here.

Then, I noticed something on different samples exhibiting the same problem. The above problem occurred if the full audio sample (~45 min.) was processed.
But when I clipped ~30 sec. of audio around the problem lines, and then ran vosk on them with SE, all the text was recognized. You can see the difference below:

Clip 1:
full ~45 min. audio processed:
![ep03 clip 1243 full mkv waveform](https://user-images.githubusercontent.com/102390147/188226604-5cd9bc62-3cde-4d88-96f5-4da91c1c3f03.png)

30 sec. audio clip processed:
![ep03 clip 1243 short mkv waveform](https://user-images.githubusercontent.com/102390147/188226702-0f97bd72-963e-4144-9af8-dc219b02b66f.png)

Clip 2:
full ~45 min. audio processed:
![ep03 clip 1749 full mkv waveform](https://user-images.githubusercontent.com/102390147/188226796-df5e4ef9-4b5b-4259-92e6-aefef750a4f8.png)

30 sec. audio clip processed:

![ep03 clip 1749 short mkv waveform](https://user-images.githubusercontent.com/102390147/188226844-06f51eb3-6851-4370-8360-30e907b29927.png)

So I wonder if the sample length has any bearing on the text result. Or some other explanation?
It would be helpful if these lines could be complete.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。