语音字符到语音

Pre*_*tor 13 .net c c# c++ vb.net

我的目的是能够让我的应用程序用不太流行的语言(例如福建话,马来语等)进行交谈.我目前的方法是使用录制的mp3.

我想知道.net或任何平台是否存在"语音字符到语音"引擎?

这里的语音字符就像纸质词典中的语音条目一样.任何的想法?

Sri*_*ram 10

你需要的是一个大型词汇TTS引擎.Microsoft提供了一个语音SDK,允许您在键入其他内容时说出来,还有Windows SAPI(Speech API - 不确定SDK和API是否相同).我知道他们确实有男性和女性的英语声音,但也许没有其他语言,如马来语(那里可能还没有很多市场).您可能想看看CMU的Festival Project.他们通常有不同语言的很多声音,但是一些不太知名的声音可能不像英语那样发达.

进一步更新:
检查MBROLA网站.它是一个开源多语言大型词汇TTS引擎的开源项目,它们也有马来语扩展.我不知道它有多好.我尝试了印地语,觉得还有很多工作要做.

另外,查看BabelFish网站.它们链接到许多免费的TTS引擎,这些引擎应该对马来语有一些支持.

更新3:我不知道这是否会适合你的目的,但如果应用程序必须讲出来的文字是低,那么你可以尝试concatenative speech synthesislimited vocabulary了.用马来语(或任何其他语言)记录句子片段,并将程序的输出传递给您创建输出的有限词汇引擎.一个例子可能是(英文):"是最有价值的球员." 在这里,"最有价值的玩家"成为一个片段,而"玩家X"可以随意改变.如果它符合您的目的,这应该运作良好.


Ode*_*ded 8

你看过System.Speech命名空间了吗?

特别是System.Speech.SynthesisSystem.Speech.Synthesis.TtsEngine命名空间.


use*_*411 8

这是VB.NET代码:

'create the object. This object will store your phonetic 'characters'
Dim PBuilder As New System.Speech.Synthesis.PromptBuilder

'add your phonetic 'characters' here. Just ignore the first parameter.
'The second parameter is your phonetic 'characters'
PBuilder.AppendTextWithPronunciation("test", "ri?d??")

'now create a speaker to speak your phonetic 'characters'
Dim SpeechSynthesizer2 As New System.Speech.Synthesis.SpeechSynthesizer

'now actually speaking. It will speak 'reading'
SpeechSynthesizer2.Speak(PBuilder)
Run Code Online (Sandbox Code Playgroud)

这是转换后的C#代码:

//create the object. This object will store your phonetic 'characters'
System.Speech.Synthesis.PromptBuilder PBuilder = new System.Speech.Synthesis.PromptBuilder();

//add your phonetic 'characters' here. Just ignore the first parameter.
//The second parameter is your phonetic 'characters'
PBuilder.AppendTextWithPronunciation("test", "ri?d??");

//now create a speaker to speak your phonetic 'characters'
System.Speech.Synthesis.SpeechSynthesizer SpeechSynthesizer2 = new System.Speech.Synthesis.SpeechSynthesizer();

//now actually speaking. It will speak 'reading'
SpeechSynthesizer2.Speak(PBuilder);
Run Code Online (Sandbox Code Playgroud)


Dou*_*rch 6

.Net System.Speech.Synthesis.PromptBuilder类将从SSML字符串创建音频.您可以使用它们从原始音素和采样音频构造声音.音频不依赖于语言.


Rob*_*inJ 5

也许这个?System.Speech.Recognition.SrgsGrammar.SrgsPhoneticAlphabet