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
2 answers

how to stop pyttsx3 in middle of speech?

I want to stop pyttsx3. I tried killing multiprocess but then the response time gets slow I dont know why. Here is the code: import pyttsx3 from multiprocessing import Process def speakfunc(audio): engine = pyttsx3.init() voices =…
Prashasth Nair
  • 167
  • 2
  • 12
0
votes
0 answers

Using pyttsx3 with tkinter causes program to stop and close, any ideas?

I installed the pyttsx3 libary to convert text to speech. And it works really great, until I want to use it in combination with tkinter. What happens that the program just closes, without any errors or what so ever. Weird enough it goes through the…
Osman P.
  • 45
  • 7
0
votes
2 answers

I am not able to change voices using pyttsx3 module! Any indexing returns me DAVID only

I am trying to build a virtual assistant. I need a voice called PaulM which is present in my regedit. But any index returns me only DAVID voice, not even ZIRA or any other. import pyttsx3 import datetime import speech_recognition as sr engine =…
0
votes
2 answers

recogniser.listen(source) doesn't stop listening

I am making a python script which listens to your voice then executes functions based on what you've said. I have just started making a 'wake-up word' and the code looks like this: while True: try: with sr.Microphone() as source1: …
0
votes
1 answer

pyttsx3: OSError 2147221008 CoInitialize has not been called

I have a Flask app which picks up an image file(s), uses Tesseract OCR to extract the text then converts that text to mp3 using pyttsx3. It saves both .txt and mp3 files in the same directory. The first time it works fine. However, run it again…
tad321
  • 49
  • 6
0
votes
1 answer

Voice Assistant using python Showing loop error

HI I am trying to make a voice assistant in python with wake command, but its giving loop error. I am new to pyttx3 so unable to find where i can fix this. There is some loop error which i am unable fix, please help to make it working. import…
Sonu
  • 314
  • 2
  • 9
0
votes
0 answers

"CoInitialize has not been called" error when running code for a second time using Python Flask Win64 (error arises from pyttsx3)

I have a strange error in my Python Flask app running on VS Code in Windows 10. The app runs as intended for the first time, however whenever I run the app for a second time, I get this error: "CoInitialize has not been called". I've tried using…
Leon
  • 1
  • 1
0
votes
1 answer

Why does my code stuck after speak function?

I try to create a Voice Assistant on python3 This is my function Speak (with pyttsx): def speak(what): print("Gosha: " + what) speak_engine.say( what ) speak_engine.runAndWait() speak_engine.stop() in the main body it works fine,…
0
votes
3 answers

How can I interrupt pyttsx3 and playsound?

I'm trying to make an assistant but when the user wants to play a song, it keeps playing it until finishes. I want it to stop when the user presses a key. It is same for the engine.say(), too. I couldn't find a way to interrupt actions on their…
0
votes
3 answers

importing pyttsx3 in python3.8 and found an error

I downloaded pyttsx3 in command prompt I have a big error this the code: import pyttsx3 engine = pyttsx3.init() engine.say("I will speak this text") engine.runAndWait() output error: ''' = RESTART:…
0
votes
1 answer

Python 3.8 error: ModuleNotFoundError: No module named 'pyttsx3'

So essentially I'm trying to figure out why a module, called "pyttsx3" is installed, but for some reason in VS code it refuses to run and gives me the error code ModuleNotFoundError: No module named 'pyttsx3', however when I look at my list of…
WIldflower42
  • 83
  • 1
  • 8
0
votes
1 answer

Pyttsx3 Changing Voice

I'm trying to experiment with different voices but can't seem to change the voice. Research gave me this example: import pyttsx3 engine = pyttsx3.init('espeak') engine,setProperty('voice', 'english+f1') engine.setProperty('rate',…
Hankp
  • 47
  • 5
0
votes
1 answer

I complied my python code using cx_Freeze, code is working good before it & now it is showing this error can anyone help me?

I complied my code using cx_Freeze and before that code is working good in VS Code every time I try to run program they are showing error this is actual error --------------------------- cx_Freeze: Python error in main…
0
votes
2 answers

Error while trying to install pyttsx3 library

I was trying to install pyttsx3 using pip on windows 10 when I get this error plus a very fat red code that I included Collecting comtypes; platform_system == "Windows" Using cached comtypes-1.1.7.zip (180 kB) Using legacy setup.py install for…
Anan Saadi
  • 328
  • 4
  • 21
0
votes
1 answer

I want fix a pyttsx3 program

I have recently install pyttsx3 and I use the code: import pyttsx3 engine = pyttsx3.init() engine.say("I will speak this text") engine.runAndWait() But when I run this program, I have some problems: enter image description here I don't how to…