1
我很抱歉地問你這樣一個白癡問題,但是閱讀所有關於這個話題的帖子,而且我仍然堅持我的問題。我正在使用pyoxford因爲我想使用微軟bing語音識別。但每次我試圖用我的程序時,迴應是:微軟Bing語音識別,什麼是Cliend-id和客戶端密碼?
HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError:401客戶端錯誤:拒絕訪問
下面是我的程序:
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或我的客戶端祕密。我試過了:
(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 API for Project Oxford API]可能出現重複(http://stackoverflow.com/questions/30085058/client-id-for-project-oxford-speech-api) –