alphacep / alphacep/vosk-api

Recogniser with grammar: German and Spanish model does hardly ever produce unknown

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

描述

With the small English model, the recognizers with grammar behave as expected: `[unk]` is recognized if a sentence is spoken that is clearly something different from what is specified in the grammar. However, with the small German and Spanish models [1], the recognizers do hardly ever return `[unk]` when a sentence is spoken, even if it has clearly nothing to do with the specified grammar. It looks to me like the problem is that **the recognizer gives immediately back some result without analyzing the whole word group (even though there are no silences between the words)**.

For example, I said `"was möchtest du als nachtes tun"` and analyzed it with a recognizer with the following grammar: `["terminus", "punkt", "klein", "ausruf", "frage", "doppelpunkt", "zurück", "sprache", "komma", "vor", "gross", "paragraf", "buchstaben", "ziffern", "strichpunkt", "[unk]"]`. The recognizer switched three times the partial result (from `"buchstaben"` to `"gross"` to `strichpunkt`) and then gave back the the result `"gross"`, after having processed only the beginning of the word group (probably about 20%), despite absence of silence between the words of the spoken sentence.

@nshmyrev , how can one avoid that the recognizer gives back results without analyzing the whole word group?

Thanks!!

[1] "vosk-model-small-de-0.15" and "vosk-model-small-es-0.22"

贡献指南

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

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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