【问题标题】:Microsoft Bing speech recognition, What is Cliend-id and Client secret?Microsoft Bing 语音识别,什么是 Client-id 和 Client Secret?
【发布时间】: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


【解决方案1】:

感谢您的询问。客户端 ID 可以是您的应用名称,客户端密钥是您在注册时获得的订阅密钥。

【讨论】:

    猜你喜欢
    • 2021-07-28
    • 1970-01-01
    • 1970-01-01
    • 2017-09-08
    • 1970-01-01
    • 1970-01-01
    • 2021-03-12
    • 2011-10-18
    • 1970-01-01
    相关资源
    最近更新 更多