pyttsx

pyttsx pyttsx.init() not working

一世执手 提交于 2021-02-07 18:00:55
问题 So I am making a Chatbot/Virtual assistant with Python, I was searching for a text-to-speech engine for Python and found pyttsx. I downloaded it with pip (like this: sudo pip install pyttsx ) (btw I am using Linux ). I am using Python 2.7 (I tried with python 3.5 gave me the same error). I imported it and it worked but when I put (as this tutorial "told me" to https://pythonspot.com/en/speech-engines-with-python-tutorial/) engine = pyttsx.init() . The code looks like this: import pyttsx

pyttsx pyttsx.init() not working

我的梦境 提交于 2021-02-07 17:58:31
问题 So I am making a Chatbot/Virtual assistant with Python, I was searching for a text-to-speech engine for Python and found pyttsx. I downloaded it with pip (like this: sudo pip install pyttsx ) (btw I am using Linux ). I am using Python 2.7 (I tried with python 3.5 gave me the same error). I imported it and it worked but when I put (as this tutorial "told me" to https://pythonspot.com/en/speech-engines-with-python-tutorial/) engine = pyttsx.init() . The code looks like this: import pyttsx

pyttsx pyttsx.init() not working

ぃ、小莉子 提交于 2021-02-07 17:57:36
问题 So I am making a Chatbot/Virtual assistant with Python, I was searching for a text-to-speech engine for Python and found pyttsx. I downloaded it with pip (like this: sudo pip install pyttsx ) (btw I am using Linux ). I am using Python 2.7 (I tried with python 3.5 gave me the same error). I imported it and it worked but when I put (as this tutorial "told me" to https://pythonspot.com/en/speech-engines-with-python-tutorial/) engine = pyttsx.init() . The code looks like this: import pyttsx

AttributeError: module 'pyttsx3' has no attribute 'init'

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-05 08:04:23
问题 First of all, I'm using: Windows 10 Python 3.6.2 (but I've tried with Python 3.5.4 too) pyttsx3 module I'm trying to use pyttsx3 but I just can't initialize it, with the official code examples. My code (just like the examples from here and here): import pyttsx3 engine = pyttsx3.init() engine.say('Just a sample text.') engine.runAndWait() And the second line gives me this error: AttributeError: module 'pyttsx3' has no attribute 'init' I installed it with PIP: pip install pyttsx3 And I tried to

AttributeError: module 'pyttsx3' has no attribute 'init'

筅森魡賤 提交于 2021-02-05 08:03:32
问题 First of all, I'm using: Windows 10 Python 3.6.2 (but I've tried with Python 3.5.4 too) pyttsx3 module I'm trying to use pyttsx3 but I just can't initialize it, with the official code examples. My code (just like the examples from here and here): import pyttsx3 engine = pyttsx3.init() engine.say('Just a sample text.') engine.runAndWait() And the second line gives me this error: AttributeError: module 'pyttsx3' has no attribute 'init' I installed it with PIP: pip install pyttsx3 And I tried to

Get an audio file with HTTP GET and then play it in python 3. TTS in python 3?

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-29 05:04:01
问题 Basically what i want is TTS in python 3... I already tried pyttsx but aparently it only works with python 2 I already tried other things too... Now i'm trying with the api from voicerss.org but i can't figure out how can HTTP GET it and then play it with python with pyglet... here is my code so far: import pyglet import urllib3 http = urllib3.PoolManager() speechrequest = http.request('GET', 'http://api.voicerss.org/?key=04f49802d32d442ca997d4d2ea76d3d5&hl=pt-pt&c=wav&src=texto') speech =

Get an audio file with HTTP GET and then play it in python 3. TTS in python 3?

蹲街弑〆低调 提交于 2021-01-29 04:57:28
问题 Basically what i want is TTS in python 3... I already tried pyttsx but aparently it only works with python 2 I already tried other things too... Now i'm trying with the api from voicerss.org but i can't figure out how can HTTP GET it and then play it with python with pyglet... here is my code so far: import pyglet import urllib3 http = urllib3.PoolManager() speechrequest = http.request('GET', 'http://api.voicerss.org/?key=04f49802d32d442ca997d4d2ea76d3d5&hl=pt-pt&c=wav&src=texto') speech =

Python - TypeError: listen() missing 1 required positional argument: 'self'

ⅰ亾dé卋堺 提交于 2021-01-28 11:42:10
问题 I have been working on an AI in PyCharm but and I have seem to have encountered an error with speech_recognition trying to call a method to try to get audio input: /Users/waynedeng/Desktop/AI/venv/bin/python /Users/waynedeng/Desktop/AI/dawg_2.0.py Listening... Traceback (most recent call last): File "/Users/waynedeng/Desktop/AI/dawg_2.0.py", line 37, in <module> input = read_input() File "/Users/waynedeng/Desktop/AI/dawg_2.0.py", line 20, in read_input audio = speech.listen(source=source,