MSSpeech-Forum Homepage
Forum Home Forum Home > Windows™ Speech Recognition Forums > Macros and Macro Development
  New Posts New Posts RSS Feed - <speech> tag
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

<speech> tag

 Post Reply Post Reply
Author
Message
edo View Drop Down
Member
Member


Joined: 02/Oct/2010
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote edo Quote  Post ReplyReply Direct Link To This Post Topic: <speech> tag
    Posted: 07/Oct/2010 at 12:09am
OK, trying again. I'm having trouble  using the <speech> tag in WSR Macros; I can't seem to properly run the examples with that tag in the User's Guide that I just purchased.

Here's the problem. I try to run a simple macro such as this:

<?xml version="1.0" encoding="UTF-16"?>
<speechMacros>
 <command>
<listenFor>good day</listenFor>
<waitFor seconds=".25"/>
<setTextFeedback>good day to you too</setTextFeedback>
  </command>
[signature]
</speechMacros>

Instead of the expected audio output "good day to you too", the macro returns that phrase in the WSR window. That is, somehow <speech> is being interpreted as <setTextFeedback> (Macros with  <setTextFeedback> run as expected.)

I've tried different command and response phrases, the response still appears in the WRS window instead of driving my speakers. I've reinstalled WSR Macros, to no effect.

I'm running Vista x64 SP2. Input is via Andrea Superbeam mic. and USB-SA. Output is via RealTek mainboard sound and an external audio deck. Speech recognition is quite good. I'm doing these tests in notepad, wordpad, or MS WORD. I've shut down WSRToolkit and Macro Express. I've disabled spellcheckers and other processes that might interfere, and I don't see anything in Task Manager or Services that would interfere with WSR or WSRMacros. (Of course I may be missing something.)

In trying to solve this problem I found something else weird about WSR, but I'll save that for another post. Can anyone point help me solve this problem?? - edo

Back to Top
Gherkin View Drop Down
Member
Member


Joined: 06/Sep/2010
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gherkin Quote  Post ReplyReply Direct Link To This Post Posted: 07/Oct/2010 at 12:45am

Try this:

<?xml version="1.0" encoding="UTF-16"?>
<speechMacros>
  <command>
        <listenFor>Hello</listenFor>
        <speak>Hello Master!</speak>
  </command>
</Signature>
</speechMacros>
 
 
I believe you may have misread the manual, take another look at page 25.  The speak command is to tell WSR to "say" something The setText is for displaying text. 
 
Good Luck
 


Edited by Gherkin - 07/Oct/2010 at 12:48am
Back to Top
edo View Drop Down
Member
Member


Joined: 02/Oct/2010
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote edo Quote  Post ReplyReply Direct Link To This Post Posted: 07/Oct/2010 at 2:09am
Phooey - I see I copied in the problem macro incorrectly in my query. The macro in question does have the correct tags:

<?xml version="1.0" encoding="UTF-16"?>
<speechMacros>
 <command>
<listenFor>good day</listenFor>
<waitFor seconds=".25"/>
<speak>good day to you too</speak>
  </command>
[signature]
</speechMacros>

This is the one that looks like it's running <setTalkFeedback>. So, as in my original question, why is <speak> running incorrectly? Sorry for adding to the confusion. - edo
Back to Top
edo View Drop Down
Member
Member


Joined: 02/Oct/2010
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote edo Quote  Post ReplyReply Direct Link To This Post Posted: 07/Oct/2010 at 2:20am
And I just rechecked with the <speak> macro - it doesn't return the response <speak>...<</speak> in the WSR command window, it returns the text between  <listenFor> and </listenFor>. Thus in your example, if I say "hello," I get "hello" in the WSR window, and no "hello Master!"  in audio. I created your macro in WSRMacros and signed it properly. Also tried copying your code in directly, with the same result.
Back to Top
Gherkin View Drop Down
Member
Member


Joined: 06/Sep/2010
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gherkin Quote  Post ReplyReply Direct Link To This Post Posted: 09/Oct/2010 at 5:21am
Hmmmm that is very odd indeed...
 
Have you gotten it to say anything at all? Ever?
 
If not there must be somthing set up worong somewhere.  If you have heard it speak before, Im not sure what the problem could be.  You see "Hello" in the text because thats the command you gave, but you should be getting a hello back in voice...
 
 


Edited by Gherkin - 09/Oct/2010 at 5:27am
Back to Top
edo View Drop Down
Member
Member


Joined: 02/Oct/2010
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote edo Quote  Post ReplyReply Direct Link To This Post Posted: 09/Oct/2010 at 6:34pm
Originally posted by Gherkin Gherkin wrote:

Hmmmm that is very odd indeed...
 
Have you gotten it to say anything at all? Ever?
 
If not there must be somthing set up worong somewhere.  If you have heard it speak before, Im not sure what the problem could be.  You see "Hello" in the text because thats the command you gave, but you should be getting a hello back in voice...
Thanks for your note. No, I've not gotten the <speak> command to return audio, but I've only been playing with it for about a week. All other macros I've tried work fine.

Not to complicate matters, here's the other interesting thing I've noticed: Suppose I output something via voice input, for example the line "Here's a sentence." Then if I immediately say "select sentence" and then say "speak", I get audio output "Here's a sentence," along with the correction pane with suggestions for "speak." If however  I select a previously inputted string, or a typed-in string, saying "speak" has no effect.

FWIW I can't find anywhere in Rob's Rhapsody list a command "speak."

Before working with the <speak> tag but after I'd loaded WSRMacros I'd been messing around with a registry cleaner (Registry Booster by Uniblue). I'm wondering that maybe a key value was deleted in the course of registry cleanup. Haven't found anything yet, but will continue making my way through WSRMacros keys and the Registry Booster logs. <sigh> - edo



Back to Top
Gherkin View Drop Down
Member
Member


Joined: 06/Sep/2010
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gherkin Quote  Post ReplyReply Direct Link To This Post Posted: 18/Oct/2010 at 1:36am
At this point I would try a complete uninstall and reinstall of the program and the sdk.  I would think that would clear up any issues I would think.  Maybe redownload the SDK just to be sure you have everything clean.
 
Sorry for the frustration hope you stick with it
Back to Top
edo View Drop Down
Member
Member


Joined: 02/Oct/2010
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote edo Quote  Post ReplyReply Direct Link To This Post Posted: 18/Oct/2010 at 9:46am
Originally posted by Gherkin Gherkin wrote:

At this point I would try a complete uninstall and reinstall of the program and the sdk.  I would think that would clear up any issues I would think.  Maybe redownload the SDK just to be sure you have everything clean.
 
Sorry for the frustration hope you stick with it
Not to be a pest, what SDK are you referring to? All I'm offered at MS's download site is WSRMacros.msi , which I did previously reinstall to no effect.
Back to Top
ed View Drop Down
Member
Member


Joined: 29/Nov/2009
Location: South of Boston
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote ed Quote  Post ReplyReply Direct Link To This Post Posted: 08/Nov/2010 at 6:55pm
I thought I'd close out this month-old query. A few days ago I had to considerably repair my vista x64 OS due to an unrelated problem. And now I find that the <speak> tag works fine. Unfortunately I can't tell what driver caused the original problem with WSRMacros. - edo
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.02
Copyright ©2001-2019 Web Wiz Ltd.

This page was generated in 0.267 seconds.

Microsoft Most Valuable Professional

§- Thank you for visiting our Windows Speech Recognition and Macro Forum.. -§