开发者

Specifying a pronunciation of a word in Microsoft Speech API

开发者 https://www.devze.com 2023-01-22 05:11 出处:网络
I\'m working on a small application in C# which performs speech recognition u开发者_如何转开发sing Microsoft Speech API.

I'm working on a small application in C# which performs speech recognition u开发者_如何转开发sing 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 ?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消