文字转语音问题 - 如何让它说'Jan' [英] Text-to-speech question - how to get it to say 'Jan'

查看:119
本文介绍了文字转语音问题 - 如何让它说'Jan'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ucma 3应用程序,我正在回读来电者的姓名。 它适用于大多数情况,虽然我已经有了 任何名为'Jan'的人都会遇到问题 - 文字转语音引擎每次都会回读'1月'。 我如何得到它只是
读回写的文字而不是假设它是一个缩写?

解决方案

这不是一个很好的解决方案,因为我无法找到阻止它每次扩展Jan的方法。


但是,如果你需要它可以工作,并且很乐意添加一个NameIsJan对于你的代码的方法,你可以在音素中说出这个名字。


'Jan'可以实现一个不错的输出:

 

var   str  =  "<音素&NBSP;字母表= \英寸×-微软ups\"&NBSP; pH值= \" JH&NBSP; AE&NBSP; N\">扬< /音素>" ;
speechStatementActivity2.MainPrompt.AppendSsmlMarkup(str);


可以在此处找到可以使用的不同音素的完整细分:
http://msdn.microsoft.com/en-us/library/bb813894(office.12)的.aspx


I've got a ucma 3 application where i'm reading back the caller's name.  It works in most instances, though i've got  a problem with anyone named 'Jan' - the text-to-speech engine reads back 'January' every time.  How do I get it just to read back the text as written and not assume that it is an abbreviation?

解决方案

This isn't a great solution, as I can't find a way to prevent it from expanding Jan each time either.

However, if you need it to work, and are happy to add in a NameIsJan method to your code, you could have the name spoken in phonemes.

A decent output for 'Jan' can be achieved with:

var str = "<phoneme alphabet=\"x-microsoft-ups\" ph=\"JH AE N\">Jan</phoneme>"; speechStatementActivity2.MainPrompt.AppendSsmlMarkup(str);

A full breakdown of the different phonemes you can use can be found here: http://msdn.microsoft.com/en-us/library/bb813894(office.12).aspx


这篇关于文字转语音问题 - 如何让它说'Jan'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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