Page 3 of 3 FirstFirst 123
Results 21 to 28 of 28

Thread: Enable voice control wherever a textbox/OSK exists? HOW??

  1. #21
    Newbie
    Join Date
    Jul 2006
    Posts
    35
    No, haven't tried it yet. I'll test it tomorrow in a VM (gotta have something to do at work). I have question though this piece of code

    $rr.Execute("pause") ;Pause music ;if playing, then pause the music, else skip

    Will this pause Sirius or XM also ? I use LSX 3.2 skin and when I hit the play / pause button (which I'm assuming is the same as the code above) it sets the Sirius in scan mode.

  2. #22
    Maximum Bitrate
    Join Date
    Nov 2005
    Posts
    597
    I dont have XM, but according to Skin Commands.txt (In RR directory):

    "PAUSE" - Pauses Music/Video or Mutes FM/XM/SIRIUS respectively
    "RESUME" - Resumes Music/Video or UnMutes FM/XM/SIRIUS respectively

    I used those two specifically, so it would work regardless of what media you were experiencing

  3. #23
    Newbie
    Join Date
    Jul 2006
    Posts
    35
    See told you

  4. #24
    Maximum Bitrate
    Join Date
    Nov 2005
    Posts
    597
    Guino> Any chance of adding code to RR so that '.sdk' can be used to command the Mic on/off directly? Something that will set voice recognition to be immediately active ('Listening for command' not 'listening for keyword').

    Perhaps something like $rr.voice=ListenforCommand or $rr.voice=MicOn after doing the necessary '...roadrunner.sdk' declaration??

  5. #25
    FLAC
    Auto Apps:loading...
    EL CAMINO's Avatar
    Join Date
    Jul 2005
    Location
    upland california us
    Posts
    1,283
    this will activate voice if used with F10, theres 2 CUSTOM indicators for voice control, one for the mic when is on("!MIC_ENABLED") and the other for when is in listening mode, ("!ONCOMMAND"), i'm thinking in a way to add some artist albums and genres to the xml, from winamps plugin, that way if RR plays it is going to be added to the xml, and then compile it to commands. lets say something like... "Computer Play Sade" or "Computer Play Classic Rock". is doable, i got the playlist done, but still having problems with voice control.

    Code:
    #Include <Misc.au3>
    AutoItSetOption("WinTitleMatchMode", 3)
    $test = "text Mode"
    If WinExists($test) Then Exit 
    AutoItWinSetTitle($test)
    
    $rr=ObjCreate("RoadRunner.sdk")
    if not IsObj($rr) then Exit
    $oMyError = ObjEvent("AutoIt.Error","MyErrFunc")
    
    
         While 1
    	    	$Status = $rr.getinfo("STATUS")
    	        If  $oMyError.windescription then          	      ;if theres an error using RR sdk, see if RR is running.
    	        	if Not WinExists("RoadRunner") then ExitLoop  ;exit if RR is not Running.
    	    	 EndIf
                 if MouseGetCursor() = 5 And _IsPressed("01") then
                    ;MsgBox(4096, "", " text mode")
    			    _Activate()
    			 EndIf
    	       Sleep (3000) ;push and hold 3 sec for executing.
    	   WEnd
    
    ;==============================================================================================
    ;Activate Voice 
    ;==============================================================================================
    
    Func _Activate()
    if $Status = "PLAY" Then $rr.execute("PAUSE") ;in case music is playing before click, pause	
    $Voice = WinGetHandle("RoadRunner", "")
    WinActivate($Voice, "")
    Send("{F10}")
    EndFunc
    
    ;==============================================================================================
    ;AI's error reporting Object
    ;==============================================================================================
    
    Func MyErrFunc()
        Local $err = $oMyError.number
        If $err = 0 Then $err = -1
        SetError($err) 
    Endfunc
    
    Func _exit()
    Exit
    EndFunc

  6. #26
    Newbie
    Join Date
    Jul 2006
    Posts
    35
    This is a bit off topic but sorta related:

    @Ice

    Do you use iGuidance and if so are you able to use your script to input destinations ? I've noticed ( this maybe be just my configuration) that voice control doesn't respond when I have a destination programmed in iGuidance.

    Ok back to your regularly scheduled discussion.

  7. #27
    Maximum Bitrate
    Join Date
    Nov 2005
    Posts
    597
    The problem with sending F10 is that the focus comes away fom RR periodically (atleast it does when I try editing text of artist/album/etc in cdrip plugin), which then stops my voice control script from listening. Also, how do you use/probe those indicators?

    Sorry.. I dont use iGuidance.

    EDIT:
    Heres the problem!

    The CDRIP plugin is actually an app called RRCDIP.exe which sits in front of Roadrunner. So when you activate the $voice window, you push CDRIP to the background.
    Code:
    $Voice = WinGetHandle("RoadRunner", "") 
    WinActivate($Voice, "")
    During the time when the CDRIP plugin is running, RR's screen shows "LOADING" - but it is normally (unseen because its) in the background. This is why the LOADING screen is seen - because CDRIP is now behind. You must perform a

    Code:
    $CDRip = WinGetHandle("RRCDRip", "") 
    WinActivate($CDRip, "")
    to get the RRCDRip window in front again - Not a good method! There may be other apps with similar issues. Best would be to issue the F10 command in another fashion. Directly via the .sdk in my opinion.

    Ice

  8. #28
    Maximum Bitrate
    Join Date
    Nov 2005
    Posts
    597
    Anyone making any progress on this?
    I havent had a chance to look at it for a while, but hopefully I will this week.

    Does anyone know where in the source the voice control code is?
    Can we mod that ourselves and submit to guino?

    I really dont like this whole "send {F10}" business.

Page 3 of 3 FirstFirst 123

Similar Threads

  1. voice control sw
    By TwinII in forum Software & Software Development
    Replies: 31
    Last Post: 08-18-2002, 05:15 AM
  2. voice control idea
    By crazyshaxs in forum Software & Software Development
    Replies: 4
    Last Post: 02-25-2002, 01:32 AM
  3. Replies: 22
    Last Post: 08-13-2001, 02:42 PM
  4. Voice Control
    By bjrady in forum Software & Software Development
    Replies: 4
    Last Post: 05-26-2001, 04:45 AM
  5. Voice Control for Winamp
    By Stryph in forum Software & Software Development
    Replies: 8
    Last Post: 09-15-2000, 12:20 AM

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
  •