Page 8 of 34 FirstFirst 123456789101112131415161718 ... LastLast
Results 71 to 80 of 337

Thread: RRVoice

  1. #71
    Variable Bitrate Jebus's Avatar
    Join Date
    Dec 2007
    Location
    Washington, USA
    Posts
    313
    ON_RRVOICE_STARTUP is supposed to be the trigger for the indicator, but, since installing RC2 I think I found that the "stalling" you indicated earlier is from RR missing the Class Initialize ON_RRVOICE_STARTUP call. Blue and I have seen where the Class Terminate ON_RRVOICE_SHUTDOWN call is missed...consequently your "RunQ;$SKINPATH$Scripts\RRVoice\SystemListening.ex e" is never called...This stalled RR until I changed to "ON_RRVOICE_INIT","RunQ;$SKINPATH$Scripts\RRVoice\ SystemListening.exe"
    Which is further into the plugins routines...
    Then things started working... I am moving the two commands (ON_RRVOICE_STARTUP/ON_RRVOICE_SHUTDOWN) out of the RREXTENSION class and further into the plugin, so they can't be missed...ON_RRVOICE_INIT will be removed, it was for testing...

    Notice I had already changed your exectbl.ini, before first start of RC2, Here is the whole section of exectbl.ini that will need changing....

    /------------------------- RR Voice Control By Jebus------------------------- RRVCOFF||
    "ON_RRVOICE_STARTUP","RunQ;$SKINPATH$Scripts\RRVoi ce\SystemListening.exe"
    "ON_RRVOICE_ON",""
    "ON_RRVOICE_OFF","PLAYSOUND;$SKINPATH$VoiceUnderst ood.wav||SENDMSG;SystemListening;ListeningNo"
    "ON_RRVOICE_SHUTDOWN","SENDMSG;SystemListening;Lis teningClose"
    "RRVCON","SENDMSG;SystemListening;ListeningYes||PL AYSOUND;$SKINPATH$Ding.wav||wait;.2||RRVOICE_ON"
    "RRVCOFF","RRVOICE_OFF"
    /"VOL+","VOL+||SENDMSG;RRVoiceControl;RRVC_VOLU ME"
    /"VOL-","VOL-||SENDMSG;RRVoiceControl;RRVC_VOLUME"
    "VoiceStart","BYIND;Mute;MUTE<<DONOTHING"
    "VoiceEnd","BYIND;Mute;DONOTHING<<MUTE"

    Notice that I removed this: RRVCOFF|| from the first line...
    It is not necessary as the plugin has always done a on/off at startup to load the commands, and the plugin wont let either call run twice...

    Notice that RRVCON and RRVCOFF are arbitrary also, they are skin commands...
    In my RRVoice.skin (DFX4) they are changed to RRVOICEON and RRVOICEOFF

    Notice the VOL+/- commands are commented out.

    Also note that this: ON_RRVOICE_SHUTDOWN|| is not necessary in this line: "END_CMD","ON_RRVOICE_SHUTDOWN||KillColorPicker||S AVETOSKIN;SKINRELOADING;0||BYVAR;closeplayeronexit ;<<KillWinamp||Now_Quit"
    The only reason you had that there is that RR is missing the Class Terminate Call...
    And there's that KILLWINAMP again???

    For instance, if you are on say a weather screen, and change a city, the VR commands are added to the RRVoice.ini, (Oops now the rr.ini )
    Reread above post, Nothing but the plugin path is in RR.ini....

    The name of the ini in the skinpath>plugins>RRVoice is arbitrary...It's just set at Menu.ini right now, ie: C:\Program Files\Road Runner\skins\DigitalFX 5.0\Plugins\RRVoice\Menu.ini
    You only need the [COMMANDS] Section of your ini, I still haven't figured out what to do with the [BackupSettings] section....

    The commands are refreshed when RRVoice see's an ONSCREENCHANGE with the submenu added, Oh I see when a setting is changed...
    OK, I will make a manual refresh of the command menu...
    RRVOICE_REFRESH...
    ...JJG

  2. #72
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,079
    Great, this is what I get for catching up on some needed sleep, a missed discussion....


    There is no more Volume/mute/pause routine. You do that yourself, the way you want in your skin...All you get is ON_RRVOICE_ON and ON_RRVOICE_OFF...Even the indicator is yours to update.
    The sound part is great, the indicator not so much. You should have two indicators, one called "RRVoice" that is always set to return true, which other PI's can check if they want to interact with it. The other indicator, the one that shows that its listening, should be handed internally, as that is one less cmd for rr to process. All you need is an Public variable set and in your PI, when you go into listing mode, set it to true. Then in the ReturnIndicatorEx sub you just return "True/False" depending on the state of your var.

    eg.

    Public IsListening as boolean

    Sub ReturnIndicatorEx(Ind as string) as string

    ReturnIndicatorEx = ""

    Select Case LCase(Ind)
    Case "rrvoice"
    ReturnIndicatorEx = "True"

    Case "rrvoice_listening"
    ReturnIndicatorEx = IIf(IsListening = True,"True","False")

    End Select

    Then just set the IsListening to true in your PI when you going to listing mode and set it to false when your done listing.

    I still haven't figured out what to do with the [BackupSettings] section....
    Completely disregard this section, was just for testing to be able to keep recopying/pasting to the commands section.
    RideRunner...The #1 FE, PERIOD.

    Current Project: DFXVoice [v1.0 Released]
    Next in line: RRMedia v2.0

    DFX 5.1.1 Skin
    Appstore Link

    My RideRunner Plugins
    RRMedia
    RRExtended
    DFXVoice

    "There are no bugs - only undocumented features."

  3. #73
    Super Moderator
    Auto Apps:loading...
    JohnWPB's Avatar
    Join Date
    Sep 2005
    Location
    West Palm Beach, Florida
    Posts
    4,723
    Blog Entries
    1
    Wow! This is working Sooooo much better now! A huge speed improvement when speaking a command, and no delay before the screen shows up.

    I still have some tweaking here to do, as I am also not seeing the systemlistening.exe being "notified".

    Fantastic update, thank you! ! ! !
    Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart

    My Fiero Build Thread

  4. #74
    Variable Bitrate Jebus's Avatar
    Join Date
    Dec 2007
    Location
    Washington, USA
    Posts
    313
    This is getting close to a release version...
    I sent the plugin to all the other RC2 testors
    I hope they report back..
    I found a few other things that I am correcting.
    RRVoiceConfig is getting updated now
    Any questions, just ask...
    ...JJG

  5. #75
    Variable Bitrate Jebus's Avatar
    Join Date
    Dec 2007
    Location
    Washington, USA
    Posts
    313
    Question for those who have tried RRVoice on Vista or Win 7, cause many are saying that it doesn't work on these OP systems.
    What doesn't work about RRVoice? No one has given any details...
    If ya wan't VR in RR on Longhorn then you have to give feedback.
    Does it just fail or work partially? Give me some info!

    From my research, SAPI 5.1 should install on longhorn. You would have to choose it as the default VR Engine.
    C'mon guys, I'm willing to try to make it work, gotta have info, as I do not have any version of Longhorn.
    ...JJG

  6. #76
    MySQL Error
    Auto Apps:loading...

    Join Date
    Oct 2004
    Posts
    5,261
    I just did a quick proof of concept in win7, with system.speech
    and its about one of the easiest thing to do

    and works so well...

    basically, i created a list of commands, told the speech recognition engine about them
    and it just worked
    (never messed with speech before)

    so... jebus, do you want to do a .net3.5 version of your rrvoice? i can give you one of my msdn licensees for win7

    let me know
    -Thanks
    Mitch
    www.rush2112.net

    "Did you test it in carwings??"

    Sun, Come shine my way
    May healing waters bury all my pain
    Wind, Carry me home
    The fabric of reality is tearing apart
    The piece of me that died
    Will return To live again

  7. #77
    Variable Bitrate Jebus's Avatar
    Join Date
    Dec 2007
    Location
    Washington, USA
    Posts
    313
    That's what I saw in my research, just a matter of invoking the system.speech namespace and feeding the grammer engine. Sapi 5.4 and 5.5 are just melded into the system. The issues I seen are that when a user app command is not recognized, the desktop system kicks in and asks you to repeat your command, thinking you are trying to control the desktop, ect... There must be a work around for this, I just haven't found it yet.
    Does SAPI 5.1 install on 7? Some have reported it does, and RRVoice works.
    PM me on your last question...
    ...JJG

  8. #78
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,079
    Might want to add a note here that there is a SAPI 6 between those two, of which is only avail on office 2003. It's speech rec engine is better than the 5.1 with the same or less training. Unfortuntly, you can't transfer your speech profile to it, you have to retrain it. I have the newer office, and seeing that its no longer included in the office suites b/c of now being part of the OS, so I just install just that part of the 2003 suite.

    Just rambling on but just to give some info, for those that do not know...
    RideRunner...The #1 FE, PERIOD.

    Current Project: DFXVoice [v1.0 Released]
    Next in line: RRMedia v2.0

    DFX 5.1.1 Skin
    Appstore Link

    My RideRunner Plugins
    RRMedia
    RRExtended
    DFXVoice

    "There are no bugs - only undocumented features."

  9. #79
    Variable Bitrate navputer's Avatar
    Join Date
    Jan 2007
    Location
    DFW Area
    Posts
    325

    Some Feedback w/RRVoice and Win7

    Quote Originally Posted by Jebus View Post
    That's what I saw in my research, just a matter of invoking the system.speech namespace and feeding the grammer engine. Sapi 5.4 and 5.5 are just melded into the system. The issues I seen are that when a user app command is not recognized, the desktop system kicks in and asks you to repeat your command, thinking you are trying to control the desktop, ect... There must be a work around for this, I just haven't found it yet.
    Does SAPI 5.1 install on 7? Some have reported it does, and RRVoice works.
    PM me on your last question...
    ...JJG
    I can provide a little feedback on this as I had Win7 Pro and tried RRVoice. I tried to install Sapi 5 and it would not install. I tried the version Blue mentioned too when I install Office 2003. It installed but you could not use it as the speech engine with Win7.

    Now, when I tried to use it as is, Win7 speech engine has to be in listen mode (could not figure out how not have it in listen mode and let RRVoice take over) to allow voice control. Thus, when I went to issue a command, Win7 is listening and tries to do something and RRVoice would never pick up or trigger anything.

    I don't have Win7 anymore since I went back to WinXP. I hope this helps.
    Gee

  10. #80
    MySQL Error
    Auto Apps:loading...

    Join Date
    Oct 2004
    Posts
    5,261
    i dont know about sapi5, i dont think i would want it on a win7 system
    the quick lame testing i did with a custom grammer list
    just worked
    and it seems to work too good, i was very impressed

    and how LITTLE amount of code i had to write
    in this sample, i just start the engine...

    and when i say like "START AUDIO" it recognizes it, and puts the text in a textbox


    Code:
    using System;
    using System.Text;
    using System.Windows.Forms;
    using System.Speech.Recognition;
    
    namespace SpeechRecognition
    {
    	public partial class MainForm : Form
    	{
    		SpeechRecognitionEngine recognitionEngine;
    
    		public MainForm()
    		{
    			InitializeComponent();
    
    			recognitionEngine = new SpeechRecognitionEngine();
    
    			recognitionEngine.SetInputToDefaultAudioDevice();
    
    			recognitionEngine.SpeechRecognized += new EventHandler<SpeechRecognizedEventArgs>(recognitionEngine_SpeechRecognized);
    		}
    
    		void recognitionEngine_SpeechRecognized(object sender, SpeechRecognizedEventArgs e)
    		{
    			foreach (RecognizedWordUnit word in e.Result.Words)
    			{
    				// You can change the minimun confidence level here 0 to 1f
    				if (word.Confidence > 0.8f)
    					TextBox1.Text += word.Text + " ";
    			}
    			TextBox1.Text += Environment.NewLine;
    		}
    
    
    		private void stopButton_Click(object sender, EventArgs e)
    		{
    			recognitionEngine.RecognizeAsyncStop();
    		}
    
    
    		private void startAsyncGrammarButton_Click(object sender, EventArgs e)
    		{
    			try
    			{
    				Grammar cg = CreateSampleGrammar();
    
    				recognitionEngine.UnloadAllGrammars();
    				recognitionEngine.LoadGrammar(cg);
    				recognitionEngine.RecognizeAsync(RecognizeMode.Multiple);
    			}
    			catch (Exception ex)
    			{
    				MessageBox.Show(ex.Message);
    			}
    		}
    
    		private Grammar CreateSampleGrammar()
    		{
    			Choices commandChoices = new Choices("Audio", "Radio", "Nav", "Weather");
    			GrammarBuilder grammarBuilder = new GrammarBuilder("Start");
    			grammarBuilder.Append(commandChoices);
    			Grammar g = new Grammar(grammarBuilder);
    			g.Name = "RR Commands";
    			return g;
    		}
    
    	}
    }
    Attached Files Attached Files
    -Thanks
    Mitch
    www.rush2112.net

    "Did you test it in carwings??"

    Sun, Come shine my way
    May healing waters bury all my pain
    Wind, Carry me home
    The fabric of reality is tearing apart
    The piece of me that died
    Will return To live again

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •