在指定的Microsoft Speech API的一个单词的发音 [英] Specifying a pronunciation of a word in Microsoft Speech API

查看:268
本文介绍了在指定的Microsoft Speech API的一个单词的发音的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作在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 ?

推荐答案

在这里实现自定义发音的方法是传递一个<一个href="http://msdn.microsoft.com/en-us/library/system.speech.recognition.srgsgrammar.srgsdocument.aspx"相对=nofollow> 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.

这篇关于在指定的Microsoft Speech API的一个单词的发音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