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
32
votes
4 answers

python text to speech using pyttsx

I want to use my raspberry pi to announce some text. i have installed pyttsx but not able to use it.i am using python2.7 my program: import pyttsx engine= pyttsx.init() engine.setProperty('rate',70) voices=engine.getProperty('voices') for voice in…
user007
  • 451
  • 2
  • 5
  • 10
12
votes
4 answers

How to make pyttsx module's voice go slower

My code: import pyttsx3 import random engine = pyttsx3.init() words = ['hello', 'word'] engine.say(random.choice(words)) #Say these words slower I don't want it to go really slow just slow enough to be easy for a non native speaker to…
reanuk
  • 117
  • 1
  • 2
  • 7
12
votes
4 answers

ImportError: No Module named 'driver' in pyttsx

I am trying to run a voice program in Python 3.5.2 and with pyttsx library. But I've faced up with lots of problems. First one is about engine. When I run the command import pyttsx, compiler gave me the error like below: ImportError: No module named…
Prometheus
  • 1,522
  • 3
  • 23
  • 41
8
votes
6 answers

How to change the voice in pyttsx3?

This code is working but I'm only able to switch between the voices which came preInstalled in Microsoft Windows. These voices are "Microsoft David Mobile" and "Microsoft Zira Mobile". Later I installed "Microsoft Kalpana Mobile" and set it as the…
7
votes
1 answer

Installing pyttsx3 on Linux Mint

I installed successfully pyttsx3 with pip install pyttsx3 and I wrote the following code: import pyttsx3 def speak(text): engine = pyttsx3.init() engine.say(text) engine.runAndWait() text = 'hello' speak(text) When I run the code I…
Garde Des Ombres
  • 173
  • 1
  • 3
  • 12
6
votes
8 answers

Pyttsx3 voice gender (female)

I tested out the text-to-speech module i.e pyttsx3 and it worked fine however I'm not getting a female voice when printing out a text. Any suggestions in changing the gender from male to female? By the way, I'm on raspberry pi and am using a Linux…
jelly_bean
  • 89
  • 1
  • 1
  • 7
6
votes
0 answers

BadPrototypeError: Objective-C expects 1 arguments, Python argument has 2 arguments

I am working with the python module pyttsx for text to speech and when I run the code, I get this error: File "Practice_File.py", line 2, in engine = pyttsx.init() File "/Library/Python/2.7/site-packages/pyttsx/__init__.py", …
Ajax1234
  • 69,937
  • 8
  • 61
  • 102
6
votes
5 answers

No module named Win32com.client error when using the pyttsx package

Today, while surfing on Quora, I came across answers on amazing things that python can do. I tried to use the pyttsx Text to Speech Convertor and that gave me an No module named Win32com.client error. There are many answers on this error but most of…
burglarhobbit
  • 1,860
  • 2
  • 17
  • 32
5
votes
1 answer

Why can't I change voice in pyttsx3?

I want to make a new project with pyttsx3, but I can't choose a voice. In general, I need a set of Russian voices, so I installed the RHVoice packages, but the module does not want to see individual voices, showing only languages. Help, please, how…
DGDays
  • 76
  • 12
5
votes
2 answers

Python keyerror 'sapi5'

One question of this type is previously asked but is not very helpful. I am using version Python3.6 in Windows 10 OS. I am getting an error, KeyError: 'sapi5' and During handling of the above exception, another exception occurred. My code…
Utpal Gaurav
  • 105
  • 1
  • 1
  • 12
5
votes
5 answers

Python 3.6 ModuleNotFoundError: No module named 'pyttsx3'

I have absolutely no idea what can be the problem. I did the pip installer (pip install pyttsx3) and re-installed the JetBrains PyCharm, but it still not working.
Koska
  • 121
  • 1
  • 1
  • 14
4
votes
7 answers

pyttsx3 initialization error, can't use pyttsx3

I was having some problems when using the .getproperty('voices') attribute in pyttsx3. So I decided to uninstall it and then re-install it using PIP to see if that may fix the problem. Previous link to when I had the .getproperty('voices') error:…
saiffarid
  • 43
  • 1
  • 2
  • 9
4
votes
2 answers

Pyttsx isn’t showing installed languages on windows 10

I am trying to use pyttsx3 to say French text. However, only English is available. Following the advice of How to change the voice in pyttsx3?, I tried to install the French speech pack as explained here…
Silver Duck
  • 581
  • 1
  • 5
  • 18
4
votes
2 answers

How to use pyttsx in a python thread

I am working with pyttsx3 for text-to-speech. I realized that I can use it within a thread (or I am doing something wrong). Do you know why? Code Example: from threading import Thread import pyttsx3 def myfunc(): engine = pyttsx3.init() …
4
votes
4 answers

pyttsx pyttsx.init() not working

So I am making a Chatbot/Virtual assistant with Python, I was searching for a text-to-speech engine for Python and found pyttsx. I downloaded it with pip (like this: sudo pip install pyttsx ) (btw I am using Linux). I am using Python 2.7 (I tried…
Victor Ocampo
  • 378
  • 2
  • 6
  • 15
1
2 3
12 13