alphacep / alphacep/vosk-api

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

Aperta
#1,453 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Jupyter Notebook
Stelle
15.1k
Fork
1.8k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### 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 ~)?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.