我目前正在开发一个WinRT 8.1 Store应用程序,并且在这个应用程序中,我使用Bing.Speech SDk,它在一个月前工作正常。但现在它停止工作。我现在找不到它的工作。Bing Speech停止在WinRT 8.1 Store App上工作
这是代码。
使用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('.');
}
}
请指引我
感谢
它扔“到服务访问被拒绝”的错误。 –