【发布时间】:2019-08-27 09:17:06
【问题描述】:
我正在学习 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
谢谢
【问题讨论】:
-
Microsoft.CognitiveServices.Speech 是仅限 Windows 10 的软件包(因为它提供本机代码),因为它不支持基于 Xamarin.iOS|Android 的设备进行连续语音。如果您不需要该功能,可以使用 REST API。
-
@SushiHangover 你有 Rest API 的例子吗
-
REST DOCS:docs.microsoft.com/en-us/azure/cognitive-services/… 和 Endpoint/Swagger 参考:westus.cris.ai/swagger/ui/index
-
非常感谢@SushiHangover
-
@atomi,关于认知服务,我找了一个样例你可以看看:github.com/NateRickard/Xamarin.Cognitive.Speech
标签: c# azure xamarin microsoft-cognitive azure-cognitive-services