c# - 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。
解决方案
这个问题在这里解决了。问题是我没有为关键字表文件提供绝对路径。
推荐阅读
- python - 如何在for循环中将整数附加到列表中?理解列表理解
- eloquent - Laravel 6 中 isEmpty() 和 isEmpty 的区别
- azure - 使用 ARM 创建事件网格订阅以收集订阅的事件
- directx - 如何在 DirectX 中绘制不同的几何图形?
- php - 减少用于 sql 查询的数组
- java - API 返回错误:“字段不能为空”
- python - 使用 pandas 从 excel 文件生成 csv
- github - Github问题模板表情符号没有出现
- python - Python:读取多个文件并存储特定文件的输出
- reactjs - 有什么方法可以防止 React 重新渲染添加到 MobX 观察数组中的每个项目(使用 Hooks)