Closed ramicodes closed 6 years ago
if you can update the documentation to include some info on the Authentication URI The AuthenticationUri is used to receive a token from the authentication service. This URI must be set separately, as shown in the following sample code. // set the authorization Uri dataClient.AuthenticationUri = "https://westus.api.cognitive.microsoft.com/sts/v1.0/issueToken";
AuthenticationUri is an optional parameter, default value is "https://api.cognitive.microsoft.com/sts/v1.0/issueToken". Were you able to solve the login issue by changing the uri?
still the same issue: Error received by OnConversationErrorHandler() --- Error code: LoginFailed Error text: Transport erro
There's a text field in the right upper corner of the Sample where the key is supposed to go. Could you also try the REST API (https://github.com/Azure-Samples/SpeechToText-REST/blob/master/curl/transcribe.bat):
transcribe.bat <key> <wav file>
Do we have a solution for this issue?
We can repro the issue and we are currently looking into it.
I can now run the sample without seeing the error above. Could you please try again? If you still have the problem, could you check whether your subscription key is expired or exceeds the quota (in case you are using a free trial key)?
I'm also having the same issue as @ramicodes had. I'm using a valid key and already tried the two keys given by Azure account. If you guys, solve this issue, let me know! Thanks!
@pereiraguilherme Could you please follow the steps described in Authentication for using the service to check whether you can get an Authorization token using one of you keys? Please note you need to verify for authorization token, but not just for subscription key. Could you please post error message in case of failure?
@pereiraguilherme And if can get an authorization token successfully using REST, then could you please check whether you have past the same subscription key in the text edit box and save it? On which platform, x86 or x64 are you running your sample?
@zhouwangzw did you verify that it works with the client libraries as well? Or just the REST api? I still see this issue.
I just ran the SpeechToText-WPF-Sample again, using my subscription key, and it works fine. You can check whether your key is still vaid by clicking on "Log in" at the page "Try Cognitive Services" (at the right side of the tab "Vision/Speech/Language/Knowledge/Search"), using the account you used to get the subscription key.
@zhouwangzw I only see my trial account on that page, which is expired. I do have a subscription and am using the correct subscription key (tried regenerating it as well), and still get the transport error message in the SpeechToText-WPF-Sample.
@shayben Do you mean that your trial account is expired? Could you please check whether your subscription key is expired too? It is only valid for a certain period of time and has a quota assoicated. Can you try to run the REST example, as described here with your key?
I am closing the isseu due to lack of response. Please open a new one if you still have issues.
For others hitting this error: Note that this is not a sample for the "Speech (preview)" service which uses Microsoft.CognitiveServices.Speech package, this one is for "Bing Speech" service that uses Microsoft.ProjectOxford.SpeechRecognition package. If you try to use this sample with "Speech (preview)" key you will get LoginFailed. The sample for Microsoft.CognitionServices.Speech package can be found at https://docs.microsoft.com/en-gb/azure/cognitive-services/speech-service/samples
Might be worth mentioning in the readme.
Thanks @miloush it's definielty a "Bing Speech" Api key that we need. I have successfully tested it. Make sure you also copy the end point and put it in AuthenticationUri webconfig propery and it looks like this. https://api.cognitive.microsoft.com/sts/v1.0/issueToken
@miloush how to resolve it
@SanaWaseem if you want to use cognitive services, don't use this sample. Use the one I linked to.
@miloush Can you please mention it?
I followed the steps listed in the instructions, ran the sample and got the following error: Error code: LoginFailed
Also, what value will the sample need for the AuthenticationUri key in app.config