【问题标题】:Azure function : Cant load DLL cognitive speech dllAzure 功能:无法加载 DLL 认知语音 dll
【发布时间】:2019-11-21 08:17:20
【问题描述】:

无法加载 DLL 'Microsoft.CognitiveServices.Speech.core.dll' 或 它的依赖项之一:找不到指定的模块。 (HRESULT 异常:0x8007007E)

请帮忙 一直在为这个问题苦苦挣扎了两个星期。

【问题讨论】:

标签: azure-functions microsoft-cognitive azure-functions-runtime azure-functions-core-tools azure-function-app


【解决方案1】:

Azure Functions 不支持加载用 C/C++ 编写的本机函数和动态库。 Azure Functions 的沙盒有限制和The Cognitive Services Speech SDK requires the Microsoft Visual C++ Redistributable for Visual Studio 2019 on the system.

认知服务应该在 Azure 中作为一种资源提供,您可以使用它而不是使用 SDK。 Azure Cognitive Services

【讨论】:

  • 如何将服务添加为资源
  • 以及如何在 azure 函数中安装 c++ 可再发行组件我是否使用 kudu 命令行
  • @sibonisoDlamini:我认为这是不合适的,不建议在 azure 功能中使用认知服务 SDK,而且目前无法安装 C++ Redistributable。微软推荐的方式是创建 Azure 认知服务资源 (docs.microsoft.com/en-us/azure/cognitive-services/…)。请阅读微软官方文档。
  • 这里有一个类似的问题:stackoverflow.com/questions/40474314/… 和 Azure Functions Microsoft 开发人员 @Fabio Cavalcante 的解释,目前还不可能。
猜你喜欢
  • 1970-01-01
  • 2017-06-26
  • 2012-01-30
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-09-10
相关资源
最近更新 更多