dragonfly

how hard is it to create a grammar class like this?

user says: class string buffer name *pause* big string
computer prints: StringBuffer bigString

dns allows for pauses in formatted phrases. do you think it would be possible to do this?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

These are things for

These are things for voicecode.

http://web.archive.org/web/20080213071927/voicecod...

Quintijn

firegift wrote: how hard is

firegift wrote:

how hard is it to create a grammar class like this?

user says: class string buffer name *pause* big string
computer prints: StringBuffer bigString

dns allows for pauses in formatted phrases. do you think it would be possible to do this?

Individual recognitions are for all intents and purposes independent. In that case, you would need to capture everything before the Pause and then when you receive the subsequent utterance, check for the existence of the previously captured state.

You probably need to brush up on the
gotResultsObject in Natlink, which will allow you to process all utterances, even if they are otherwise used by natlink. This will let the second part of the command check for the prior state of the first part of the utterance and then react accordingly.

I hope that helped.

Goal of the exercise

Hi Firegift,

What Reckoner says above is true. On the other hand, it is in principle possible to make "chains of rules" where the second one can only be said after the first one, even with a pause in between. (I use such a system for efficient speech-based data entry into spreadsheets.)

But I'm not actually sure that is what you want. I assume you want to program by voice efficiently. (As do many of us!) And I'm afraid there is no out-of-the-box solution to do that at the moment.

Personally, I believe that Dragonfly is a perfect foundation on which to build a speech-based programming environment. But nobody has built this yet. If you feel called to do so, though, please let me know and I will help out in every way possible. Smiling

Bottom line of this message: why do you want to be able to pause between the "name" and "big string"? I currently implement "human solution", where I see the first and second parts as one complete unit and always speak them together. If you could explain to me in more detail what you're trying to achieve here, I can try to help you some more.

-- Christo.

1. The example that I gave

1. The example that I gave is not exactly the best example to illustrate the what I want to achieve. I want to say "open folder" and then paused and try to remember the name of the folder that I want to open and then say "program files". This is just for generic grammar that I would like to use for couple purpose not specific to programming.
Can you post the "chains of rules" grammar? Thank you.

2. Voice code requires the use of Emacs however I would like to use eclipse.

3. As for programming with speech, I'm trying to find efficient way to do this but my strategy is to not just use speech alone but in conjunction with a tablet PC. A tablet PC allows me to navigate quickly. I am able to use all the mouse functions without developing RSI. The only problem is the keyboard. I have to find a way to replace it with speech recognition. So this makes the task of developing a speech engine for programming easier than if I just use speech alone. The syntax with brackets make it harder. And it's harder to use code completion with speech.

I agree with Quintijn that

I agree with Quintijn that VoiceCode is designed to handle precisely these kinds of situations. And I'm inclined to believe Christo when he says that Dragonfly can handle the situation.

OTOH, if this is a unique situation rather than a continuing need, then I think DNS scripting or Vocola/Unimacro can also handle it in either of these script forms:

class [parm1] [parm2] name [parm3] [parm4]*

*n.b., no pause possible

Or

class [parm1] [parm2]
name [parm3] [parm4]

n.b., line break implies pause between these two utterances

But if you are a programmer then I strongly recommend looking at VoiceCode or Dragonfly.

BTW, some of the hesitancy I feel approaching this post involves use of the phrase "grammar class" -- I'm not sure if you are referring to a programming expression or DNS usage. The following discussion about "pauses in formatted phrases" suggests to me that you're talking about DNS usage, in which case I should point out that the examples you posit would involve writing scripts, where strictly speaking pauses aren't allowed. Formatting involves items of the general vocabulary which are recognized as having special, well, formatting rules. So I second the suggestion that you discuss in more detail what you're aiming for to get better feedback.

Bruce

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.


Syndicate content