Created
December 28, 2019 07:35
-
-
Save e96031413/ceedcd0e521c7303d6240e52806c8768 to your computer and use it in GitHub Desktop.
This script can help you ( Text to Speech )
This file contains 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 win32com.client | |
speaker = win32com.client.Dispatch("SAPI.SpVoice") | |
while 1: | |
print('Enter the Word') | |
#可用中文、英文 | |
s = input( ) | |
speaker.Speak(s) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment