无法点播Microsoft Azure-CognitiveServices-语音?

时间:2019-01-29 16:31:01

标签: python pip text-to-speech microsoft-cognitive microsoft-speech-api

请按照此处的指导安装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上进行了尝试,并且还安装了 Visual Studio 2017的Microsoft Visual C ++ Redistributable 。如果有人对如何安装此模块有任何想法,将不胜感激。

这是pypi链接:https://pypi.org/project/azure-cognitiveservices-speech/

1 个答案:

答案 0 :(得分:2)

azure-cognitiveservices-speech版本1.2.0仅适用于64位MacOS,Linux和Windows的Python 3.5、3.6和3.7。您的Python版本是什么?检查它是否是64位而不是32位:python -c“ import struct; print(struct.calcsize('P')* 8)”