I'm currently working on a WinRT 8.1 Store app and in this app i'm using Bing.Speech SDk, which was working fine about a month before. But now it stopped working. I can't find it work now.
Here is the code.
using Bing.Speech;
public async void GetSpeechText()
{
var credentials = new SpeechAuthorizationParameters();
credentials.ClientId = "ClientID";
credentials.ClientSecret = "My Secret";
SpeechRecognizer SR = new SpeechRecognizer("en-US", credentials);
var result = await SR.RecognizeSpeechToTextAsync();
if (result.TextConfidence != SpeechRecognitionConfidence.Low)
{
lblError.Text = "";
txtBox.Text = string.IsNullOrEmpty(result.Text) ? "" : result.Text.Trim('.');
}
}
Please guide me
Thanks
Firstly, please check your Client ID and Client Secret are all correct, you can go the Windows Azure Marketplace Developers page and click the Register button.
Note: you may notice the red banner at the top of the page “DataMarket and Data Services are being retired and will stop accepting new orders after 12/31/2016. Existing subscriptions will be retired and cancelled starting 3/31/2017. Please reach out to your service provider for options if you want to continue service.”
Then please make sure you have configured your project for speech recognition.
Since “DataMarket and Data Services are being retired and will stop accepting new orders after 12/31/2016. Existing subscriptions will be retired and cancelled starting 3/31/2017”, I suggest you use the WinRT Speech API.
More info , you can refer to how to register speech and how to enable a project for speech recognition.