Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Front Ends > Road Runner > RR Plugins


Reply
 
Share Thread Tools Display Modes
Old 07-08-2009, 12:31 AM   #1
Constant Bitrate
 
Jebus's Avatar
 
Join Date: Dec 2007
Location: Vancouver, Wa.
Posts: 161
Jebus is an unknown quantity at this point
RRVoiceControl

This Version Requires RideRunner 11/1/09

RRVoiceControl Version 1.1.0.83 BETA Copyright 2009 The Garage
RRVCConfig Version 1.0.0.44 BETA Copyright 2009 The Garage

Developed for Driving Safety while using RideRunner Frontend.

RRVoiceControl was developed using DFX 4.0 skin

It should work with any skin.
RRVoiceControl is a Voice Control Application based on SAPI 5.1 VR
You must have SAPI 5.1 VR installed and setup for it to work.
Unknown if newer versions of SAPI are compatible.
Developed and Tested on Windows 2000
Unknown if newer versions of Windows are compatible.
Developed using Visual Basic 6.
If you have RideRunner installed you should have all VB6 runtime files needed.
RRVoiceControl was developed for my personal use.
I am offering it free of charge for personal use.
No Refunds. Use at your own risk.

## SETUP ##
Turn off RideRunners built in VR in rr.ini if you have it on.
Make sure that SAPI and your Microphone is set up correctly.
To hear system beeps, Make sure your "PC Speaker" volume is set correctly.
Unzip and Drop the files into any folder of your choice, preferably "C:\Program Files\RideRunner\RRVoiceControl"
Open RideRunner to expose RR's API then
Open RRVoiceControl to set ini vars from RR and
RRVoiceControl will minimize to system tray, right click on it and pop it up, then
Open RRVConfig and Click the "Create" Button and let it find your MP3 and WMA files.
Note: Currently only finds MP3 and WMA Files.
You will note that you have full ini editing capabilities in RRVConfig.
Debug is on by default in both apps, Leave it on for now.
You can close RRVConfig now if you wish.

## Testing ##
Take a look at and scroll through the default commands listed in the Commands Listbox in RRVoiceControl.
I have it currently setup with a few default commands as you can see in the Commands Listbox.
Now click on the word "VR OFF" on the RRVoiceControl form or
Use the skin commands as noted below or
Use serialswitch and a momentary button as noted below
To enable VR.
You will hear a beep and "VR OFF" will change to "VR ON".
Say "Audio" and you will hear a different beep and see the application and RR recognize your command.
There is a lower frequency beep for an unrecognized command. If so repeat your command.
If everything is correct you will see the RideRunner command in bold at the bottom of RRVoiceControl and RR will change to Audio skin.
If not. Go back and Setup or Train SAPI or Setup your microphone correctly.
If you don't hear the system beeps, Make sure your "PC Speaker" volume is set correctly.
I will not provide support for your SAPI VR or Microphone issues.
/-----------------------------------------------------------------

## RideRunner Exectbl.ini and Skin Commands ##

This is what I have at the top of my DFX4 Exectbl.ini. Look towards the end of the "ExtraPrograms" line.

"ExtraPrograms","2DLogo||UserSwitch||CDLaunch||Cou nter||3DLogo||SetTempBackground||PresetLoader||IGS ettingLoader||SETVAR;RRLoaded;Loaded||ReLock||Load List||RELAYS||RRVC"

"RELAYS","RUN;$RRPATH$SerialSwitch\SerialSwitch.ex e"
"RRVC","RUN;$RRPATH$RRVoiceControl\RRVoiceControl. exe"

This is what I have at the bottom of my DFX4 Exectbl.ini
You must have these commands for RRVoiceControl to work properly
/-----------------------------------------------------------------

/ RR Voice Control

