简体   繁体   English

wp8.1中的语音命令服务(不是Silverlight)

[英]Voice Command Service in wp8.1 (not silverlight)

I'm trying to use voice command service in windows phone 8.1 application, but I can't find the appropriate namespace (Windows.Phone.Speech). 我正在尝试在Windows Phone 8.1应用程序中使用语音命令服务,但找不到合适的命名空间(Windows.Phone.Speech)。

Is it only available in wp8 or Silverlight ? 仅在wp8或Silverlight中可用吗?

Thanks a lot! 非常感谢!

I ran across this question while looking for the answer to this myself today; 今天我在寻找答案时遇到了这个问题。 so hopefully this will help someone else. 因此希望这会对其他人有所帮助。

Yes! 是! It does exist in Windows Phone 8.1 (WinRT). Windows Phone 8.1(WinRT)中确实存在它。 It is now called VoiceCommandManager however, and is under Windows.Media.SpeechRecognition: 但是,它现在称为VoiceCommandManager,并且位于Windows.Media.SpeechRecognition下:

https://msdn.microsoft.com/en-us/library/windows.media.speechrecognition.voicecommandmanager.aspx https://msdn.microsoft.com/zh-cn/library/windows.media.speechrecognition.voicecommandmanager.aspx

Noting also that they are deprecating this in Windows 10 (there is a note to that effect on the page), which probably accounts for why this was so hard to track down. 还注意到他们在Windows 10中不推荐使用此方法(在页面上对此效果有注释),这很可能解释了为什么很难如此查找。 I also found this handy sample project: 我还找到了这个方便的示例项目:

https://code.msdn.microsoft.com/windowsapps/Voice-Commands-for-Windows-2f808ac6/ https://code.msdn.microsoft.com/windowsapps/Voice-Commands-for-Windows-2f808ac6/

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

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