VoxCommando

VoxNastics (User Guides and Mods) => XML Exchange => Topic started by: nime5ter on May 27, 2013, 09:47:48 AM

Title: Search Wikipedia
Post by: nime5ter on May 27, 2013, 09:47:48 AM
This is a simple command for searching Wikipedia using Dictation.
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<command id="279" name="open wikipedia" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>Launch.OpenURL</cmdType>
    <cmdString>http://en.wikipedia.org/wiki/{1}</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>search wikipedia for</phrase>
  <payloadDictation>payloadDictation: Regular</payloadDictation>
</command>
Title: Re: Search Wikipedia
Post by: Kalle on May 27, 2013, 09:52:05 AM
This is a simple command for searching Wikipedia using Dictation.
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<command id="279" name="open wikipedia" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>Launch.OpenURL</cmdType>
    <cmdString>http://en.wikipedia.org/wiki/{1}</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>search wikipedia for</phrase>
  <payloadDictation>payloadDictation: Regular</payloadDictation>
</command>
It looks like you get more fun with VC  ;)
Title: Re: Search Wikipedia
Post by: nime5ter on May 27, 2013, 10:50:10 AM
It looks like you get more fun with VC  ;)

It's true, I was nothing before I discovered VC. When James finally handed me my own keys to VoxCommando, I became a LOT more fun ...
http://youtu.be/5nZniMYCZp4 (http://youtu.be/5nZniMYCZp4)
Title: Re: Search Wikipedia
Post by: Kalle on May 27, 2013, 11:08:54 AM
It's true, I was nothing before I discovered VC. When James finally handed me my own keys to VoxCommando, I became a LOT more fun ...
http://youtu.be/5nZniMYCZp4 (http://youtu.be/5nZniMYCZp4)
:biglaugh
Title: Re: Search Wikipedia
Post by: Dominique on July 08, 2014, 03:31:32 AM
Well this is cool.  However it is only to launch Wiki.  How can we get it to actually search Wiki?

Using a database like Wiki for information in regards to questions would be extremely useful.


Judging from James tutorial, I hear using Google and Wiki search is possible.  Can someone share code to get that set up??
Title: Re: Search Wikipedia
Post by: nime5ter on July 08, 2014, 09:40:09 AM
The xml here does exactly that. It shows how you can search for Wikipedia results (or you could do a Google lucky search).

But I think maybe you are asking how to have search results read aloud to you? That's a different objective.

There are several threads on the forum for commands like that. The Wolfram Alpha option is the most versatile. Users need to go to the Wolfram site to get their own API key first. http://voxcommando.com/forum/index.php?topic=1463.msg12773#msg12773

There's also one that reads aloud the first paragraph of a wikipedia article: http://voxcommando.com/forum/index.php?topic=1549.msg13484#msg13484