"ONRRVC_ON","SETIND;!RRVC_Ind;ON"
"ONRRVC_OFF","SETIND;!RRVC_Ind;OFF"
"RRVCON","SENDMSG;RRVoiceControl;RRVC_ON"
"RRVCOFF","SENDMSG;RRVoiceControl;RRVC_OFF"
"VOL+","VOL+||SENDMSG;RRVoiceControl;RRVC_VOLU ME"
"VOL-","VOL-||SENDMSG;RRVoiceControl;RRVC_VOLUME"
"QUIT","CLOSEWINDOW;RRVoiceControl||ENDVC"
"ENDVC","QUIT"
/-----------------------------------------------------------------

## Explanation of Commands ##

Executed "ON VR ON" or "ON VR OFF" from RRVoiceControl.

ONRRVC_ON
ONRRVC_OFF

Example Indicator Code in Exectbl.ini:

"ONRRVC_ON","SETIND;!RRVC_Ind;ON"
"ONRRVC_OFF","SETIND;!RRVC_Ind;OFF"

Turns VR ON or OFF, must be sent with sendmessage as shown below.

RRVC_ON
RRVC_OFF

Example Button or Label Code in Exectbl.ini:
"RRVCON","SENDMSG;RRVoiceControl;RRVC_ON"

VR shuts off after each command recognized.
"RRVCOFF","SENDMSG;RRVoiceControl;RRVC_OFF"

You must have this in Exectbl.ini to have Volume drop when issuing commands.

"VOL+","VOL+||SENDMSG;RRVoiceControl;RRVC_VOLU ME"
"VOL-","VOL-||SENDMSG;RRVoiceControl;RRVC_VOLUME"

## Skin Commands ##
Example Menu Skin Hidden Label Command to Enable/Disable VR.

This puts a large hidden executable label in the center of the Menu Skin to switch VR on.

L,301,235,204,124,,,,,,"EXEC;RRVCON||=",

This puts a smaller hidden executable label in the center of the Menu Skin to switch VR off.

L1,443,371,91,85,,,,,,"EXEC;RRVCOFF||=",

Example Skin Indicator Code
I have a couple of pngs embedded in my menu_on and menu_off pngs

I,252,150,21,20,"!RRVC_Ind"
/-----------------------------------------------------------------

I use SerialSwitch to enable VR with an External Button
Here is the Exectbl.ini code I use for SerialSwitch.
You can see above I load SerialSwitch with Exectbl.ini also.

/-------------SerialSwitch-----------------
"DTRON","SENDMSG;SerialSwitch;DTR_ON"
"DTROFF","SENDMSG;SerialSwitch;DTR_OFF"
"RTSON","SENDMSG;SerialSwitch;RTS_ON"
"RTSOFF","SENDMSG;SerialSwitch;RTS_OFF"
/"ONDTR_ON",""
/"ONDTR_OFF",""
/"ONRTS_ON",""
/"ONRTS_OFF",""
/"ONCD_ON",""
/"ONCD_OFF",""
/"ONCTS_ON",""
/"ONCTS_OFF",""
Turns on VR
"ONDSR_ON","SENDMSG;RRVoiceControl;RRVC_ON"
Turns off VR
/"ONDSR_OFF","SENDMSG;RRVoiceControl;RRVC_OFF"
"QUIT","CLOSEWINDOW;SerialSwitch||ENDIT"
"ENDIT","QUIT"
/-----------------------------------------------------------------

## Momentary Switch Setup ##

Turn RTS on, with skin command or manually in SerialSwith, to provide PC power to Pin 7
DSR input is Pin 6
I am using pins 6 and 7 to connect a momentary pushbutton switch
Push switch and VR is on.

/-----------------------------------------------------------------

## Editing Ini Files ##
RRVoiceControl is fully configurable.
Any Voice Command in RRVoiceControl.ini can be associated with any or multiple RR Commands.
This should be self explanatory by studying the ini files.
Note: No command will show up twice in the Command list

## Music ##

