在Web应用程序中集成Cortana语音命令而不依赖Windows

在Web应用程序中集成Cortana语音命令而不依赖Windows,web,voice-recognition,cortana,Web,Voice Recognition,Cortana,是否可以在基于javascript的通用web应用程序中使用Cortana语音命令功能,该应用程序可以在任何webbrowser/平台上运行?(例如,通过html5语音输入和某种Web服务)或网页是否必须加载到安装Cortana客户端的基于windows的计算机上 我遇到了这个示例,但它似乎希望Cortana安装在运行页面的设备上: 这是一个基本示例,您可以编辑代码以运行应用程序: cortana.html <!DOCTYPE html> <html> <head

是否可以在基于javascript的通用web应用程序中使用Cortana语音命令功能,该应用程序可以在任何webbrowser/平台上运行?(例如,通过html5语音输入和某种Web服务)或网页是否必须加载到安装Cortana客户端的基于windows的计算机上

我遇到了这个示例,但它似乎希望Cortana安装在运行页面的设备上:

这是一个基本示例,您可以编辑代码以运行应用程序:

cortana.html

<!DOCTYPE html>
<html>
<head>
    <title>Cortana Example</title>
    <!--Cortana meta tag pointing to VCD file on the server-->
    <meta name="msapplication-cortanavcd" content="/vcd.xml"/>
</head>
<body>

</body>
</html>
vcd.xml

<?xml version="1.0" encoding="utf-8"?>
<VoiceCommands xmlns="http://schemas.microsoft.com/voicecommands/1.2">
  <CommandSet xml:lang="en-us" Name="RJS">
    <CommandPrefix>MyApp</CommandPrefix>
    <Example>MyApp search for foo</Example>
    <Command Name="Search">
      <Example>search {message} using myapp</Example>
      <ListenFor RequireAppName="BeforeOrAfterPhrase">Search for {searchTerm}</ListenFor>
      <Feedback>Searching for {searchTerm} with MyApp</Feedback>
      <Navigate Target="/search.htm"/>
    </Command>
    <PhraseTopic Label="searchTerm" Scenario="Dictation"></PhraseTopic>
  </CommandSet>
</VoiceCommands>

MyApp
MyApp搜索foo
使用myapp搜索{message}
搜索{searchTerm}
使用MyApp搜索{searchTerm}

请从链接中添加一些内容。@Robert为什么要我添加链接的内容?!例如,如果链接将来断开,您的现有答案将是无用的。如果您将链接中的相关内容添加到您的答案中,则会阻止此操作。
<?xml version="1.0" encoding="utf-8"?>
<VoiceCommands xmlns="http://schemas.microsoft.com/voicecommands/1.2">
  <CommandSet xml:lang="en-us" Name="RJS">
    <CommandPrefix>MyApp</CommandPrefix>
    <Example>MyApp search for foo</Example>
    <Command Name="Search">
      <Example>search {message} using myapp</Example>
      <ListenFor RequireAppName="BeforeOrAfterPhrase">Search for {searchTerm}</ListenFor>
      <Feedback>Searching for {searchTerm} with MyApp</Feedback>
      <Navigate Target="/search.htm"/>
    </Command>
    <PhraseTopic Label="searchTerm" Scenario="Dictation"></PhraseTopic>
  </CommandSet>
</VoiceCommands>