Category : pyttsx3

SO here I imported pyttsx3 and wanted my ai to speak but it gave me a error full error here https://drive.google.com/file/d/12fa4KdSQ6JiEYjJHljc3JuLiFW-eYtKD/view?usp=sharing import pyttsx3 Assistant = pyttsx3.init(‘sapi.5’) voices = Assistant.getProperty(‘voices’) print(voices) Assistant.setProperty(‘voices’,voices(1).id) def Speak(audio): print(" ") Assistant.say(audio) print(" ") Assistant.runAndWait() Speak(‘Hello sir, I am Y.P.A’) Source: Python..

Read more

I use the pyttsx3 library and it slows down.Run and wait() 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! speak_engine.stop() speak.start("Разработчик скоро добавит эту функцию") Source: Python..

Read more

I have this code for a BINGO announcer: import random import pyttsx3 as tts import time from tkinter import * engine = tts.init() nums = [i for i in range(1, 61)] random.shuffle(nums) voices = engine.getProperty(‘voices’) engine.setProperty(‘voice’, voices[0].id) engine.setProperty(‘rate’, 105) engine.setProperty(‘volume’, 1.0) running = True def startrun(): for num in nums: while running: num = str(num) ..

Read more

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