RRVoiceControl utilizes a new command in RideRunner to eliminate the need for hidden playlists in every skin.
This new command is PLAYITEM;xxx Where xxx is playlist position of current playlist.
This is one area I have put a lot of effort into getting right. I have 1150 songs. Some of you have over 10,000 songs.
When you clicked on the "Create" button in RRVConfig you will have found out if this works.
Thats why there is a stop button. Might have issues there. The command list should handle the last folder names.
The songs for each folder are only listed when a folder command is given. Example: Load Eagles, lists the songs for that folder.
This brings us to your music structure. I use the last folder name as you will see. Future effort will be to expand on this.
This also brings us to song names. There are some album/song names that just don't lend themselves to voice recognition.
Take for example Korn, 4U or Korn, K@#0%! How in the hell is VR gonna recognize those commands? How are you gonna say them?
In VR all numbers must be spelled out for the command match. Ha! spell this, K@#0%!. You can't.
So to get VR to recognize these, they must be edited in your Music.ini or Songs.ini. Change them to something VR can recognize.
If you don't, you can't VR these songs. Just change the K@#0%! to something you can say.
Use RRVConfig to do this. There is a Find Function, a Set Value Function, and a Delete Key Function.
If you change the structure of your Music Paths, you must Delete and Create your ini files in RRVConfig.
RRVConfig will make backups of your RRVoiceControl.ini, Music.ini, and Songs.ini files.
Remember you might have changed K@#0%! to something VR can understand
Now Start RideRunner, Start RRSkinTool, and start setting up your VR Menu Commands for your favorite skin.
Please post the bugs...
I'm sure I missed something in the app and or in this readme. Remember, This is BETA. Questions? Ask...
...JJG
Attached Images
  
Attached Files
File Type: zip RRVoiceControl-11-6-09.zip (122.0 KB, 59 views)
__________________
========================================
SerialSwitch Version 5.0
Major Rewrite
RRVoiceControl Version 1.1.0.83 BETA
RRVCConfig Version 1.0.0.44 BETA
========================================

Last edited by Jebus; 11-06-2009 at 09:12 PM. Reason: Updates
Jebus is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 07-08-2009, 12:31 AM   #2
Constant Bitrate
 
Jebus's Avatar
 
Join Date: Dec 2007
Location: Vancouver, Wa.
Posts: 161
Jebus is an unknown quantity at this point
This Version Requires RideRunner 11/1/09
RRVoiceControl Version 1.1.0.83 BETA Copyright 2009 The Garage
RRVCConfig Version 1.0.0.44 BETA Copyright 2009 The Garage
...JJG
__________________
========================================
SerialSwitch Version 5.0
Major Rewrite
RRVoiceControl Version 1.1.0.83 BETA
RRVCConfig Version 1.0.0.44 BETA
========================================

Last edited by Jebus; 11-06-2009 at 09:13 PM.
Jebus is offline   Reply With Quote
Old 07-08-2009, 07:40 AM   #3
RoadRunner Mastermind
 
guino's Avatar
 
Join Date: Nov 2004
Location: Vitória, ES - Brazil
Posts: 9,060
guino will become famous soon enoughguino will become famous soon enough
Nice!
__________________
Ride Runner RR's Myspace

"Being happy is not about having what you want, it's about wanting what you have."
"The best things in life are always free - but that doesn't mean money can't buy you good things."
guino is offline   Reply With Quote
Old 07-08-2009, 09:31 AM   #4
Maximum Bitrate
 
Join Date: Nov 2005
Posts: 591
Iceman_jkh is on a distinguished road
Sub'd. Looking fwd to this.
Iceman_jkh is offline   Reply With Quote
Old 07-08-2009, 11:38 AM   #5
Super Moderator
 
JohnWPB's Avatar
 
Join Date: Sep 2005
Location: West Palm Beach, Florida
Posts: 3,745
JohnWPB is a jewel in the roughJohnWPB is a jewel in the roughJohnWPB is a jewel in the rough
Looks fantastic! Gonna give it a try now.
__________________
Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DigitalFX 4.0 Skin Available at www.JohnWPB.com

My Fiero Build Thread
JohnWPB is offline   Reply With Quote
Old 07-08-2009, 12:11 PM   #6
Super Moderator
 
