TTS for Chinese is throwing SAPI ERROR E_FAIL

后端 未结 1 1017
暖寄归人
暖寄归人 2021-01-15 11:34

This is my code for Chinese TTS which is failing in the speak function although Chinese TTS engine is installed successfully

using Microsoft.Speech.Synthesis         


        
相关标签:
1条回答
  • 2021-01-15 12:04

    Between Windows 8.1 and Windows 8.0, two files were dropped that are critical for using the Server Speech API. These are chsbrkr.dll and chtbrkr.dll which will be in the Windows directory in Windows 8.0. It is also important to choose the x86 vs x64 versions from Windows depending on your SDK and Windows 8.0 version (x86 vs x64). For example, in a 64-bit Windows 8.1 environment, using 32-bit dll's, you should place the two files in

    C:\Program Files (x86)\Common Files\Microsoft Shared\Speech\TTS\v11.0

    Hopefully, Microsoft will fix these (though I am told they will not) or officially allow for distribution (good luck...).

    BTW, you should not see this error in Windows XP through Windows 8.0.

    Update. I believe these files are used to break up Chinese into chunks for the TTS to handle. Without them, the Chinese TTS will fail with the error posted.

    0 讨论(0)
提交回复
热议问题