Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/301.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Microsoft.Speech.Synthesis-中文讲话错误(zh CN,HuiHui)_C#_Text To Speech_Speech Synthesis - Fatal编程技术网

C# Microsoft.Speech.Synthesis-中文讲话错误(zh CN,HuiHui)

C# Microsoft.Speech.Synthesis-中文讲话错误(zh CN,HuiHui),c#,text-to-speech,speech-synthesis,C#,Text To Speech,Speech Synthesis,微软的中文语音合成问题(HuiHui)似乎仍在流行。 在网上做了一些研究之后,几乎没有人试图修复它,我找不到任何解决办法。 设置 Windows 10 (x32) (tested on x64 too) SDK 11 Visual Studio 2017 错误 InnerException={“灾难性故障(来自HRESULT的异常:0x8000FFFF(E_意外))”} Message=“说出错误‘8000FFFF’。” Source=“Microsoft.Speech” 麻烦代码 使用M


微软的中文语音合成问题(HuiHui)似乎仍在流行。
在网上做了一些研究之后,几乎没有人试图修复它,我找不到任何解决办法。

设置

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

InnerException={“灾难性故障(来自HRESULT的异常:0x8000FFFF(E_意外))”}
Message=“说出错误‘8000FFFF’。”
Source=“Microsoft.Speech”
麻烦代码

使用Microsoft.Speech.Synthesis;
使用(var ss=newspeechsynthesizer())
{
setOutputToWave文件(“output.wav”);
ss.选择Voice(“Microsoft Server语音文字转换语音(zh CN,HuiHui)”;
学生说我喜欢和很多珍珠奶茶"); // 在这里说错话
}
使用英语(en-US,Helen)时,此代码工作正常


修复尝试失败

下载“chsbrkr.dll”和“chtbrkr.dll”
将其添加到“程序文件((x86))\Common Files\Microsoft Shared\Speech\TTS\v11.0”


是否有人以某种方式成功运行了此脚本,或者找到了替代方案?
多谢各位



以前在同一主题上发表过




您好,当您使用excel 2013并尝试在visual basic中创建宏时,会出现类似错误

我正在尝试下一个代码:

副标题()

对于i=1到5

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

端接头


尝试注册这两个dll“chsbrkr.dll”和“chtbrkr.dll”

尝试以下步骤并检查-

1) 将这两个DLL粘贴到“C:\Windows\System32”目录中。如果您使用的是64位操作系统,请将这两个DLL也粘贴到“C:\Windows\sysWOW64”目录中(复制需要管理员事先许可)

2) 在命令提示符中使用以下命令在系统中注册两个DLL(以管理员身份运行)

  • %windir%\System32\regsvr32.exe/u Chsbrkr.dll
  • %windir%\SysWoW64\regsvr32.exe/u Chsbrkr.dll
  • %windir%\System32\regsvr32.exe/i Chsbrkr.dll(此步骤中可能会出现错误,可以忽略)
  • %windir%\SysWoW64\regsvr32.exe/i Chsbrkr.dll(此步骤中可能会出现错误,可以忽略)

  • %windir%\System32\regsvr32.exe/u Chtbrkr.dll

  • %windir%\SysWoW64\regsvr32.exe/u Chtbrkr.dll
  • %windir%\System32\regsvr32.exe/i Chtbrkr.dll(此步骤中可能会出现错误,可以忽略)
  • %windir%\SysWoW64\regsvr32.exe/i Chtbrkr.dll(您可能会在该步骤中看到错误,可以忽略)
  • 执行此操作后,请尝试重新启动系统,然后尝试运行出现“Speak error”的应用程序

    希望这能解决问题

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