Python 技术篇-3行代码实现语音朗读,pywin32库实现语音朗读

我们只需要安装 pywin32 这个库就可以了。
pywin32库安装教程

代码也非常的简单。

import win32com.client

speaker = win32com.client.Dispatch("SAPI.SpVoice")
speaker.Speak("How are you?")

喜欢的点个赞❤吧!

posted on 2019-02-13 19:21  小蓝枣  阅读(44)  评论(0)    收藏  举报