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

Python pyttsx, how to use external loop

In my program I need class(which can be some thread) to check some list like "say_list" and when other classes add some text to it, pyttsx say that text. I search in pyttsx docs and I find some external loops feature but I can not find example which…
destrat18
  • 197
  • 2
  • 14
0
votes
2 answers

python - error with pyttsx

When I run this code that is straight from the website import pyttsx engine = pyttsx.init() engine.say('Greetings!') engine.say('How are you today?') engine.runAndWait() I get this error : Traceback (most recent call last): File…
Aymen
  • 1
  • 3
0
votes
2 answers

cannot print and listen at the same time

I am writing a basic talking tom like code which listens to the person and repeats its audio along side i want it to display the text which the speaker has spoken. the problem I'm facing is i am not able to use the print and listen command…
0
votes
3 answers

Pyttsx not producing a sound

I'm trying to use pyttsx for text to speech on windows 7 but it does not produce any speech. Import pyttsx Engine=pyttsx.init('sapi5') Engine.say('hello') This is my code no error and exceptions are coming but there is no text to speech conversion
Steve
  • 134
  • 1
  • 15
0
votes
1 answer

pyttsx produces no sound

I am just creating a chatbot in Python. It's working well but I want to add pyttsx to this chatbot so that it could speak its output. My code is import aiml import sys import pyttsx engine = pyttsx.init() # Create a Kernel object. kern =…
user325923
  • 39
  • 1
  • 6
0
votes
1 answer

fetch data from text file in pyttsx python

Hello respected persons, I am trying to fetch data from a external text file with pyttsx package of python language. I will save text in txt file and how pyttsx can read that text from txt file and can speak? I am trying to do like this, import…
Aaditya Ura
  • 12,007
  • 7
  • 50
  • 88
0
votes
2 answers

Pyttsx for Python 3.4

I have been looking for several days for a version of pyttsx that works with Python 3 (3.4.2 specifically). I am yet to find a version that works. Does anyone know of one?
Th3Gam3rz
  • 171
  • 1
  • 3
  • 11
0
votes
2 answers

pywin32 and pyttsx error, trouble combining the two

i have pywin32 in my site packages and my pyttsx is in a separate folder. Is this the reason why i am getting the following error? import win32api, sys, os ImportError: DLL load failed: The specified module could not be found The code is as…
grove park
  • 86
  • 1
  • 1
  • 9
-1
votes
2 answers

pyttsx3 unknown voice id

I have tried for over 2 hours trying to figure this out, not 100% sure but i think it has to do with the fail in the sapi5.py module because i dont have the following voices installed: MSSAM =…
-1
votes
1 answer

voice Assistant in python - Unbound local error

I was trying to create a voice Assistant using some youtube video and I am getting this Error Exception has occurred: UnboundLocalError local variable 'command' referenced before assignment I am not getting why I'm getting this error and how should…
-1
votes
1 answer

want to change voice to Siri male in pyttsx3

import pyttsx3 engine = pyttsx3.init() voices = engine.getProperty('voices') for voice in voices: print (voice) if voice.languages[-1] == u'en_us': engine.setProperty('voice', voice.id) engine.say('Hello…
-1
votes
1 answer

I'm unable to install the pyttsx3 package

I tried various methods to solve this error. even downloaded the .whl file and then tried to run the command but every time it's the same error Any help from anyone would be really helpful Have a Look !!
-1
votes
1 answer

I am getting error in running a simple pyttsx3 example

Difficulty in using pyttsx3 in windows and rasbian with python 3.8 and 2.7 respectively when i am trying to run a simple basic pyttsx3 code it is giving an error and please suggest replacement for this package.I am trying to develop a personal…
-1
votes
1 answer

While installing pyttsx3 over python 3.8

ERROR: Command errored out with exit status 1: ERROR: Command errored out with exit status 1: command: 'c:\python\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] =…
-1
votes
3 answers

pyttsx3.init() will cause the program to crash, giving errors like 'ran out of input'. How do I fix this?

I get the "ran out of input error" when I run it directly. Can't copy paste it because it won't let me select the text for some reason. The other error I get, when running it through IDLE, is pyttx3 module not found. I can import it in other ide's…
Jack Benson
  • 107
  • 1
  • 8
1 2 3
12
13