2017-07-14 108 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