gpt4 book ai didi

c# - 加载 Microsoft Speech SDK v11 时出错

转载 作者:太空狗 更新时间:2023-10-29 21:50:21 24 4
gpt4 key购买 nike

我已经安装了 x86 SDK 并将 Microsoft.Speech.dll 添加到我的项目中。该项目设置为 x86。

当尝试创建 SpeechSynthesizer 的实例时,我得到了

Retrieving the COM class factory for component with CLSID {D941651C-44E6-4C17-BADF-C36826FC3424} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

还有什么会导致那些错误的目标平台?

最佳答案

我在几分钟前解决了这些问题:

-下载并使用Microsoft Speech SDK 32位(这样你就可以在两个平台上使用了)

最重要的是安装这些文件:

-在 Microsoft 语音 SDK 中:

C:\Program Files (x86)\Microsoft SDKs\Speech\v11.0\Redist\SpeechPlatformRuntime.msi

-在 Microsoft 语音平台中 - 运行时语言:

https://www.microsoft.com/en-us/download/details.aspx?id=27224

MSSpeech_SR_en-US_TELE.msi (using for Speech To Text)
MSSpeech_TTS_en-US_ZiraPro.msi (using for Text To Speech)

完成了。

关于c# - 加载 Microsoft Speech SDK v11 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21292276/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com