在 Microsoft Speech API 中指定单词的发音

发布于 2024-09-28 15:05:29 字数 141 浏览 5 评论 0原文

我正在开发一个 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 ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

成熟的代价 2024-10-05 15:05:30

此处实现自定义发音的方法是传递 SrgsDocumentGrammar 构造函数。这允许按照 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文