Git Product home page Git Product logo

chatterbot-voice's People

Contributors

gunthercox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chatterbot-voice's Issues

Static response despite what is being said

I tried running the example script and the only thing I get in response (both when I say something and otherwise) is Barca still at par than Madrid.

Any idea on what could be going wrong?

Chatterbot-voice has never worked for me

Working and loving it. There is something I want to change I just can’t decide where. Probably going to fork and from scratch to implement an idea alternative to the current project.

NameError: global name 'warnings' is not defined

/usr/local/lib/python2.7/dist-packages/chatterbot/storage/jsonfile.py:26: UnsuitableForProductionWarning: The JsonFileStorageAdapter is not recommended for production environments.
self.UnsuitableForProductionWarning
Traceback (most recent call last):
File "ca.py", line 7, in
output_adapter="chatterbot_voice.VoiceOutput",
File "/usr/local/lib/python2.7/dist-packages/chatterbot/chatterbot.py", line 38, in init
self.input = utils.initialize_class(input_adapter, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/chatterbot/utils.py", line 33, in initialize_class
return Class(**kwargs)
File "/usr/local/lib/python2.7/dist-packages/chatterbot_voice/voice.py", line 22, in init
self.attempt_jack_control_start()
File "/usr/local/lib/python2.7/dist-packages/chatterbot_voice/voice.py", line 51, in attempt_jack_control_start
warnings.warn(
NameError: global name 'warnings' is not defined

how to fix it

Error due to espeak module not found

Hi,

I am on Windows 8 trying to make the example.py work.
I installed espeak from it's web page. Didn't seem to make much difference.

I get the following error:

Traceback (most recent call last):
  File "[Sanitised File Path]\RiskPolicyBotMain - Voice.py", line 109, in <module>
    bot_input = bot.get_response(None)
  File "C:\Users\USER_NAME\My Work Local\Anaconda3\lib\site-packages\chatterbot\chatterbot.py", line 125, in get_response
    return self.output.process_response(response, session_id)
  File "C:\Users\USER_NAME\My Work Local\Anaconda3\lib\site-packages\chatterbot_voice\voice.py", line 100, in process_response
    self.speak(statement.text)
  File "C:\Users\USER_NAME\My Work Local\Anaconda3\lib\site-packages\chatterbot_voice\voice.py", line 81, in speak
    from espeak import espeak
ModuleNotFoundError: No module named 'espeak'

Any suggestions?

Best,
Praveen.

No module named input

Hi gunther, when I'm trying to run the example.py file, I'm getting this error:

InputError: No module named input

But this is happening only when I use the VoiceInput and VoiceOutput in the input and output adapters, if I use any example of Chatterbot it runs fine so I'm not really sure what is happening.

Thanks.

Edit: I'm running this in a Raspberry Pi 3, it possible this issue is because it hasn't a micro plugged?

process_response() takes 2 positional arguments but 3 were given

Hi, when i run the example, it happened to the following problem
File "C:/Users/IBM_ADMIN/.spyder2-py3/temp.py", line 26, in
bot_input = bot.get_response(None)
File "C:\Users\IBM_ADMIN\Anaconda3\lib\site-packages\chatterbot\chatterbot.py", line 223, in get_response
return self.output.process_response(response, confidence)
TypeError: process_response() takes 2 positional arguments but 3 were given

Can you figure out this problem and how to solve it? Many thanks.

installing issue

I just installing it with pip install chatterbot-voice no problem with installation but how to run the code so i can talk to the bot?

No module named speech recognition

Trying to install chatterbot-voice via 'pip install chatterbot-voice'

and I get this error:
ImportError: No module named 'speech_recognition'

Running ChatterBot on Linux Server

Hello All.
I just became fascinated with creating chatbots and extending them not too long ago. I have tried numerous code bases for starting points and this one seems to be the most flexible. Before I go any further I am wondering is it possible and if so how could I develop a chat bot with TTS and Speech Recognition without a display.

'festival' is not recognized as an internal or external command, operable program or batch file.

Hi,

I am using Windows 10 and Python 3.7.
When I run the example file I am getting following error:-
'festival' is not recognized as an internal or external command, operable program or batch file.
example_console

I have followed the below link to install festival in windows-
http://homepages.inf.ed.ac.uk/jyamagis/misc/Practice_of_Festival_speech_synthesizer.html

festival is working fine, please see below screen shot-
festival_console

Let me know if I am missing anything here.

Dialog

How can i see the dialog, the text?

global name 'WindowsError' is not defined on OSX

from chatterbot import ChatBot
from chatterbot.trainers import ChatterBotCorpusTrainer
bot = ChatBot(
... "Tiberius",
... input_adapter="chatterbot_voice.VoiceInput",
... output_adapter="chatterbot_voice.VoiceOutput",
... )
File "~/lib/python2.7/site-packages/chatterbot_voice/voice.py", line 49, in attempt_jack_control_start
except WindowsError:
NameError: global name 'WindowsError' is not defined

Anything special to do on OSX, to make it work?

Example.py Error?????

Traceback (most recent call last):
File "C:/Users/Craig/PycharmProjects/untitled2/s.py", line 7, in
"chatterbot_voice.Voice"
File "C:\Python27\lib\site-packages\chatterbot\chatterbot.py", line 36, in init
self.add_adapter(adapter, **kwargs)
File "C:\Python27\lib\site-packages\chatterbot\adapters\adaptation.py", line 33, in add_adapter
adapter = NewAdapter(**kwargs)
File "C:\Python27\lib\site-packages\chatterbot_voice\voice.py", line 15, in init
subprocess.call(['jack_control', 'start'])
File "C:\Python27\lib\subprocess.py", line 522, in call
return Popen(_popenargs, *_kwargs).wait()
File "C:\Python27\lib\subprocess.py", line 710, in init
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 958, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified


This is the error I received after running your example program on windows (python 2.7.10) after installing chatterbot-voice through pip.

Error due to Espeak "ModuleNotFoundError: No module named 'espeak'"

i tried installing espeak as mentioned
still facing the same issue.
~\Anaconda3\lib\site-packages\chatterbot\chatterbot.py in get_response(self, input_item, conversation_id)
127 def generate_response(self, input_statement, session_id):
128 """
--> 129 Return a response based on a given input statement.
130 """
131 self.storage.generate_base_query(self, session_id)

~\Anaconda3\lib\site-packages\chatterbot_voice\voice.py in process_response(self, statement, confidence)
96
97 def process_response(self, statement, confidence=None):
---> 98 self.speak(statement.text)
99 return statement

~\Anaconda3\lib\site-packages\chatterbot_voice\voice.py in speak(self, statement)
77 return statement.text
78
---> 79 from eSpeak import eSpeak
80 from eSpeak import core as eSpeak_core
81

ModuleNotFoundError: No module named 'espeak'

Help me with this.
Many Thanks.

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.