При попытке использования вылазит ошибка, в чем косяк всё стоит верно!
python3 speech_to_text.py
[i] Загрузка языковой модели... Traceback (most recent call last):
File "speech_to_text.py", line 101, in
main()
File "speech_to_text.py", line 94, in main
sr = SpeechRecognitionclass('from_microphone')
File "speech_to_text.py", line 45, in init
dic=os.path.join(model_path, 'ru_bot.dic')
File "/usr/local/lib/python3.6/dist-packages/pocketsphinx/init.py", line 208, in init
super(LiveSpeech, self).init(**kwargs)
File "/usr/local/lib/python3.6/dist-packages/pocketsphinx/init.py", line 90, in init
super(Pocketsphinx, self).init(config)
File "/usr/local/lib/python3.6/dist-packages/pocketsphinx/pocketsphinx.py", line 275, in init
this = _pocketsphinx.new_Decoder(*args)
RuntimeError: new_Decoder returned -1
При попытке использования вылазит ошибка, в чем косяк всё стоит верно!
python3 speech_to_text.py
[i] Загрузка языковой модели... Traceback (most recent call last):
File "speech_to_text.py", line 101, in
main()
File "speech_to_text.py", line 94, in main
sr = SpeechRecognitionclass('from_microphone')
File "speech_to_text.py", line 45, in init
dic=os.path.join(model_path, 'ru_bot.dic')
File "/usr/local/lib/python3.6/dist-packages/pocketsphinx/init.py", line 208, in init
super(LiveSpeech, self).init(**kwargs)
File "/usr/local/lib/python3.6/dist-packages/pocketsphinx/init.py", line 90, in init
super(Pocketsphinx, self).init(config)
File "/usr/local/lib/python3.6/dist-packages/pocketsphinx/pocketsphinx.py", line 275, in init
this = _pocketsphinx.new_Decoder(*args)
RuntimeError: new_Decoder returned -1