ProjectOxford 语音识别

ProjectOxford SpeechRecognition

我正在使用机器人框架创建一个机器人。我在 Skype 频道上对其进行了测试,它终于起作用了 我试过了 : https://github.com/Azure-Samples/Cognitive-Speech-STT-Windows 当我按记录时出现以下错误: : '无法加载由 'SpeechClient.dll' 导入的程序。'

https://github.com/Microsoft/BotBuilder-Samples/blob/master/CSharp/skype-CallingBot/IVRBot.cs 这个人不听我的命令,他要我按 1(语音?)我试过 dial/text/speech 不起作用。它陷入无限循环并显示以下消息:“"If you have a life threatening medical emergency please contact the emergency services or go to your nearest hospital. For non-life threatening situations please press 1."

https://ankitbko.github.io/2016/11/skype-call-your-bot/ 我也试过这个。当我安装项目 Oxford for Speech Recognition 并且我 运行 我的应用程序不再工作时。如果我尝试调用 Skype,另一端也没有得到我的输入,它告诉我配置错误。一旦我取出这个库,一切都会再次正常工作。

我可以在这里使用哪种语音识别替代方案而不是牛津——我读到它有一些 windows 8 依赖关系,我 运行 在 windows 7 上使用它.

private async Task OnRecordCompleted(RecordOutcomeEvent recordOutcomeEvent)
    {
        if (recordOutcomeEvent.RecordOutcome.Outcome == Outcome.Success)
        {
            var record = await recordOutcomeEvent.RecordedContent;

            //---- here record should become text ----

            recordOutcomeEvent.ResultingWorkflow.Actions = new List<ActionBase>
            {
                GetSilencePrompt()
            };
        }
        else
        {
            if (silenceTimes > 1)
            {
                recordOutcomeEvent.ResultingWorkflow.Actions = new List<ActionBase>
                {
                    GetPromptForText("Thank you for calling"),
                    new Hangup() { OperationId = Guid.NewGuid().ToString() }
                };
                recordOutcomeEvent.ResultingWorkflow.Links = null;
                silenceTimes = 0;
            }
            else
            {
                silenceTimes++;
                recordOutcomeEvent.ResultingWorkflow.Actions = new List<ActionBase>
                {
                    GetRecordForText("I didn't catch that, would you kinly repeat?")
                };
            }
        }
    }

---编辑

这也是我尝试使用 "Microsoft.CognitiveServices.SpeechRecognition" (ProjectOxford) 在我的参考资料中将其部署到 azure 后出现的错误。现在我无法摆脱它,即使我尝试在没有安装此参考的情况下发布(也许它提供了一些关于正在发生的事情的线索)

依赖问题。牛津 运行 windows 7!