我正在开发Web api,但是当我在Ubuntu18.04上使用dotnet运行它时,它仅在http://localhost:5000上进行监听。 我将nginx用作反向代理并将HTTP重定向到https,但我认为问题出在红k。
答案 0 :(得分:0)
说您想监听端口5020
from win32com.client import Dispatch
Windows_Speak = Dispatch('SAPI.Spvoice')
Windows_Speak.Voice = speak.GetVoices().Item(2)
Windows_Speak.Rate = 3
print(speak.GetVoices().Item(2).GetDescription()) #just to see what voice is used
Windows_Speak.Speak('Tomato')