-
-
Save bygreencn/3440eb7a127d458519e4a00355c27d48 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