Xamarin表格和Azure认知服务:文字服务语音不起作用

时间:2019-08-27 09:17:06

标签: c# azure xamarin microsoft-cognitive azure-cognitive-services

我正在学习Xamarin,我想使用以下URL将语音实现为文本认知服务:

我在行上出错:

// Creates an instance of a speech config with specified subscription key and service region.
            // Replace with your own subscription key // and service region (e.g., "westus").
            var config = SpeechConfig.FromSubscription("YourSubscriptionKey", "YourServiceRegion");

错误:System.DllNotFoundException: Microsoft.CognitiveServices.Speech.core.dll

谢谢

1 个答案:

答案 0 :(得分:1)

您需要安装该库:

https://www.nuget.org/packages/Microsoft.CognitiveServices.Speech/

Install-Package Microsoft.CognitiveServices.Speech -Version 1.6.0