c# - 语音识别引擎 : UnloadAllGrammars is VERY slow

标签 c# speech-recognition

我正在使用 .NET (C#) 和语音识别引擎。我希望能够根据我的状态需要加载和卸载语法。在我看来,这是限制误报机会的好方法;然而,每当我运行 UnloadAllGrammars() 时,有时需要几乎一分钟才能完成。
知道为什么会发生这种情况吗?

最佳答案

我发现,如果我在 UnloadAllGrammars() 之前运行 SpchRecognizer.RecognizeAsyncStop() ,则不会有延迟。不知道语音识别器的内部结构,所以我无法解释为什么需要这样做;但至少从经验上来看,这是可行的。

关于c# - 语音识别引擎 : UnloadAllGrammars is VERY slow,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9669690/

相关文章:

c# - 在 C# 中搜索字符串中每个单词的前几个字符

c# - 您会使用什么报告工具?

c# - Windows 安装程序中的通用应用程序数据路径

c# - 从 EDMX 中分离实体类 (DTO) 的实用方法

c# - Windows 10 语音识别

android - 如何在 Android Wear 中更改语音识别语言

ios - 在 iOS 中同时管理文本转语音和语音识别

c# - 使文本框保持焦点

python - Linux-Python 的语音识别

python-3.x - python : How to use speech_recognition or other modules to convert base64 audio string to text?