Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #program #speak #python
ADD COMMENT
Topic
Name
4+9 =