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

Need to run 2 functions at the same time but, but they only run one after another

I have 2 functions def Print_Out(string): typing_speed = Engine.getProperty('rate') #wpm for c in string: print(c, end='') time.sleep(random.random()*10.0/typing_speed) print('') Which will print text slowly at 200…
Litinum
  • 21
  • 1
  • 4
0
votes
3 answers

RuntimeError: run loop already started in pyttsx

I am creating a DIY virtual assistant for fun and exercise in python. I run into a problem when trying to use engine.say in a thread and then use it again in my main program. I already tried to use engine.endLoop() and other possible solutions from…
Jim Noulis
  • 13
  • 3
  • 6
0
votes
1 answer

Pass facial recognition data to another python script

I am going to start on a python project where I'm making a voice assistant using pyttsx and I'm thinking it would be a cool feature to integrate facial recognition into the assistant. I just wanted to ask that if I make a python script for face…
0
votes
1 answer

python pyttsx3 error -- _pickle.UnpicklingError: invalid load key, '\x00'

i am trying to convert text to speech using pyttsx3 in python. but iam getting the error -- _pickle.UnpicklingError: invalid load key, '\x00'. it worked once. later it didn't my code import pyttsx3 engine = pyttsx3.init() engine.say("I will speak…
0
votes
2 answers

program keeps executing first if condition

I'm trying to build a speech recognition app in python,everything works fine but,when I'm executing program the first If condition always executes no matter what the input is. import speech_recognition as sr from gtts import gTTS import os from…
0
votes
1 answer

Can I use a print() function and the speak or say(as in pyttsx3 module) at the same time?

I'm trying to figure out a way so that the text that gets printed on the screen with the print() function also gets spoken at the same time. I am currently using the pyttsx3 module, but I don't see how I can do that. I didn't knew much about what I…
0
votes
2 answers

How to print a line before it is spoke after compilation?

I want to print a line before it is spoke. When I run the program in IDLE, it works fine. But after compilation, the text is spoke first and then printed. Can anyone help me with it? I tried different ways to type the same code but it didn't…
0
votes
0 answers

How to pause and resume in pyttsx3?

I am making a pdf reader and am using pyttsx3 for TTS. But i want it to have a "play and pause" like feature but i wasn't able to do this with pyttsx3.I have tried to take the location of where it stops,when "pause" button is clicked by the user, by…
Tom
  • 100
  • 8
0
votes
2 answers

Why can't I compile a script that contains pyttsx3?

I have been working using pyttsx3 on win7 64bit python 3.4.3. Everything is good with the .py script I made using pyttsx3 module (works fine alone). The problem comes when I compile it with pyinstaller. I got an error saying "pyttsx3.drivers not…
Tom
  • 100
  • 8
0
votes
2 answers

How do i change accent?

How do i change the accent in pyttsx3? I've successfuly tried to change the voice and the rate at which it delivers the speech. import…
0
votes
1 answer

Python two things at the same time with threading

I'm creating a small program, just for fun, that opens programs and do things like that. I'm doing a Wikipedia search and the program will read it out and I want the text to be written out to the screen by MessageBoxW. I want this two thing to…
Koska
  • 121
  • 1
  • 1
  • 14
0
votes
1 answer

gTTS /python/ - can you text message the .mp3 file in your script?

twilio api says it only handles mp4 for audio. Anyone have a solution to save python text to speach as .mp3 or .mp4 and text said audio file or a call and the mp3 audio plays.
0004
  • 1,156
  • 1
  • 14
  • 49
0
votes
1 answer

trying to edit tts package in aeneas python

I started working with aeneas for python, I'm running the code on an ubuntu machine I wanted to change the default tts -espeak- to another tts like macos $python -m aeneas.tools.execute_task\ ara.mp4 ara.xml\…
M Ezzat
  • 11
  • 2
0
votes
2 answers

cannot change voice in pyttsx3 using setProperty

I want tamil voice in python text to speech but I cannot change voice from default to any other languages. I tried this code import pyttsx3 engine = pyttsx3.init() voices = engine.getProperty('voices') for voice in voices: if voice.id ==…
user6882962
0
votes
0 answers

Returning audio using os.system Python FIXED

I would like to return audio using os.system because, in PyCharm, it returns the error: "Traceback (most recent call last): File "/Users/Milo/Desktop/python/Joe.py", line 5, in import pyttsx File…
user9311010
  • 79
  • 11