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

using french accent with pyttsx

I am trying to use pyttsx for text-to-speech. I would like it to tell the french 'é' : # -*- coding: utf8 -*- import pyttsx engine = pyttsx.init() voice = engine.getProperty('voices')[26] # the french voice engine.setProperty('voice',…
1
vote
1 answer

AttributeError: module 'pyttsx3' has no attribute 'init'

First of all, I'm using: Windows 10 Python 3.6.2 (but I've tried with Python 3.5.4 too) pyttsx3 module I'm trying to use pyttsx3 but I just can't initialize it, with the official code examples. My code (just like the examples from here and…
JustAnotherCoder
  • 111
  • 3
  • 11
1
vote
1 answer

pyttsx: stop recording once started

I found a fork of pyttsx that lets you record. https://github.com/hick/pyttsx/tree/master/pyttsx Here is my code: engine =pyttsx.init() voices = engine.getProperty('voices') engine.setProperty('voice', voices[0].id) #change index to change…
jason
  • 3,811
  • 18
  • 92
  • 147
1
vote
2 answers

PYTTSX Error: Cannot find module named drivers

I am still a novice when it comes to python, and recently I have attempted to construct a personal assistant. I am using the PyTTSX module, but when I attempt to initialize the package, I receive this error: ****File…
lawre6b3
  • 89
  • 1
  • 3
  • 6
1
vote
0 answers

TTS can't find Acapela Infovox voices (Windows 10)

I am trying to work on speech synthesis with the danish voices from Acapela group. My OS is Windows 10. Specifically, I need to use the voices for Pyttsx, and these voices are the only decent ones around for danish. I downloaded a trial version of…
roberta
  • 131
  • 1
  • 12
1
vote
1 answer

Python error: No module named 'engine'

I am trying to use the SpeechRecognition STT module for an AI i am coding and i'm also using Pyttsx but i get this error. File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pyttsx/__init__.py", line 18, in…
Sergei Glimis
  • 390
  • 2
  • 5
  • 17
1
vote
0 answers

Android QPython pyttsx requiring ctypes

I have used pyttsx on my desktop but new to using it on an android mobile phone. I recently downloaded Pyttsx pip install pyttsx I ran a little tester on the QPython console but came across an error I haven't seen before. >>>import pyttsx >>>engine…
python_starter
  • 1,509
  • 1
  • 11
  • 18
1
vote
0 answers

Raspberry pie static audio IO issue

I am a newbie in raspberry and linux. I have set the external USB sound card as the primary sound card of the raspberry pi 3 but I am unable to get a voice output. For the output, earphone with mic is being used. The code is not showing any error…
HAS BE
  • 11
  • 1
1
vote
3 answers

How to set property: age, gender or language in PYTTS (Python)

I'm using TTS in python. (pyttsx library). I read in documentation that I can get properties rate, voice, voices, volume. In documentation is only about that I can set property only for rate, voice, volume. It means that I can't set properties…
degath
  • 1,530
  • 4
  • 31
  • 60
1
vote
2 answers

pyttsx - loop makes runAndWait() cut off

I want to write a script which will read a list of words as it prints them to the screen. import pyttsx engine = pyttsx.init() words = ["here","are","some","test","words"] for i in words: engine.say(i) print i …
Charles Noon
  • 559
  • 3
  • 10
  • 16
1
vote
1 answer

Get an audio file with HTTP GET and then play it in python 3. TTS in python 3?

Basically what i want is TTS in python 3... I already tried pyttsx but aparently it only works with python 2 I already tried other things too... Now i'm trying with the api from voicerss.org but i can't figure out how can HTTP GET it and then play…
DiogoSaraiva
  • 1,515
  • 2
  • 15
  • 19
0
votes
2 answers

ModuleNotFoundError: No module named 'engine' while running pyttsx

When I run this code I always get this error: ModuleNotFoundError: No module named 'engine'. import pyttsx engine = pyttsx.init() engine.say('hello world') Does anyone know why this is happening and how to fix it?
0
votes
0 answers

ModuleNotFoundError even the module is installed via latest version of pip

I'm trying to run a program on speech recognition.I already installed pyttsx3. While I'm running the Program, Im getting : ModuleNotFoundError: No module named 'pyttsx3'
0
votes
0 answers

Attribute error: comtypes has no module named ISpeech

Traceback (most recent call last): File "C:\Users\ammar\AppData\Local\Programs\Python\Python310\lib\site-packages\pyttsx3\__init__.py", line 20, in init eng = _activeEngines[driverName] File…
0
votes
2 answers

Python text to voice with pyttsx3

So i wanted to convert a text into a mp3 file using pyttsx3 i wanted to apply a voice for the file but I was getting this error: Traceback (most recent call last): File…