Skip to content

Instantly share code, notes, and snippets.

@e96031413
Created December 28, 2019 07:35
Show Gist options
  • Save e96031413/ceedcd0e521c7303d6240e52806c8768 to your computer and use it in GitHub Desktop.
Save e96031413/ceedcd0e521c7303d6240e52806c8768 to your computer and use it in GitHub Desktop.
This script can help you ( Text to Speech )
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