2017-07-14 185 views
0


看起来中文版(慧汇)的微软语音合成问题似乎仍然疯狂。
经过一些在线研究和很少的尝试解决它,我找不到任何解决方案。

Microsoft.Speech.Synthesis - Chinese speak error(zh-CN,HuiHui)

的设置

Windows 10 (x32) (tested on x64 too) 
SDK 11 
Visual Studio 2017 

错误

InnerException = {"Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))"} 
Message = "Speak error '8000FFFF'." 
Source = "Microsoft.Speech" 

麻烦的代码

using Microsoft.Speech.Synthesis; 

using (var ss = new SpeechSynthesizer()) 
{ 
    ss.SetOutputToWaveFile("output.wav"); 
    ss.SelectVoice("Microsoft Server Speech Text to Speech Voice (zh-CN, HuiHui)"); 
    ss.Speak("我喜欢和很多珍珠奶茶"); // speak error here 
} 

此代码工作完全使用英语( en-US,Helen)。


失败的修复尝试

Download "chsbrkr.dll" & "chtbrkr.dll" 
Add it to "Program Files((x86))\Common Files\Microsoft Shared\Speech\TTS\v11.0" 



是否有人已经成功地以某种方式运行此脚本或发现其他选择吗?
谢谢。



以前发布的关于同一主题的

Chinese TTS fails, while English works
TTS for Chinese is throwing SAPI ERROR E_FAIL
ASP.Net and Microsoft.Speech error with Chinese

回答

-1

,当您使用Excel 2013工作,并设法使在Visual Basic宏你好出现类似的错误

我正在尝试下一个代码:

的Sub Main()

Dim speech As New SpVoice 
Dim i As Long 
Dim oFileStream As New SpFileStream 
Const SAFT48kHz16BitStereo = 30 
Const SSFMCreateForWrite = 3 

对于i = 1至5

Set speech.Voice = speech.GetVoices.Item(3) 
speech.Speak (Cells(i, 6)) 
Application.Wait (Now() + TimeValue("00:00:02")) 

下一I

结束子

error seen

table of words

相关问题