alphacep / vosk-server

WebSocket, gRPC and WebRTC speech recognition server based on Vosk and Kaldi libraries
Apache License 2.0
896 stars 243 forks source link

How can i specify chinese phrase list #111

Closed lijiandong121 closed 3 years ago

lijiandong121 commented 3 years ago

I specify the phrase list [上, 下,左, 右], but I got this WARNING (VoskAPI:KaldiRecognizer():kaldi_recognizer.cc:89) Ignoring word missing in vocabulary: '\u4e0a' WARNING (VoskAPI:KaldiRecognizer():kaldi_recognizer.cc:89) Ignoring word missing in vocabulary: '\u4e0b' WARNING (VoskAPI:KaldiRecognizer():kaldi_recognizer.cc:89) Ignoring word missing in vocabulary: '\u5de6' WARNING (VoskAPI:KaldiRecognizer():kaldi_recognizer.cc:89) Ignoring word missing in vocabulary: '\u53f3'

However, I can get these words(上下左右) in result when I didn't specify the phrase list. so I suppose the vocabulary should includes these words already. But why I still get these warning? Dose anyone could help me?

nshmyrev commented 3 years ago

This should be fixed now, thanks for the report!