alphacep / alphacep/vosk-api

How many new words and phrases could be added in real time without effecting the whole recognition accuracy.

Ouverte
#1,453 3 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Jupyter Notebook
Étoiles
15.1k
Forks
1.8k
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

### Issue Title:
Questions about Adding Phrases in the Dynamic Graph Update

### Issue Description:
In this example, we demonstrate how to add phrases in the dynamic graph update using the following code snippet from the [Vosk API](https://github.com/alphacep/vosk-api/blob/master/python/example/test_words.py):

### Python
rec.SetGrammar('["one zero one two three oh", "four five six", "seven eight nine zero", "[unk]"]')
or:
rec = KaldiRecognizer(model, wf.getframerate(),'["one zero one two three oh", "four five six", "seven eight nine zero", "[unk]"]')
### C++
void Recognizer::UpdateGrammarFst(char const *grammar)

**My first question is:**
Do all those words ("one zero one two three oh," "four five six," "seven eight nine zero," "[unk]") need to be present in the lexicon HCL.fst (words.txt)? Should we create a phone sequence to enable the recognizer to handle these unknown words?

Is it possible to feed this list of sequence sentences or words from a file rather than hard-coding them as a list?

**My second question is:**
How many phrases can be added in real-time without significantly affecting the overall recognition accuracy (optimal number ~)?

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.