GithubHelp home page GithubHelp logo

Pocketshinx about voice_chatbot HOT 2 CLOSED

desklop avatar desklop commented on May 29, 2024
Pocketshinx

from voice_chatbot.

Comments (2)

 avatar commented on May 29, 2024

Скорее всего ошибка где то здесь за что отвечает строчка
hmm=os.path.join(model_path, 'zero_ru.cd_cont_4000'),
???

from voice_chatbot.

Desklop avatar Desklop commented on May 29, 2024

Я запускал этот код в виртуальной машине, в докер-контейнере, на просто отдельной машине и всё работало. Ищите ошибку у себя в путях.

hmm=os.path.join(model_path, 'zero_ru.cd_cont_4000') - эта строка отвечает за путь к акустической модели. Если у вас никак не получается положить её в требуемое место - скопируйте акустическую модель в папку с проектом и передайте полный путь к ней: hmm=os.path.dirname(os.path.realpath(__file__)) + '/zero_ru.cd_cont_4000'

UPD: Если смотреть по описанию ошибки - PocketSphinx не видит словарь. Вот эта строка об этом говорит:

File "speech_to_text.py", line 45, in init
dic=os.path.join(model_path, 'ru_bot.dic')

Что бы исправить, сделайте с ней тоже самое, что и с акустической моделью (и перечитайте README.md, там есть этот момент - копирование акустической, языковой модели и словаря в нужное место).

from voice_chatbot.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.