Questions tagged [pyttsx3]

pyttsx3 is a text-to-speech conversion library in Python. Unlike alternative libraries, it works offline, and is compatible with both Python 2 and 3.

pyttssx3 is an offline text-to-speech library for Python. It supports multiple TTS engines, including Sapi5, nsss, and espeak.

251 questions
0
votes
1 answer

ModuleNotFoundError: No module named 'certifi.core'

I am making an personal assistant named Kyle using SpeechRecognition and pyttsx3. I was trying to convert my python file to an executable using pyinstaller. I type in: pyinstaller --onefile --add-binary "C:\Users\Dr.…
0
votes
1 answer

I have a small problem with engine.runAndWait()

I have a program that's detects and recognizes faces, but thats not the point , while im trying to include "voice follower". engine = pyttsx3.init() engine.say("I will speak this text") engine.runAndWait() It is actually does saying and then after…
Daniel
  • 1
  • 1
0
votes
0 answers

Pyttsx3 not supporting python executable

I coded a simple program in python (Pyttsx3 module) that narrates any text entered by the user. So I converted this into an executable file so that I can use it on my desktop. when I tried running it the terminal open and closed nothing happened.…
0
votes
0 answers

Unable to run the jarvis1.exe file created from jarvis1.py using pyinstaller

Python version is 3.10 and pyinstaller is 4.7 I converted jarvis1.py into jarvis1.exe using pyinstaller --onefile jarvis1.py command. But when I run the exe file , this error flashes for a second and then it ends. I have also added the hidden…
Amisha Kirti
  • 132
  • 1
  • 9
0
votes
1 answer

pyttsx3 .runAndWait() slows down

I use the pyttsx3 library and it slows down the runAndWait(). What is the solution? PS: Pyttsx3 runAndWait() method gets stuck - I read it, it didn't help def speak(what): speak_engine.say(what) speak_engine.runAndWait() # stop! …
Alexander
  • 1
  • 1
0
votes
1 answer

Run Time error on using Threading in a while loop

I am working on Vision-Based American Sign Language Converter Application using MediaPipe and OpenCV in python. As you may know, in webcam, we use a while loop for continuous hand detection of our hand. Now the problem was that when I added audio…
0
votes
1 answer

pyttsx3 hangs up on converting big files to mp3

code: import os import glob import pyttsx3 engine = pyttsx3.init() file_pattern = '*.txt' file_name_list = [] if '*' in file_pattern: file_name_list.extend(glob.glob(file_pattern)) # speech rate engine.setProperty('rate', 600) rate =…
starcat
  • 3
  • 1
0
votes
1 answer

I am using the pyttsx3 API. I am creating filenames in for loop and adding mp3 extension. While files are saving, they are without the mp3 extension

Essentially, I am iterating through a list and want to save an mp3 file for each element in the list. The file for each element would basically be reading out the list element. The name it would be saved under is the text it reads + the mp3…
Anonymous
  • 21
  • 6
0
votes
0 answers

why is 'import pyttsx3 as RVB' throwing a SyntaxError?

I was trying to create a text-to-speech code like EVERYBODY ELSE but for some reason when I type in this code. #pip3 install pyttsx3 import pyttsx3 as RVB text_speech = pyttsx3.init() answer =…
0
votes
0 answers

How to use pyttsx3 together with pygame on Linux

I want to write a game using pygame that is able to produce text-to-speech output. I found the package pyttsx3, which works fine on its own, e.g. like this: import pyttsx3 engine = pyttsx3.init() engine.say("abc") engine.runAndWait() pygame on its…
0
votes
1 answer

pyttsx3 module is not giving any output

I'm having some troubles with the pyttsx3 module. At first I couldn't even initialize it and I got this error: File "/home/emanuele/.local/lib/python3.9/site-packages/pyttsx3/__init__.py", line 20, in init eng = _activeEngines[driverName] File…
0
votes
0 answers

How can I display program output to a text box in PyQt

I want to show all the print statements of takeCommand() function to on my UI's text label. eg. When we run the program it shows output in terminal usually like Listening... Recognizing... User said: I want the above line to be displayed on my UI's…
Shahzad07
  • 49
  • 4
0
votes
1 answer

accessing tkinter textbox input for pyttsx3

Trying to make a little screen reader in tkinter using pyttsx3. Here is the code first: import tkinter as tk import pyttsx3 jabberwocky = """ ’Twas brillig, and the slithy toves Did gyre and gimble in the wabe: All mimsy were the borogoves, …
egghead jr
  • 91
  • 10
0
votes
1 answer

how do i solve pyttsx3 error in pydroid3?

how to init pyttsx3 in pydroid3 when i tried to init it is raising OSError can anyone help to solve this code i tried this code import pyttsx3 engine = pyttsx3.init() engine.say("hello world") engine.runAndWait() but it raised this error File…
user17231840
0
votes
1 answer

can we copy someone else vocals and use as speak function in python?

hey there I am wondering import pyttsx3 engine = pyttsx3.init('sapi5') voices= engine.getProperty('voices') #getting details of current voice engine.setProperty('voice', voice[0].id) def speak(audio): engine.say(audio) engine.runAndWait() in…
Aditya Dev
  • 100
  • 1
  • 8