gunthercox / chatterbot-voice

A example of verbal communication using ChatterBot
MIT License
106 stars 75 forks source link

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

Closed jason0luck closed 5 years ago

jason0luck commented 6 years ago

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.

gunthercox commented 6 years ago

You're using Windows, correct? If I recall correctly, the espeak library isn't installed on Windows by default.

I've tried to search for a solution but have only come up with inconclusive answers. It seems that installing espeak on windows may entail a number of challenges.


I'm open to suggestions if you know of a better library for handline speech synthesis. I've be happy to make or accept changes to switch to it.

jason0luck commented 6 years ago

i hope we can resolve this with java script library for speech synthesis instead of using python packages .

mravunni commented 6 years ago

@gunthercox did you get any alternative for espeak

gunthercox commented 6 years ago

The pyttsx3 library by @nateshmbhat seems to be a promising solution for cross platform text to speech.

mravunni commented 6 years ago

do we get any working example with pyttsx3 for chatterbot?

gunthercox commented 6 years ago

I do not currently have a working example using pyttsx3.

gunthercox commented 5 years ago

I've switched the project away from using eSpeak in favor of Festival. Festival has a number of advantages including the ability to use customized voices.

I'm going to close this ticket off since eSpeak is no longer being used.