Questions tagged [pyttsx]

pyttsx is a Python package supporting common text-to-speech engines on Mac OS X, Windows, and Linux.

pyttsx is a package supporting common engines on Mac OS X, Windows, and Linux.

References:

186 questions
0
votes
1 answer

pyttsx setup on pycharm

I am wondering if I can use pyttsx with PyCharm. I have installed it via terminal and it works in the terminal python shell. I have tried, though Im not sure this is the correct way, but going into PyCharm/Preferences and gone to project…
user9311010
  • 79
  • 11
0
votes
1 answer

I am getting error when using pyttsx3.2.6 library

I am new to python, I am trying to use python offline text to speech library pyttsx3. While i am running following script import pyttsx3 engine = pyttsx3.init() engine.say("I am talking now "); engine.setProperty('rate',100) …
Swapnil Deo
  • 241
  • 1
  • 3
  • 16
0
votes
1 answer

Stop time from saying 07 minutes and just 7 in Pyttsx3

import pyttsx3 import time time = time.strftime("%M minutes past %I") engine = pyttsx3.init() engine.setProperty('rate',200) engine.say("Hi Tom"); engine.say("The time is" + time); engine.runAndWait(); When running this it will say "Hi Tom, the…
Tom
  • 31
  • 1
  • 4
0
votes
1 answer

Use pyttsx in PyQt

I am making Gui for my chatbot in pyqt but i have a bit problem in this area of code. def __init__(self): super(Window, self).__init__() self.setGeometry(50, 50, 500, 300) self.setWindowTitle("Chatbot 0.3") def…
0
votes
0 answers

Can't make pyttsx speak the ';' symbol

I'm developing a code using pyttsx, and it's working great. But i'm having this small problem where I need it to speak the ; and possibly other symbols in the future such as . Is there any way that I can make it work, like any flag I need to pass to…
0
votes
1 answer

Pyttsx can't convert text to apeech

I have following piece of code. Which does the text to speech conversion using pyttsx. sys.stdout.write("> ") #sys.stdout.flush() classify(sentence = sys.stdin.readline()) while True: sentence = sys.stdin.readline() #input sentence …
Tauseef_Ahmed
  • 343
  • 3
  • 8
  • 18
0
votes
1 answer

Cannot install pyttsx3

Using python.exe, I have trouble installing pyttsx3 in python 3.5. I get the following error: >>> import pip >>> pip.main (['install','pyttsx3']) Collecting pyttsx3 Downloading pyttsx3-2.6.zip Complete output from command python setup.py…
0
votes
0 answers

pip3 calls older Python versions on Mac OS X

I am trying to install pyttsx3 using pip3. When I enter pip3 install pyttsx3, I get the following: MacBook-Pro:~ CaptStephan$ pip3 install pyttsx3 Traceback (most recent call last): File "/Users/CaptStephan/anaconda/bin/pip3", line 11, in…
0
votes
1 answer

how to change voice on pyttxs using voice.ID?

I know that this question is asked a lot(i've been browsing through dozens of questions like mine), but i'm not able to find a solution. I know that using voices = engine.setProperty('voice', 'id') should change the voice, but using voices =…
Alex Coronas
  • 468
  • 1
  • 6
  • 21
0
votes
2 answers

Pyttsx: AttributeError: 'module' object has no attribute 'init'

Hi to everyone and thanks in advance import pyttsx engine = pyttsx.init() engine.say('Hello World') engine.runAndWait() And I get this error: Traceback (most recent call last): File "C:\Users\xxx\eclipse\workspace\Ai_Project\AI\Ai_Brain.py", line…
Jim Noulis
  • 13
  • 3
  • 6
0
votes
1 answer

Python text to speech not finishing the sentence

So, I'm trying to create a talking engine with pyttsx in python3, when I first call the function to say something it works fine, if I call it again, it just says the first word of the sentence and nothing happens. import pyttsx class…
Simeon Aleksov
  • 1,275
  • 1
  • 13
  • 25
0
votes
0 answers

Subtitle Text-To-Speech

I am using pyttsx and some threading to read subtitles. I want the timing to be accurate. However with the current code my speech is getting to far ahead. Not that it is needed but the .srt I'm using is Sub SRT sample: 1 00:00:01,000 -->…
0
votes
1 answer

pyttsx python to read wikipedia api

I would like to get python pyttsx to read extracts from Wikipedia. This works but not entirely as it prints out the wiki extracts but it does not says, it just repeat my variable (question). I guess because the variables are not global and only…
0
votes
1 answer

How to initiate an instance of pyttsx from within a class?

I would like to make an instance from pyttsx inside a class and have a settings function to change the speech rate. But the init is not working properly as it gives the following error message: AttributeError: TTSengine instance has no attribute…
KubiK888
  • 4,377
  • 14
  • 61
  • 115
0
votes
1 answer

Is it possible to infer how long a phrase will take to speak in pyttsx?

I have a list of phrases, and I want to know how long each phrase will take at a given rate, dynamically, so I can spread them out evenly over some time period. I am currently leveraging started-utterance and finished-utterance to time it, speaking…
Matthew Moisen
  • 16,701
  • 27
  • 128
  • 231