简体   繁体   English

适用于SpeechRecognizer的Windows 10 IoT核心语言安装

[英]Windows 10 iot core language installation for speechRecognizer

I am trying to use the SpeechRecognizer in French on a raspberry pi running windows 10 iot core. 我正在尝试在运行Windows 10 IoT核心的树莓派上使用法语的SpeechRecognizer。 I managed to install the language following the instructions found on that thread: Add language pack to Windows IoT Core . 我设法按照该线程上的指示安装了该语言: 将语言包添加到Windows IoT核心版 It gets listed in the SupportedTopicLanguages but as soon as I call this: speechRecognizer = new SpeechRecognizer(speechLanguage); 它被列在SupportedTopicLanguages中,但是我一称它为:speechRecognizer = new SpeechRecognizer(speechLanguage); I get an exception with only a code -2147155934 (no explanation what the problem is). 我只有一个代码-2147155934遇到了异常(没有解释问题是什么)。

Anybody has an idea what I am doing wrong? 有人知道我在做什么错吗?

Thanks Laurent 谢谢洛朗

The suggested way to enable speech languages on IoTCore is including appropriate speech language packages during image creation. 在IoTCore上启用语音语言的建议方法是在图像创建过程中包括适当的语音语言包。 This way these packages will receive the updates properly. 这样,这些软件包将正确接收更新。 For image creating solution, you can refer to this document . 对于图像创建解决方案,您可以参考本文档

But, if you want to use this feature for developer's experimentation only, you can deploy the speech language feature package at runtime using applyupdate.exe tool. 但是,如果只想将此功能用于开发人员的实验,则可以在运行时使用applyupdate.exe工具部署语音语言功能包。

Here I show how to install a speech language package via applyupdate tool. 在这里,我展示了如何通过applyupdate工具安装语音包。 (Here I use de-DE as example, other supported languages will be added using the same way.) (这里我以de-DE为例,将以相同的方式添加其他受支持的语言。)

  1. Install the OS packages for custom and commercial FFU. 为定制和商用FFU安装OS软件包。 You can download " Windows 10 IoT Core Packages – Windows 10 October 2018 Update (SAC)" from here. 您可以从此处下载“ Windows 10 IoT核心软件包 – Windows 10 October 2018 Update(SAC)”。 You will see all four architectures IoTCore packages MSI in the ISO. 您将在ISO中看到所有四种架构IoTCore包MSI。 Install all four or install which one architecture speech package cab you are looking for. 安装全部四个或安装您要寻找的哪个体系结构语音软件包。 I am referring to arm in below example and you have to use appropriate architecture based on the device you are using. 我在下面的示例中指的是arm,您必须根据所使用的设备使用适当的体系结构。

在此处输入图片说明

  1. Find the speech language CAB file under C:\\Program Files (x86)\\Windows Kits\\10\\MSPackages\\retail\\\\fre. 在C:\\ Program Files(x86)\\ Windows Kits \\ 10 \\ MSPackages \\ retail \\\\ fre下找到语音CAB文件。 For me the path is C:\\Program Files (x86)\\Windows Kits\\10\\MSPackages\\retail\\arm\\fre. 对我来说,路径是C:\\ Program Files(x86)\\ Windows Kits \\ 10 \\ MSPackages \\ retail \\ arm \\ fre。 The file name will be "Microsoft-Windows-OneCore-Microsoft-SpeechData-de-DE-Package.cab" for version 17134 and "Microsoft-Windows-OneCore-Microsoft-SpeechData-de-DE-Package~31bf3856ad364e35~arm~~.cab" for version 17763. 文件名将是版本17134的“ Microsoft-Windows-OneCore-Microsoft-SpeechData-de-DE-Package.cab”和“ Microsoft-Windows-OneCore-Microsoft-SpeechData-de-DE-Package〜31bf3856ad364e35〜arm ~~ .cab”用于版本17763。

  2. Copy the speech language CAB file to the device. 将语音语言CAB文件复制到设备。

  3. Use applyupdate tool install it. 使用applyupdate工具安装它。 See the following snapshot. 请参阅以下快照。

在此处输入图片说明

  1. After commit success the device will auto reboot and apply the update. 提交成功后,设备将自动重启并应用更新。 When the device comes back again you can set the speech language to de-DE and check the result: 当设备再次返回时,您可以将语音语言设置为de-DE并检查结果:

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM