alphacep / alphacep/vosk-api

Proper exception when language does not exist

Aperta
#1,246 1 commento 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

Hello,

Running Ubuntu 22.10.

Just installed with "pip3 install vosk".
Created the test_ffmpeg.py exact copy of the current one : https://github.com/alphacep/vosk-api/blob/master/python/example/test_ffmpeg.py.
When trying command python3 test_ffmpeg.py myvideo.mkv, it runs perfectly.

I have tried to put the French model in the directory where test_ffmpeg.py is (as in the video of the installation page / website).
Both with renaming as "model" or with its original name ("vosk-model-fr-0.22").
When running the command, it does not use the French model.
So I edited test_ffmpeg.py and changer en-us => fr-fr (line 12)
When trying the command again, I get this error message:
```
lang fr-fr does not exist
Exception ignored in:
Traceback (most recent call last):
File "/home/marc/.local/lib/python3.10/site-packages/vosk/__init__.py", line 60, in __del__
_c.vosk_model_free(self._handle)
AttributeError: 'Model' object has no attribute '_handle'
```
Can you help please?

Regards,
Marc

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.