- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
当键入“我能说什么?”时,Cortana 中不显示应用程序和语音命令
我正尝试在 Cortana 的前台使用语音命令并运行 Cortana 语音命令示例,但无法让 Cortana 显示应用程序或打开/执行名为“AdventureWorks”的应用程序的语音命令。
我使用的是 Cortana 语音命令示例,我在 Windows 10 上本地从 Visual Studio 2015 运行调试。根据此链接,这应该会在我的本地计算机上创建示例的解包版本,我应该能够从“开始”屏幕看到我不能看到的版本。我已在应用程序的功能下激活麦克风并包含 en-GB resources.resw 文件并将 Package.appxmanifest 更改为 en-GB 的默认语言以匹配以确保 Cortana 的语言与应用程序匹配以消除这是一个潜在的问题。
这是一个链接,显示在从 VS 运行应用程序(有或没有调试)后,应用程序的未打包版本应该在开始屏幕中可见: How to deploy a Metro App to the Desktop?
Cortana 语音命令示例: https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/CortanaVoiceCommand
注意:除了我之外,该应用程序是标准的,包括 en-GB 资源文件,将 package.appxmanifest 位置更改为 en-GB 并将麦克风添加到应用程序的功能中。我的电脑上也启用了开发者模式。
更新:将 vcd.xml 添加到 VoiceCommandDefinitionManager 时没有发生异常。看起来应该可以正常工作。 我还注意到,在运行示例时,我看不到伦敦的图片,也看不到这个视频中说“正在收听”的麦克风图标:https://channel9.msdn.com/Events/Build/2015/3-716在 04:16
此时谷歌搜索“application not showing in Cortana”没有显示任何有用的结果。
有没有其他人有幸让这个示例工作?或类似问题?您还在使用 en-GB 版本吗?
任何帮助或想法将不胜感激
最佳答案
我已经使用 en-US 成功测试了 AdverntureWorks 样本。我还开发了另一个 sample关于 Cortana 前景。
基本上我已经创建了 VCD 然后安装了它:
protected async override void OnLaunched(LaunchActivatedEventArgs e)
{
...
// Install the VCD
try
{
StorageFile vcdStorageFile = await Package.Current.InstalledLocation.GetFileAsync(@"HomeControlCommands.xml");
await VoiceCommandDefinitionManager.InstallCommandDefinitionsFromStorageFileAsync(vcdStorageFile);
}
catch (Exception ex)
{
System.Diagnostics.Debug.WriteLine("There was an error registering the Voice Command Definitions", ex);
}
}
然后处理激活:
protected override void OnActivated(IActivatedEventArgs e)
{
// Handle when app is launched by Cortana
if (e.Kind == ActivationKind.VoiceCommand)
{
VoiceCommandActivatedEventArgs commandArgs = e as VoiceCommandActivatedEventArgs;
SpeechRecognitionResult speechRecognitionResult = commandArgs.Result;
string voiceCommandName = speechRecognitionResult.RulePath[0];
string textSpoken = speechRecognitionResult.Text;
IReadOnlyList<string> recognizedVoiceCommandPhrases;
System.Diagnostics.Debug.WriteLine("voiceCommandName: " + voiceCommandName);
System.Diagnostics.Debug.WriteLine("textSpoken: " + textSpoken);
switch (voiceCommandName)
{
...
}
}
}
详细过程描述here
关于c# - Cortana 应用程序和语音命令未显示或无法从 Cortana 运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31809161/
当键入“我能说什么?”时,Cortana 中不显示应用程序和语音命令 我正尝试在 Cortana 的前台使用语音命令并运行 Cortana 语音命令示例,但无法让 Cortana 显示应用程序或打开/
除了默认的 Skype 和 Web 之外,我在 bot 框架中构建了一个 bot,并跨团队配置了它。 然后,我打开了 Cortana 技能,它在那个 channel 对我有用。现在,当我通过部署到组选
我正在尝试以编程方式调用 Cortana。 我已经在使用此代码启动 Cortana await Launcher.LaunchUriAsync(new Uri("bing://home")); 问题是
好的,我有一个支持 Cortana 的应用程序。我有一些命令可以导航到特定页面。但在某些情况下,我只想提供回复(文本或由 Cortana 发音)而不是启动整个应用程序。有什么办法吗? 例如,当您问 C
我正在开发 Cortana 应用程序,我想使用文本查询(以及语音查询)测试我的应用程序,但 Cortana 仅在我使用语音命令时激活我的应用程序。是否可以仅使用文本来测试应用程序? 我应该在 App
我正在开发一个 Cortana 应用程序(Windows 应用程序 C#),我正在使用以下命令来打印调试信息: System.Diagnostics.Debug.WriteLine("voiceCom
我有一个 Windows Phone 8.1 通用应用程序,我正在努力为它添加基本的 Cortana 支持。许多关于此的文章都是针对 Silverlight 等的。我发现很难找到关于此的真正好的信息。
所以我在我的应用程序中添加了使用 Cortana 的语音命令识别。我的 VCD 文件已全部设置,一切都按预期工作,所以现在我必须寻找一些小东西。 我的应用程序中有所有需要的图标(我知道),但是当我的应
现在问这个问题可能有点早,但我正在运行 Windows 10 技术预览版 10122。我想将 Cortana 设置为具有自定义命令。她的工作方式如下: Hey Cortana, 微软将处理该命令,如
我在我的 Azure 帐户上创建并部署了 Node.js 机器人。我还添加了 Cortana channel ,并启用了通过连接服务管理用户身份和请求用户个人资料数据(此处我有 User.Info.E
有没有办法使用用于以编程方式触发 Cortana 的语音命令方法,就好像 Cortana 已注册“Hey Cortana”开始收听一样? 最佳答案 我有同样的问题,但适用于 Windows 10。找到
经过多次挫折后,我意识到 Cortana 语音命令似乎只能在说出时被识别,而不是在使用键盘输入时被识别。例如,安装 CortanaVoiceCommand 后示例项目 我可以说“Adventure W
当应用程序在 Windows Universal Apps 中运行时,是否可以使用 Cortana?我的用例非常简单——当用户说:“打开 {June 2015} 的报告”时,我需要处理这种情况,其中
我正在尝试通过为我的应用程序工作的 Cortana 让用户与后台应用程序进行交互。 每当我执行 RequestDisambiguationAsync(response) 时,Cortana 都会说它遇
我想我已经成功地弄清楚了如何利用 cortana、发送命令以及在应用程序和服务之间异步工作。 但我不知道是否可以手动关闭 Cortana 的确认屏幕。我执行语音命令,发送 ReportSuccessA
我有一个正在为 Windows 10 开发的应用程序,它应该在外部数据达到特定阈值时通知用户。 虽然我可以简单地使用 Windows 通知(并且会依赖它们),但我真的很想与 Cortana 进行更多集
我想使用新的 Cortana 引擎在 Windows 10 上开发 Windows 应用程序。 不幸的是,据我所知,它似乎只适用于 Windows Phone 8.1 项目(例如,我没有找到从不同类型
我想用 UWP 应用程序实现 Cortana,但我一直在寻找在命令前缀后询问随机内容的解决方案。 我知道我可以动态生成 PhraseList,但这不是这里的重点。这是我的实际 VCD 文件: M
我有一个 Cortana XML 文件,我需要输入一个数字。我应该怎么做才能确保可以将其转换为数字? Add 10 dollars add {amount} {currency}
我已经在 azure ML 上部署了一个回归模型,是否可以从 azure 以编程方式获取模型的模型权重/系数,而不是获取预测值? . 最佳答案 我认为您可以这样做,在您的训练实验中将输出添加到您的评估
我是一名优秀的程序员,十分优秀!