diff --git a/SpeechToText.py b/SpeechToText.py new file mode 100644 index 00000000000..12ee402667a --- /dev/null +++ b/SpeechToText.py @@ -0,0 +1,14 @@ +import pyttsx3 + +engine = pyttsx3.init() + +voices = engine.getProperty("voices") +for voice in voices: + print(voice.id) + print(voice.name) + +id ="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\Tokens\TTS_MS_EN-US_DAVID_11.0" +engine.setProperty("voices",id ) +engine.setProperty("rate",165) +engine.say("jarivs") # Replace string with our own text +engine.runAndWait() \ No newline at end of file