It seems like the Microsoft Speech Synthesis issue with Chinese (HuiHui) is still running into the wild.
After some researches online and few tries to fix it I couldn't find any solution.
The setup
Windows 10 (x32) (tested on x64 too)
SDK 11
Visual Studio 2017
The error
InnerException = {"Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))"}
Message = "Speak error '8000FFFF'."
Source = "Microsoft.Speech"
The troublesome code
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
}
This code is working perfectly using English (en-US, Helen).
Failed fix attempt
Download "chsbrkr.dll" & "chtbrkr.dll"
Add it to "Program Files((x86))\Common Files\Microsoft Shared\Speech\TTS\v11.0"
Does someone has succeeded in running this script in some way or has found an alternative ?
Thank you.
Previously posted on the same topic
Chinese TTS fails, while English works
TTS for Chinese is throwing SAPI ERROR E_FAIL
ASP.Net and Microsoft.Speech error with Chinese