【问题标题】:Microsoft Bing Speech API SDK stops listenning after some timeMicrosoft Bing 语音 API SDK 在一段时间后停止侦听
【发布时间】:2017-03-09 07:11:51
【问题描述】:

我使用Microsoft Bing Speech API 执行一些语音到文本任务。这是我的编码方式,

MicrophoneRecognitionClient micClient;

micClient = SpeechRecognitionServiceFactory.CreateMicrophoneClient(SpeechRecognitionMode.LongDictation, "en-US", ConfigurationManager.AppSettings["bingspeechkey"]);

micClient.OnResponseReceived += (s, e) =>
{
};

micClient.StartMicAndRecognition();

在大约 1 分钟的一段时间内,这可以正常工作。之后它就停止响应。我不知道是什么原因造成的。

谁能给我一个解决这个问题的想法?

【问题讨论】:

  • it stops responding 是什么意思?您是否定义了所有处理程序? OnMicrophoneStatus, OnPartialResponseReceived, OnResponseReceived, OnConversationError?

标签: c# speech-recognition speech-to-text bing microsoft-cognitive


【解决方案1】:

如果您查看 API here,Rest 和 WebSocket 之间是有区别的。你没有提到你使用的是哪一个。

还有 3 个recognition modes。您可能想从 interactivedictationconversation

中选择合适的一个

如果这是正确的想法或者您需要更多,请发表评论。 (又名,您能否更具体地提出您的问题?)

【讨论】:

    猜你喜欢
    • 2019-10-20
    • 2017-07-28
    • 2017-05-10
    • 1970-01-01
    • 2017-10-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多