Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RHVoice eror #3

Closed
ghost opened this issue Nov 21, 2018 · 2 comments
Closed

RHVoice eror #3

ghost opened this issue Nov 21, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Nov 21, 2018

[i] Выберите вариант работы бота:
1. train - обучение модели seq2seq
2. predict - работа с обученной моделью seq2seq
3. predict -ss - включено озвучивание ответов с помощью RHVoice
4. predict -sr - включено распознавание речи с помощью PocketSphinx
5. predict -ss -sr - включено озвучивание ответов и распознавание речи
Введите цифру: 4
[i] Загрузка параметров сети из data/net_model.txt и data/net_final_weights.h5
2018-11-21 19:01:24.488971: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
[i] Инициализация языковой модели...
Traceback (most recent call last):
File "bot.py", line 239, in
main()
File "bot.py", line 218, in main
predict(True, False)
File "bot.py", line 136, in predict
sr = SpeechRecognition('from_microphone')
File "/home/lavrenkov/Voice_ChatBot/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 273, in init
this = _pocketsphinx.new_Decoder(*args)
RuntimeError: new_Decoder returned -1

@Desklop
Copy link
Owner

Desklop commented Nov 21, 2018

Нужно положить акустическую модель в /usr/local/lib/python3.5/dist-packages/pocketsphinx/model. Подробнее про это можно найти в статье на хабре https://habr.com/post/351376/

P.S. Это ошибка не RHVoice, а PocketSphinx.

@Desklop Desklop closed this as completed Nov 21, 2018
@ghost
Copy link
Author

ghost commented Nov 25, 2018

Что делать если Python 3.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant