我目前正在開發一個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('.');
}
}
請指引我
感謝
它扔「到服務訪問被拒絕」的錯誤。 –