Answers for "how to make program speak in python"

3

how to make python speak

#pip install pyttsx3
import pyttsx3
# simple code... you need to create the engine once but you need to add
#runAndWait everytime you use the engine
engine = pyttsx3.init()
engine.say('HELLO THERE')
engine.runAndWait()
Posted by: Guest on May-26-2021
0

how to make python speak

from win32com.client import Dispatch

speak = Dispatch("SAPI.SpVoice")

speak.Speak("Ciao")
Posted by: Guest on March-26-2020
0

how to make program speak in python

import pyttsx3

#create a function ,  so that you can easily call whatever your want program to speak

def speak(arg):
  
  engine = pyttsx3.init()
  engine.say(arg)
  engine.runAndWait()
  
 speak("hello there")
Posted by: Guest on May-01-2022

Python Answers by Framework

Browse Popular Code Answers by Language