Created
May 25, 2021 12:32
-
-
Save KaushikShresth07/bf4e58f9fc5a3b1c3d3340e54ef6a6d2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pyttsx3 | |
| engine = pyttsx3.init('sapi5') | |
| voices = engine.getProperty('voices') | |
| engine.setProperty('voices',voices[2].id) | |
| def Speak(audio): | |
| print(" ") | |
| print(f": {audio}") | |
| engine.say(audio) | |
| engine.runAndWait() | |
| print(" ") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment