我正在尝试为我的儿子实施拼写蜜蜂培训计划。 我可以在没有问题的情况下让C#语音识别器工作。
问题是:我只想让它识别口头的字母而不要试图把它们变成文字。
如何阻止识别器将字母翻译成单词?
示例:我说,“P Q R”和识别器输出“PQ are”。
帮助巫师先生!
- 保罗
答案 0 :(得分:0)
虽然我没有尝试过这个(现在只是快速浏览一下),我假设你正在寻找这样的东西:
GrammarBuilder gb = new GrammarBuilder();
Choices letters = new Choices();
letters.add(new string[] {"A", "B", "C", "D", ...});
gb.append(letters);
Grammer grammar(gb); // this grammar is then be used and should only support the specific subset as defined above.
答案 1 :(得分:0)
你有c#识别器的源代码,如果是,你需要编辑它以禁用负责将口头字母翻译成单词的代码部分