我的工作在C#中的小应用程序,执行使用Microsoft Speech API的语音识别。
I'm working on a small application in C# which performs speech recognition using Microsoft Speech API.
我需要某些非英语单词添加到语法,它的发音不服从的英语发音规则。
I need to add some non-english words to grammar, whose pronunciation don't obey english pronunciation rules.
时使用国际音标,可以指定自己的发音? 如果是,哪些方法应该用?
Is it possible specify their pronunciation using International Phonetic Alphabet ? If yes, which methods should be used ?
在这里实现自定义发音的方法是传递一个 SrgsDocument 到 语法
构造。这使得每 http://www.w3.org/TR/speech-grammar/。
The way to achieve custom pronunciation here is by passing an SrgsDocument to the Grammar
constructor. This allows specification per http://www.w3.org/TR/speech-grammar/.
我还没有做到这一点,它看起来不平凡的,但应该让你做你想做的。
I have not done this and it looks non-trivial, but this ought to allow you to do what you want.