alphacep / alphacep/vosk-api

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

オープン
#1,017 コメント 14 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。