JohnWPB's Avatar
 
Join Date: Sep 2005
Location: West Palm Beach, Florida
Posts: 3,745
JohnWPB is a jewel in the roughJohnWPB is a jewel in the roughJohnWPB is a jewel in the rough
Ok, sorry first bug report. I can not for the life of me get it to scan my music collection. I hit Setup, DefaultMediaPath, and put the value of H:\MP3 in the key, and then "Set Key".

When it searches, it finds 328 files and stops. Looking at the songs.ini is even more confusing. It is getting stuff from all sorts of places. The DFX4.0/Scripts/CNN audio files, files from in Yahoo Messengers path, audio snippits from MSN Messenger path as well as scattered area's all over my drive C:

I have deleted all files, and re-unzipped the app into:

C:\Program Files\Road Runner\Plugins\RRVoice Control\

I then run the exe again, and setup, defaultpath, set key... I have done this 5 times now, and it is still finding stuff from all over the place....

Here is a section of the songs.ini. The new mail alert is from my Email Prog, the CNN stuff is from the DFX directory... ect ect...,

[Program FilesMSN Messenger]
Play newalert=SETLIST;1||PLEXEC
Play newemail=SETLIST;2||PLEXEC
Play nudge=SETLIST;3||PLEXEC
Play online=SETLIST;4||PLEXEC
Play outgoing=SETLIST;5||PLEXEC
Play phone=SETLIST;6||PLEXEC
Play type=SETLIST;7||PLEXEC
Play vimdone=SETLIST;8||PLEXEC
[Program FilesRoad RunnerskinsDFX Release BuildScriptsCNN-News]
Play CNN-News-05-25-09-7PM=SETLIST;1||PLEXEC
Play CNN-News-10-12-08-11PM=SETLIST;2||PLEXEC
Play CNN-News-10-12-08-7PM=SETLIST;3||PLEXEC
Play CNN-News-10-12-08-8PM=SETLIST;4||PLEXEC
Play CNN-News-10-13-08-12AM=SETLIST;5||PLEXEC
[Program FilesRoad RunnerskinsDigitalFX 3.0ScriptsCNN-News]
Play CNN-News-06-29-09-6AM=SETLIST;1||PLEXEC
[Program FilesRoad RunnerskinsDigitalFX 5.0ScriptsCNN-News]
Play CNN-News-05-25-09-7PM=SETLIST;1||PLEXEC
Play CNN-News-10-12-08-11PM=SETLIST;2||PLEXEC
Play CNN-News-10-12-08-7PM=SETLIST;3||PLEXEC
Play CNN-News-10-12-08-8PM=SETLIST;4||PLEXEC
Play CNN-News-10-13-08-12AM=SETLIST;5||PLEXEC
[Program FilesRoad RunnerskinsInnovatekScriptsCNN-News]
Play CNN-News-05-25-09-7PM=SETLIST;1||PLEXEC
Play CNN-News-10-12-08-11PM=SETLIST;2||PLEXEC
Play CNN-News-10-12-08-7PM=SETLIST;3||PLEXEC
Play CNN-News-10-12-08-8PM=SETLIST;4||PLEXEC
Play CNN-News-10-13-08-12AM=SETLIST;5||PLEXEC
[Program FilesSWiSHmaxsamplesTutorials]
Play 88A=SETLIST;1||PLEXEC
Play movie=SETLIST;2||PLEXEC
[Program FilesWinamp]
Play demo=SETLIST;1||PLEXEC
[Program FilesYahoo!MessengerMediamisc]
Play applause=SETLIST;1||PLEXEC
Play grouplaff=SETLIST;2||PLEXEC
Play moan=SETLIST;3||PLEXEC
Play ooh=SETLIST;4||PLEXEC
Play scream=SETLIST;5||PLEXEC
[WINDOWSsystem32oobeimages]
Play title=SETLIST;1||PLEXEC



Here is a snippit from the Music.ini. It contains all sorts of programs, scripts and such that are in a folder on my desktop, none of which are .mp3 files:

