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
1
vote
0 answers

I cant install pyttsx3

So I'm trying to install pyttsx3 and it says it is downloaded but when I go to import it says there is no module C:\Users\gabri>pip install pyttsx3 Requirement already satisfied: pyttsx3 in…
1
vote
0 answers

Function doesn't work the second time its called in a thread (Pyttsx module)

EDIT: DRASTICALLY reduced the code. On python 2.7 , windows xp Here is a small program, that uses the Pyttsx module to do some text to speech. Working: speaks a particular string of text.A new thread ( runNewThread() ) is created which handles the…
gyaani_guy
  • 3,191
  • 8
  • 43
  • 51
1
vote
2 answers

pyttsx3 varying time between spoken words

Is there a way to decrease the time between two engine.say()s in pyttsx3? I want my program to speak words individually so that I can vary the time between each word, but I have not found a way to do this. Here is my current code which does not…
Mason Choi
  • 101
  • 2
  • 12
1
vote
1 answer

Pyttsx3 does not read text in other languages

When I try to read text with pyttsx3, it only reads the English text and it does not read any text which is in some other language. Here's my code: import pyttsx3 engine = pyttsx3.init() engine.say("'Hello world' in Chinese:…
Lenovo 360
  • 569
  • 1
  • 7
  • 27
1
vote
2 answers

Python pyttsx3 throws an error on startup

Python 3.6 There is a code: import pyttsx3 engine = pyttsx3.init() engine.say("Hello World!") engine.runAndWait() At startup, it gives an error: Traceback (most recent call last): File…
1
vote
0 answers

How do i create a robotic voice using pyttsx3

i am working on a project where we have to build and program a robot, my task is making the robot talk, i used pyttsx3 to convert text to speech. I wanted the robot to sound like the ones in science-fi movies but pyttsx3 is limited to the voices i…
Silvio M
  • 11
  • 1
1
vote
1 answer

Loop for voice assistant

Today I tried writing a voice assistant in Python for the first time. Using speech_recognition, pyttsx3, fuzzywuzzy, datetime, time, os. And soon faced with such a problem: My assistant executes the command only once, and then refuses to work. I…
HTTPs
  • 19
  • 5
1
vote
1 answer

Pyttsx3 Will only Speak Once

When running the following program: import multiprocessing import pyttsx3 from multiprocessing import Process class _TTS: def __init__(self): self.engine = pyttsx3.init('espeak') self.engine.setProperty('rate', 175) def…
Hankp
  • 47
  • 5
1
vote
2 answers

Not getting any audio output during Text to speech with Pyttsx3 module on Pycharm

My python version is 3.7 and Pyaudio version is 2.7 Program is totally running during engine init, but I can't use sipas5 for windows so I have used dummy import pyttsx3 engine = pyttsx3.init("dummy") voices =…
Hrithik Jaiswal
  • 74
  • 1
  • 2
  • 9
1
vote
1 answer

Python error key 'sapi5' even after installing pyiwin32

I am making my own assistant like siri or google assistant but in the beginning i stucked. I installed pyiwin32 but still getting key error 'sapi5' please help me i review this kind of problem in stack overflow where they said to install pyiwin32…
Smit Parmar
  • 178
  • 2
  • 11
1
vote
1 answer

Making a talking list for a vending machine, using python and pyttsx3. How to go back forth through a list?

I going to use a raspberry pi4 with three buttons, 'back', 'repeat', 'next'. So far, with pyttsx3, I have defined a function for number 66 in the vending machine like so: def no66(): engine.say("Mrs Freshlys Cupcakes, 66") …
jjang
  • 45
  • 6
1
vote
1 answer

pip install pyttsx3 throws error python setup.py egg_info

C:\Windows\system32>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…
4pt_plyr
  • 51
  • 6
1
vote
3 answers

Pyttsx3 is not installing on Windows

I have python 3.7.6 installed and when I try to install pyttsx3 on my windows 10, I had an error, that I need mac os, but it installing on another computer with windows. I have tried to reinstall python and cleared pip cache, but it didn't…
1
vote
1 answer

JackShmReadWritePtr Error in Pyttxs3 File

import pyttsx3 engine = pyttsx3.init() # object creation """ RATE""" rate = engine.getProperty('rate') # getting details of current speaking rate print (rate) #printing current voice rate engine.setProperty('rate', 125) …
1
vote
2 answers

Sound issue using pyttsx3 and python in virtual enviroment

So basically I am building a python virtual assistant software in a virtual environment and I want to use pyttsx3 to convert text to speech. The first issue is that if i run pyttsx3.init() I get an error o = self.data[key]() KeyError: None During…
Udendu Abasili
  • 1,163
  • 2
  • 13
  • 29