Client ID for Project Oxford Speech API

好久不见. 提交于 2019-12-23 10:08:47

问题


I'd like to test Microsoft Project Oxford Speech recognition API, but I don't know where or how to get the client_id.

I'm trying to test Search API. First, I'm trying to get a token to use the service:

curl -d -i "https://oxford-speech.cloudapp.net/token/issueToken?grant_type=client_credentials&client_id=123&client_secret=456scope=https%3A%2F%2Fspeech.platform.bing.com"
{ "statusCode": 401, "message": "Access denied due to invalid subscription key. Make sure you are subscribed to an API you are trying to call and provide the right key." }

I have primary and secondary keys, but I can't find client_id. Can someone help?


回答1:


See here

// Note: Sign up at http://www.projectoxford.ai to get a subscription key. Search for Speech APIs from Azure Marketplace.
// Use the subscription key as Client secret below. Authentication auth = new Authentication("Come up with a short ClientId", "Client Secret");

More instructions here http://www.projectoxford.ai/doc/general/subscription-key-mgmt




回答2:


  1. goto the following link Subscribe to speech control and subscribe to speech recognition control...
  2. register a new app using this link and here you can give the CLIENT ID of your choice which will be later used in the app..
  3. finally goto the following link [www.microsoft.com/cognitive-services/en-us/subscriptions] sign in with a Microsoft account and find subscription key for any any api you wanna use and use this key as CLIENT SECRET
  4. Hope this will help as I have tested this and it works perfectly for me...
  5. third link is in brackets as i wasn't allowed more than 2 links...



回答3:


After you signed up for the Speech API, you can view your subscription keys using this link: https://www.microsoft.com/cognitive-services/en-us/subscriptions.

Authentication auth = new Authentication("Come up with a short ClientId", "Client Secret");

In your code, DO NOT come up with a short ClientId. Just replace "Come up with a short ClientId" with the first key you find on the subscription page and replace "Client Secret" with the second key you find on the subscription page.



来源:https://stackoverflow.com/questions/30085058/client-id-for-project-oxford-speech-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!