【发布时间】:2016-12-30 07:37:11
【问题描述】:
很抱歉问你这样一个白痴问题,但是阅读了关于这个主题的所有帖子,我仍然被我的问题所困扰。我使用 pyoxford 是因为我想使用 microsoft bing 语音识别。但是每次我尝试使用我的程序时,响应都是:
HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Access Denied
这是我的程序:
import pyoxford
text="welcome"
api=pyoxford.speech("client id","Client secret")
binary=api.text_to_speech(text)
with open("voice.wav","wb") as f:
f.write(binary)
recognized =api.speech_to_text("voice.wav")
if text==recognized:
print("bravo")
这里是pyoxford的文档。
我认为问题出在我的id_client 或我的client secret。我试过了:
(id_client=Bing speech preview key1 / client_secret=bing speech preview key 2)
(id_client=Bing speech preview key2 / client_secret=bing speech preview key 1)
(id_client=my name / client_secret=bing speech preview key 1)
(id_client=microsoft data market account id / client_secret=bing speech preview key 1)
感谢您的帮助!
【问题讨论】:
标签: client speech-recognition bing microsoft-cognitive