News:

HOT TIP! Exploring the commands packaged in VC's standard configurations is a great way to learn how to build your own. You can also clone a command as a starting point: just right-click and select "Clone" (or type Alt-C).

Main Menu

Search Wikipedia

Started by nime5ter, May 27, 2013, 09:47:48 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nime5ter

This is a simple command for searching Wikipedia using Dictation.
<?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>
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

Kalle

#1
Quote from: nime5ter on May 27, 2013, 09:47:48 AM
This is a simple command for searching Wikipedia using Dictation.
<?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  ;)
***********  get excited and make things  **********

nime5ter

#2
Quote from: Kalle on May 27, 2013, 09:52:05 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
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

Kalle

Quote from: nime5ter on May 27, 2013, 10:50:10 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
:biglaugh
***********  get excited and make things  **********

Dominique

#4
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??

nime5ter

#5
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
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)