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.35k stars 1.04k forks source link

The error of the exe application in python #1581

Closed max32323 closed 1 month ago

max32323 commented 1 month ago

When I try to make a python application using the vosk library, this is highlighted: Traceback (most recent call last): File "exemple.py", line 2, in File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module File "voicehelper.py", line 3, in import vosk File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module File "vosk__init.py", line 36, in File "vosk\init__.py", line 27, in open_dll File "os.py", line 1118, in add_dll_directory FileNotFoundError: [WinError 2] Не удается найти указанный файл: 'C:\Users\User\AppData\Local\Temp\_MEI81202\vosk'

As I understand it, the problem is in a file that I do not have, but I did not touch or delete anything. I have downloaded the library. How can I fix this bug?(I have no errors when running in pytharm)

nshmyrev commented 1 month ago

Same as https://github.com/alphacep/vosk-api/issues/602