Azure-Samples / Cognitive-Speech-STT-Windows

Windows SDK for the Microsoft Speech-to-Text API, part of Cognitive Services
https://www.microsoft.com/cognitive-services/en-us/speech-api
Other
112 stars 88 forks source link

GetAuthorizationTokenAsync is going in an infinite loop #56

Open mayank2698 opened 6 years ago

mayank2698 commented 6 years ago

When the method is called it generates a token but despite a token keeps going to generating token again and again and the method GetAuthorizationTokenAsync is called again and again infinitely. kindly help me out with the issue!!

zhouwangzw commented 6 years ago

We have released new Speech SDK with new features and functionality. It supports Authrizatio token too. please see samples here: https://github.com/Azure-Samples/cognitive-services-speech-sdk/blob/master/samples/csharp/sharedcontent/console/speech_recognition_with_token_sample.cs.

One thing to note is that the token has an expiration time, so you need to refresh it before it expires.

Thanks,

mayank2698 commented 6 years ago

does this sdk works on windows 7 ?? or is it only supported for windows 8?