Print Page | Close Window

Website Navigation

Printed From: MSSpeech-Forum
Category: Windows™ Speech Recognition Forums
Forum Name: New Users & General Questions
Forum Description: Ask questions, give and get answers.
URL: https://www.msspeech-forum.com/forum_posts.asp?TID=315
Printed Date: 18/Nov/2024 at 2:03pm
Software Version: Web Wiz Forums 12.02 - http://www.webwizforums.com


Topic: Website Navigation
Posted By: Stryyder
Subject: Website Navigation
Date Posted: 29/Jul/2013 at 1:22pm
Hi, I'm new to the site and speech recognition and I have a question which may be simple for some of you super duper programmers.

I have the following inside a macro.

<listenFor>Navigate [...]</listenFor>
   <run command="http://www.{[...]}.com/"/>

It works rather well after some training, however, it throws in a lot of %20's (to indicate a space) when I don't want there to be a space ever for this particular command. E.G. If I say "Navigate Youtube" it will attempt to take me to www.you%20tube.com. Is there a sneaky way around this? 

Thanks for any and all help.




Replies:
Posted By: mmarkoe_admin
Date Posted: 30/Jul/2013 at 3:57pm
Our programmer was asked to take a look at your inquiry.
Marty


Posted By: antihadron
Date Posted: 31/Jul/2013 at 9:09pm
The main issue here is that the system is not picking up 'youtube' but 'you tube'  the middle space is being encoded to %20 on the browser.   Unfortunately, alot of the time domain names do not resolve to 'real' words.  So you have to either add them to the dictionary or to the grammar of the Macro.

See the example at:
http://archive.msdn.microsoft.com/wsrmacros/Wiki/View.aspx?title=Semantic%20Properties&referringTitle=Windows%20Speech%20Recognition%20Macros%20Wiki - http://archive.msdn.microsoft.com/wsrmacros/Wiki/View.aspx?title=Semantic%20Properties&referringTitle=Windows%20Speech%20Recognition%20Macros%20Wiki

so for this it would be something like:

<listenFor>Navigate [website]</listenFor>
   <run command="http://{[website.location]}/"/>
</listenFor>

<rule name="website"> <list propname="location"> <p valstr="www.youtube.com">YouTube</p> <p valstr="mail.yahoo.com">yahoo mail</p> <p valstr="www.cnn.com">CNN</p> <p valstr="www.wikipedia.org">Wikipedia</p> </list> </rule>

I've not tested this but it should be pretty easy to get this to work. You could also add an alternate that is exactly like what you had before to catch anything that is pronounceable and resolves to a word.

Best Regards,

Nathaniel


Posted By: Stryyder
Date Posted: 02/Aug/2013 at 9:57am
That worked well after a couple of tweaks to make the code work! The idea is really good! Thanks Nathaniel! I tried to post my working code but it's not working for some reason. Shrug.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.02 - http://www.webwizforums.com
Copyright ©2001-2019 Web Wiz Ltd. - https://www.webwiz.net