alphacep / vosk-api

Offline speech recognition API for Android, iOS, Raspberry Pi and servers with Python, Java, C# and Node
Apache License 2.0
7.37k stars 1.04k forks source link

```vosk-transcriber``` doesn't fail when an invalid language is requested #1487

Open yurivict opened 6 months ago

yurivict commented 6 months ago

For example:

$ vosk-transcriber --lang xx
INFO:root:Please specify input file or directory

The desired behavior:

$ vosk-transcriber --lang xx
Invalid language 'xx' requested. For the list of supported languages please run: vosk-transcriber --lang help