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

Pyttsx3 worked earlier but not now

In december, 2019, my pyttsx3 module was working fine with no error. After few months I uninstalled Python, But in May 2020 I installed it again. But this time, wierd errors came... My os is win10Pro , Python 3.7(earier it was the same), IDE is…
Shakhyar Gogoi
  • 104
  • 1
  • 2
0
votes
3 answers

Problem with pyttsx3 module not working in Visual Studio and Jupyter Notebook

I have the following code: import pyttsx3 engine = pyttsx3.init() engine.say("I will speak this text") engine.runAndWait() Note: I have already installed the pyttsx3 module using the command pip install pyttsx3 Errors: 1. Visual Studio Traceback…
Laxman Patel
  • 1
  • 1
  • 4
0
votes
2 answers

I can't change the voice in pyttsx3

engine = pyttsx.init() voices = engine.getProperty('voices') for voice in voices: engine.setProperty('voice', voice.id) engine.say('The quick brown fox jumped over the lazy dog.') engine.runAndWait() I tried this for loop from original…
Centrius
  • 3
  • 1
  • 3
0
votes
3 answers

unable to install pyttsx3 (text to speak module )

I am unable to install pyttsx3 package using pip. I tried pip install pyttsx3 but was unable to install it. C:\Users\yashr\Desktop\SOFTWARES\brother> pip install pyttsx3 Collecting pyttsx3 Using cached…
0
votes
1 answer

python text to speech using pyttsx not playnig sount at client side

#!/usr/bin/python3 import pyttsx3 engine = pyttsx3.init() engine.say("I will speak this text") engine.runAndWait() When i am running this above code on my server CentOS 7, it is showing no output. I just want to know how would I get sound at client…
0
votes
1 answer

i am making a program of virtual assistant but i found this error

Basically I am trying to make a program of virtual assistant in my windows 10 laptop but when I run the below script I found a very big error. and I am confused so i want a help for below code. I am using version python 3.8 in windows 10. I am…
0
votes
1 answer

ModuleNotFoundError when using pyttsx3

I am trying to use the python offline text to speech library pyttsx3. When I run the following script: import pyttsx3 engine = pyttsx3.init('sapi') voices = engine.getProperty('voices') engine.setProperty('voice', voices[1].id) engine.say("hello…
Kayshika
  • 9
  • 4
0
votes
4 answers

While installing pyttsx3: Command errored out with exit status 1

$ pip install pyttsx3 Collecting pyttsx3 Using cached pyttsx3-2.80-py3-none-any.whl (39 kB) Collecting pyobjc>=2.4 Using cached pyobjc-6.1-py3-none-any.whl (2.9 kB) Collecting comtypes; "win32" in sys_platform Using cached comtypes-1.1.7.zip…
0
votes
1 answer

Is there a way to randomly generate TTS voices using Python?

Is there a way to randomly generate voices using Python? I have no idea where to start, but my best guess would be doing something along these lines: class CustomVoice(voice) def __init__(self, pitch): self.pitch = pitch I cannot seem…
0
votes
0 answers

after converting from pyttsx3 to .exe file by pyinstaller nothing is executing

I have written a simple code by using Tkinter and pyttsx3 which convert text to speech. but after converting to .exe file nothing is opening and showing error "the application could not be run." I have converted so many projects from .py to .exe,…
0
votes
1 answer

How can i pause a thread until another thread has stopped its action in python?

I have two threads concurrently running, speechRecognition and speakBack. Both of these threads are run in while loops (while True: #do something). Speech recognition is constantly waiting for microphone input. Then, once it is received, it saves…
0
votes
0 answers

Why does the code terminates after once the user asks query

This is a code for a virtual assistant this code terminates after the user speaks once. I need this code to iterate till the user says exit. I tried using 'while True' after 'if name == "main": wishme()' it runs, but in that case it does not…
Sahil
  • 39
  • 5
0
votes
1 answer

Why is my code not reaching the While Loop to register my Voice Assistant Wakeword?

I'm creating a Voice Assistant using Python. I'm using pyttsx3 for Text-to-Speech and I have a wakeword set up to activate the Voice Assistant. I'm using the Voice Assistant to do things such as read my calendar and such in a While Loop. But…
0
votes
1 answer

Using 32 bit voices in pyttsx3

Is there a way to use 32 bit voices instead of 64 bit voices in pyttsx3? or with any other text to speech module? I have tried editing the registry to move my 32 bit voice over to 64 bit, and I have gotten the voice to show up in the 64 bit…
Mark.B
  • 31
  • 1
  • 5
0
votes
2 answers

i am trying to convert text to speech using pyttsx3 in python. but i am getting the error maybe on driverName

i am trying to convert text to speech using pyttsx3 in python. but i am getting the error maybe on driverName. Here is my code import pyttsx3 engine = pyttsx3.init() engine.say("I will speak this text") engine.runAndWait() Here is the Output which…