cs50/speech.py

6 lines
111 B
Python

import pyttsx3
engine = pyttsx3.init()
name = input("Name: ")
engine.say(f"hello {name}!")
engine.runAndWait()