按照此处的指南安装 microsoft azure 文本转语音 SDK:https : //docs.microsoft.com/en-us/azure/cognitive-services/speech-service/quickstart-python#install-the-speech-sdk
它说要运行
pip install azure-cognitiveservices-speech
,但不幸的是这会返回
找不到满足 azure->cognitiveservices-speech 要求的版本(来自版本:)未找到与 >azure-cognitiveservices-speech 匹配的发行版
我试过在 ==1.2.0 的末尾添加版本#,并添加--pre。所以:
python -m pip install azure-cognitiveservices-speech --pre
python -m pip install azure-cognitiveservices-speech==1.2.0.
我能够使用python -m pip install azure并且它下载了一大堆模块,但不是认知服务模块。我已经尝试过 python 2.7 和 python 3.7,我还安装了Microsoft Visual C++ Redistributable for Visual Studio 2017。如果有人对如何安装此模块有任何想法,将不胜感激。
这是 pypi 链接:https ://pypi.org/project/azure-cognitiveservices-speech/
python pip text-to-speech microsoft-speech-api microsoft-cognitive