首页 > 解决方案 > Ubuntu MATE ARM32 上的 Azure 语音 SDK 意图识别错误

问题描述

我正在尝试使用 Ubuntu MATE ARM32(在 Raspberry Pi 上)上的 Speech SDK 进行基本的意图识别。文档说版本 1.11 应该可以工作,但我收到以下错误:

Unhandled exception. System.ApplicationException: Exception with an error code: 0x8 (SPXERR_FILE_OPEN_FAILED)
   at Microsoft.CognitiveServices.Speech.Internal.SpxExceptionThrower.ThrowIfFail(IntPtr hr)
   at Microsoft.CognitiveServices.Speech.KeywordRecognitionModel.FromFile(String fileName)
   at SmartHomeVoice.Services.ListeningService.StartAsync(CancellationToken cancellationToken) in E:\Efraim's stuff\SmartHomeVoice\SmartHomeVoice\Services\ListeningService.cs:line 142
   at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host)
   at SmartHomeVoice.Program.Main() in E:\Efraim's stuff\SmartHomeVoice\SmartHomeVoice\Program.cs:line 19
Aborted

我正在使用 C# 和 .Net Core 3.1,并且我在 Pi 中插入了一个网络摄像头,我将其设置为通过 GUI 输入的默认音频。Ubuntu 版本是 18.04。

标签: c#ubuntu.net-coreazure-speech

解决方案


这个问题在这里解决了。问题是我没有为关键字表文件提供绝对路径。


推荐阅读