[Artists]
Load Documents and SettingsJohnDesktopDigitalFX=Documents and SettingsJohnDesktopDigitalFX
Load Documents and SettingsJohnDesktopDigitalFXAll Lyrics StuffLyric Parser Scripts=Documents and SettingsJohnDesktopDigitalFXAll Lyrics StuffLyric Parser Scripts
Load Documents and SettingsJohnDesktopDigitalFXAll Lyrics StuffTemp ReadArtist=Documents and SettingsJohnDesktopDigitalFXAll Lyrics StuffTemp ReadArtist
Load Documents and SettingsJohnDesktopDigitalFXAll Lyrics StuffTempMP3=Documents and SettingsJohnDesktopDigitalFXAll Lyrics StuffTempMP3
Load Documents and SettingsJohnDesktopDigitalFXDigitalFX InnovatekScriptsCNN-News=Documents and SettingsJohnDesktopDigitalFXDigitalFX InnovatekScriptsCNN-News
Load Documents and SettingsJohnDesktopDigitalFXPlay Intro When RR Starts=Documents and SettingsJohnDesktopDigitalFXPlay Intro When RR Starts



Lastly, here is the paths section from the RRVoiceControl.ini, and it is saving the path correct to my music root folder correctly: (I tried the music path both with and without the trailing slash (\)

[Paths]
DefaultLoadPath=C:\Program Files\Road Runner\Plugins\RRVoice Control
DefaultMediaPath=H:\MP3\


EDIT:

By the way, all of the other commands, aside from selecting music, are working perfectly! I am able to jump to the CD changer, weather, menu's ect ect... Very nice! Very nice job for a Beta!

.

.

.
__________________
Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DigitalFX 4.0 Skin Available at www.JohnWPB.com

My Fiero Build Thread

Last edited by JohnWPB; 07-08-2009 at 01:01 PM.
JohnWPB is offline   Reply With Quote
Old 07-08-2009, 12:45 PM   #7
Super Moderator
 
JohnWPB's Avatar
 
Join Date: Sep 2005
Location: West Palm Beach, Florida
Posts: 3,745
JohnWPB is a jewel in the roughJohnWPB is a jewel in the roughJohnWPB is a jewel in the rough
Sorry another small problem haha! A bug, and a solution....

For others that are testing this, when you click the VR Off in the menu to speak to the system, move your mouse off of that area after you click it. If you do not move the mouse, it will continue to listen causing it to appear hung up.
__________________
Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DigitalFX 4.0 Skin Available at www.JohnWPB.com

My Fiero Build Thread
JohnWPB is offline   Reply With Quote
Old 07-08-2009, 12:49 PM   #8
Constant Bitrate
 
almera's Avatar
 
Join Date: Aug 2004
Posts: 176
almera is on a distinguished road
Works very nice! Also I had similar issues about music function, beside that fantastic, thanks!
__________________
----------------------------------------------------------------------
almera is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 07-08-2009, 12:51 PM   #9
THE EXPERIMENTER
 
carputer1's Avatar
 
Join Date: Sep 2007
Location: UK,Surrey
Posts: 1,358
carputer1 will become famous soon enough
subscribe
carputer1 is offline   Reply With Quote
Old 07-08-2009, 01:50 PM   #10
Terminal flasher
 
Sonicxtacy02's Avatar
 
Join Date: Sep 2004
Location: Woodbridge, VA
Posts: 6,307
Sonicxtacy02 has a spectacular aura aboutSonicxtacy02 has a spectacular aura about
I didnt have any issues creating the .ini files. Having to supply the default music path seems redundant though. Cant it just be read from RR? Does this plugin actually communicate with RR aside from the send messages?
__________________
03 Acura RSX Coupe
Developer of: RRFusion, MovieTimes.NET, (new)RRMail, RRShoutcast, & RRVehicle Maintenance
Currently working on: RRVehicle Maintenance
Sonicxtacy02 is offline   Reply With Quote
Old 07-08-2009, 01:58 PM   #11
Constant Bitrate
 
Join Date: Jul 2007
Location: Buena Park, So Cali
Posts: 192
drewbp is an unknown quantity at this point
I use GPS speed to control my volume which obviously creates a variable situation. I use the volume controls on DFX 4 to choose between Volume- for windows down and Volume+ for windows closed. These choose 2 different GPS speed volume settings.

The attachement shows my code for both.

How do I proceed. I noticed that part of the code gets cut off in the set up.

And I am having the same problem as others with my music path. It seems like it does not recognize secondary hard drives ( D:\ ) and only searches the RR install drive ( C:\ ) for music.

Thanks.
Attached Files
File Type: txt Speed Variable.txt (1.4 KB, 24 views)

Last edited by drewbp; 07-08-2009 at 02:22 PM.
drewbp is offline   Reply With Quote
Old 07-08-2009, 03:00 PM   #12
Super Moderator
 
JohnWPB's Avatar
 
Join Date: Sep 2005
Location: West Palm Beach, Florida
Posts: 3,745
JohnWPB is a jewel in the roughJohnWPB is a jewel in the roughJohnWPB is a jewel in the rough
Quote: Originally Posted by drewbp View Post
And I am having the same problem as others with my music path. It seems like it does not recognize secondary hard drives ( D:\ ) and only searches the RR install drive ( C:\ ) for music.

I just tried this as a test, and the above is correct. I placed a single artist folder on my C:\ Drive and it created the songs.ini correctly. So the plugin seems to only accept music located on the system drive.

I can say "Load Abba" and the playlist screen loads, but then I can not play any of the songs.

I tried:
Play Abba One of us
Play one of us
load abba one of us
load one of us


and about 10 other spoken variations.
__________________
Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DigitalFX 4.0 Skin Available at www.JohnWPB.com

My Fiero Build Thread
JohnWPB is offline   Reply With Quote
Old 07-08-2009, 03:25 PM   #13
Constant Bitrate
 
Join Date: Jul 2007
Location: Buena Park, So Cali
Posts: 192
drewbp is an unknown quantity at this point
Quote: Originally Posted by drewbp View Post
I use GPS speed to control my volume which obviously creates a variable situation. I use the volume controls on DFX 4 to choose between Volume- for windows down and Volume+ for windows closed. These choose 2 different GPS speed volume settings.

The attachement shows my code for both.

How do I proceed. I noticed that part of the code gets cut off in the set up.

Okay so I figured this out for myself. In the RRVoiceControl.ini I changed the currentvolume to CurrentVolume=SETVAR in the paths section and I now can say Windows Open and it will set up my GPS volume settings for that, also works for Windows Closed.

My next step is to get the pc to open the windows and sunroof for me.
drewbp is offline   Reply With Quote
Old 07-08-2009, 04:46 PM   #14
Constant Bitrate
 
Join Date: Jul 2007
Location: Buena Park, So Cali
Posts: 192
drewbp is an unknown quantity at this point
Quote: Originally Posted by drewbp View Post

And I am having the same problem as others with my music path. It seems like it does not recognize secondary hard drives ( D:\ ) and only searches the RR install drive ( C:\ ) for music.

Okay I figured this out too. I deleted the music and songs .ini files and replace the VoiceControl.exe from the original zip. Lo and behold it found all the songs on the D drive.
drewbp is offline   Reply With Quote
Old 07-08-2009, 04:49 PM   #15
Terminal flasher
 
Sonicxtacy02's Avatar
 
Join Date: Sep 2004
Location: Woodbridge, VA
Posts: 6,307
Sonicxtacy02 has a spectacular aura aboutSonicxtacy02 has a spectacular aura about
My music files are on my D:\... I didnt have a problem.. so who knows.
__________________
03 Acura RSX Coupe
Developer of: RRFusion, MovieTimes.NET, (new)RRMail, RRShoutcast, & RRVehicle Maintenance
Currently working on: RRVehicle Maintenance
Sonicxtacy02 is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




All times are GMT -5. The time now is 01:10 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics