Category : pyttsx3

I’m making an assistant to control/manage 3D printers. It works when it’s just a text based assistant, but since I’ve tried to add speaking and listening to the bot things aren’t working very well. Why is the assistant not speaking the responses? When I run the code with all of the listening and speaking functions ..

Read more

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 function for the detected gesture using pyttx3 the webcam always got struck ..

Read more

I’m making a virtual assistant project and when I say something and the command is done pyttsx3 is not waiting enough time to listen to the speech I’m saying import pyttsx3 import speech_recognition as sr import time listener = sr.Recognizer() engine = pyttsx3.init() voices = engine.getProperty(‘voices’) engine.setProperty(‘voice’ , voices[1].id) rate = 160 engine.setProperty(‘rate’, rate) engine.say(‘Hi, ..

Read more

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 = input(hello) text_speech.say(answer) text_speech.runAndWait() it says this in the terminal [Running] python -u "/var/folders/7_/5j5858n91nzbx2yqlpq_w07m0000gn/T/tempCodeRunnerFile.python" File "/var/folders/7_/5j5858n91nzbx2yqlpq_w07m0000gn/T/tempCodeRunnerFile.python", line 2 import pyttsx3 as RVB ^ ..

Read more

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() However, I can’t get it to work together with pygame: import pygame import pyttsx3 pygame.init() engine = pyttsx3.init() engine.say("abc") ..

Read more

I tries to convert my .py file to.exe which uses PYTTSX3 module through PyInstaller command and also imported hidden imports like pyttsx3.drivers, pyttsx3.drivers.sapi5. Commmand used – pyinstaller .SCREENER.PY –hidden-import pyttsx3.drivers.sapi5 –hidden-import babel.numbers –hidden-import pythoncom SCREENER is the name of my Python File But yet I’m getting this Error in my .exe file. Please suggest me ..

Read more