【问题标题】:Microsoft.CognitiveServices.Speech.Core.dll not found exceptionMicrosoft.CognitiveServices.Speech.Core.dll 未找到异常
【发布时间】:2019-07-27 09:43:50
【问题描述】:

我正在 .Net 标准 2.0 上使用来自 microsoft azure 的认知服务开发混合 xamarin 表单应用程序。获得 CognitiveServices 0.1.0、Microsoft.CognitiveServices.Speech 1.3.1 以及 Xamarin.Forms 3.5.0 的 nuget 包。

Nuget 软件包已更新到最新版本。我在 VS2017 IDE 的 Win 7 机器上运行它。找不到任何资源来解决我的异常。该解决方案成功构建,但在 Microsoft.CognitiveServices.Speech.core.dll 中使用 DllNotFoundException 的 genymotion 模拟器上运行时失败。

【问题讨论】:

  • 我相信 Xamarin 示例使用的是 REST API,而不是客户端库

标签: xaml xamarin microsoft-speech-api


【解决方案1】:

Microsoft.CognitiveServices.Speech SDK 版本 1.7.0 支持 Xamarin(UWP、Android 和 iOS)。请尝试一下。

【讨论】:

    【解决方案2】:

    Microsoft.CognitiveServices.Speech 不支持 Xamarin.Android|iOS。它确实包括 Linux 和 Windows 支持,包括原生麦克风/扬声器支持...

    您可能正在寻找“Microsoft 认知服务”,您必须在其中推出自己对麦克风录音/流式传输等的原生支持......

    Microsoft.CognitiveServices.Speech(参见运行时部分)

    .
    ├── build
    │   ├── Microsoft.CognitiveServices.Speech.props
    │   ├── REDIST.txt
    │   ├── native
    │   │   ├── Microsoft.CognitiveServices.Speech.targets
    │   │   ├── Win32
    │   │   │   └── Release
    │   │   │       ├── Microsoft.CognitiveServices.Speech.core.dll
    │   │   │       └── Microsoft.CognitiveServices.Speech.core.lib
    │   │   ├── include
    │   │   │   ├── c_api
    │   │   │   │   ├── speechapi_c.h
    │   │   │   │   ├── speechapi_c_audio_config.h
    │   │   │   │   ├── speechapi_c_audio_stream.h
    │   │   │   │   ├── speechapi_c_audio_stream_format.h
    │   │   │   │   ├── speechapi_c_common.h
    │   │   │   │   ├── speechapi_c_connection.h
    │   │   │   │   ├── speechapi_c_error.h
    │   │   │   │   ├── speechapi_c_factory.h
    │   │   │   │   ├── speechapi_c_intent_recognizer.h
    │   │   │   │   ├── speechapi_c_intent_result.h
    │   │   │   │   ├── speechapi_c_intent_trigger.h
    │   │   │   │   ├── speechapi_c_keyword_recognition_model.h
    │   │   │   │   ├── speechapi_c_language_understanding_model.h
    │   │   │   │   ├── speechapi_c_property_bag.h
    │   │   │   │   ├── speechapi_c_recognizer.h
    │   │   │   │   ├── speechapi_c_result.h
    │   │   │   │   ├── speechapi_c_session.h
    │   │   │   │   ├── speechapi_c_speech_config.h
    │   │   │   │   ├── speechapi_c_translation_recognizer.h
    │   │   │   │   ├── speechapi_c_translation_result.h
    │   │   │   │   ├── spxdebug.h
    │   │   │   │   └── spxerror.h
    │   │   │   └── cxx_api
    │   │   │       ├── speechapi_cxx.h
    │   │   │       ├── speechapi_cxx_audio_config.h
    │   │   │       ├── speechapi_cxx_audio_stream.h
    │   │   │       ├── speechapi_cxx_audio_stream_format.h
    │   │   │       ├── speechapi_cxx_common.h
    │   │   │       ├── speechapi_cxx_connection.h
    │   │   │       ├── speechapi_cxx_connection_eventargs.h
    │   │   │       ├── speechapi_cxx_enums.h
    │   │   │       ├── speechapi_cxx_eventargs.h
    │   │   │       ├── speechapi_cxx_eventsignal.h
    │   │   │       ├── speechapi_cxx_intent_recognition_eventargs.h
    │   │   │       ├── speechapi_cxx_intent_recognition_result.h
    │   │   │       ├── speechapi_cxx_intent_recognizer.h
    │   │   │       ├── speechapi_cxx_intent_trigger.h
    │   │   │       ├── speechapi_cxx_keyword_recognition_model.h
    │   │   │       ├── speechapi_cxx_language_understanding_model.h
    │   │   │       ├── speechapi_cxx_properties.h
    │   │   │       ├── speechapi_cxx_recognition_async_recognizer.h
    │   │   │       ├── speechapi_cxx_recognition_base_async_recognizer.h
    │   │   │       ├── speechapi_cxx_recognition_eventargs.h
    │   │   │       ├── speechapi_cxx_recognition_result.h
    │   │   │       ├── speechapi_cxx_recognizer.h
    │   │   │       ├── speechapi_cxx_session.h
    │   │   │       ├── speechapi_cxx_session_eventargs.h
    │   │   │       ├── speechapi_cxx_smart_handle.h
    │   │   │       ├── speechapi_cxx_speech_config.h
    │   │   │       ├── speechapi_cxx_speech_recognition_eventargs.h
    │   │   │       ├── speechapi_cxx_speech_recognition_result.h
    │   │   │       ├── speechapi_cxx_speech_recognizer.h
    │   │   │       ├── speechapi_cxx_speech_translation_config.h
    │   │   │       ├── speechapi_cxx_string_helpers.h
    │   │   │       ├── speechapi_cxx_translation_eventargs.h
    │   │   │       ├── speechapi_cxx_translation_recognizer.h
    │   │   │       └── speechapi_cxx_translation_result.h
    │   │   └── x64
    │   │       └── Release
    │   │           ├── Microsoft.CognitiveServices.Speech.core.dll
    │   │           └── Microsoft.CognitiveServices.Speech.core.lib
    │   └── net461
    │       └── Microsoft.CognitiveServices.Speech.targets
    ├── lib
    │   ├── net461
    │   │   ├── Microsoft.CognitiveServices.Speech.csharp.dll
    │   │   └── Microsoft.CognitiveServices.Speech.csharp.xml
    │   ├── netstandard2.0
    │   │   ├── Microsoft.CognitiveServices.Speech.csharp.dll
    │   │   └── Microsoft.CognitiveServices.Speech.csharp.xml
    │   └── uap10.0
    │       ├── Microsoft.CognitiveServices.Speech.csharp.dll
    │       └── Microsoft.CognitiveServices.Speech.csharp.xml
    ├── microsoft.cognitiveservices.speech.1.3.1.nupkg
    ├── microsoft.cognitiveservices.speech.1.3.1.nupkg.sha512
    ├── microsoft.cognitiveservices.speech.nuspec
    └── runtimes
        ├── linux-x64
        │   ├── lib
        │   │   └── netstandard2.0
        │   │       ├── Microsoft.CognitiveServices.Speech.csharp.dll
        │   │       └── Microsoft.CognitiveServices.Speech.csharp.xml
        │   └── native
        │       └── libMicrosoft.CognitiveServices.Speech.core.so
        ├── win-x64
        │   ├── native
        │   │   └── Microsoft.CognitiveServices.Speech.core.dll
        │   └── nativeassets
        │       └── uap
        │           └── Microsoft.CognitiveServices.Speech.core.dll
        └── win-x86
            ├── native
            │   └── Microsoft.CognitiveServices.Speech.core.dll
            └── nativeassets
                └── uap
                    └── Microsoft.CognitiveServices.Speech.core.dll
    

    【讨论】:

      猜你喜欢
      • 2012-04-17
      • 1970-01-01
      • 2013-04-09
      • 2014-05-05
      • 2016-09-13
      • 2016-10-01
      • 2017-10-15
      相关资源
      最近更新 更多