Skip to content

Instantly share code, notes, and snippets.

@bygreencn
Forked from e96031413/text2speech.py
Created February 29, 2020 09:34
Show Gist options
  • Save bygreencn/3440eb7a127d458519e4a00355c27d48 to your computer and use it in GitHub Desktop.
Save bygreencn/3440eb7a127d458519e4a00355c27d48 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