找不到Microsoft.CognitiveServices.Speech.Core.dll异常

时间:2019-03-05 20:26:58

标签: xaml xamarin microsoft-speech-api

我正在使用Microsoft Azure的 .Net标准2.0 上的认知服务开发混合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模拟器上运行时将失败。

Exception screenshow

2 个答案:

答案 0 :(得分:0)

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

您可能正在寻找“ Microsoft Cognitive Services”,您必须在其中提供对麦克风录制/流媒体等的本机支持。...

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

答案 1 :(得分:0)

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