SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH4 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 08-25-07, 01:24 PM   #136
minsc_tdp
XO
 
Join Date: Mar 2007
Posts: 411
Downloads: 1
Uploads: 0
Default

Quote:
Originally Posted by Digital_Trucker
I guess I'm the only person with the problem (or everyone else using the compiled version is running at 1024x768), but I can't get it to recognize my resolution. I tried making the change in the batch file and I've even gone so far as to attempt to recompile voice.pl with the resolution change (not having much luck there, gonna try some more today).

Any thoughts on why it wouldn't work by making the change in the batch file?
Whoops, sorry about that DT! That was a minor brain fart on my part in the code. I've updated it and posted it as 2.01.
__________________
June 29 2016 - shSpeech v2.55 - Voice Command for Silent Hunter 4! View Thread
minsc_tdp is offline   Reply With Quote
Old 08-25-07, 01:39 PM   #137
Digital_Trucker
Silent Hunter
 
Join Date: Jul 2007
Location: The Peach State
Posts: 4,171
Downloads: 141
Uploads: 10
Default

Quote:
Originally Posted by minsc_tdp
Whoops, sorry about that DT! That was a minor brain fart on my part in the code. I've updated it and posted it as 2.01.
Hey, no problem dude! Thanks for the quick fix. As for the brain farts, my motto has always been "If you don't have an occasional brain fart, then you must not have a brain"
__________________

RSM-GIEP-Killflags-LV Tribute-Playable Elco __Peace be with you, Dave.

Digital_Trucker is offline   Reply With Quote
Old 08-25-07, 02:00 PM   #138
minsc_tdp
XO
 
Join Date: Mar 2007
Posts: 411
Downloads: 1
Uploads: 0
Default

Quote:
Originally Posted by Anti_Ship_Fella
well sounds great but i dont have a microphone
You know, I tested this on a laptop the other day that has a built-in mic. That mic sucks SO bad but yet it recognized great with this. You could probably pick up a simple desktop mic for less than $10.

Here you go, a whole bunch for less than $1

If you want to spend some money, I'm using this monster
__________________
June 29 2016 - shSpeech v2.55 - Voice Command for Silent Hunter 4! View Thread
minsc_tdp is offline   Reply With Quote
Old 08-25-07, 04:24 PM   #139
AVGWarhawk
Lucky Jack
 
AVGWarhawk's Avatar
 
Join Date: Jun 2005
Location: In a 1954 Buick.
Posts: 27,343
Downloads: 90
Uploads: 0


Default

Install.........easy!
Voice recognition...........good!
Voice got confused response............sometimes.
Wife thinks I'm nuts talking to the computer......not uncommon for me to do so who cares?


Does the voice recognition get better over time? Reason I ask, I say bridge and it takes me there and then the binocs come up.

Other than that, a really neat program. Do not touch the keyboard but for very few things. The best part.....YOU FEEL LIKE YOU ARE SKIPPERING THE BOAT!!!! It is really cool. You say a command and you get a response of "Yes sir". Now, just to get it to recognize my command all the time and you got a winner here.
__________________
“You're painfully alive in a drugged and dying culture.”
― Richard Yates, Revolutionary Road
AVGWarhawk is offline   Reply With Quote
Old 08-25-07, 05:39 PM   #140
minsc_tdp
XO
 
Join Date: Mar 2007
Posts: 411
Downloads: 1
Uploads: 0
Default

Quote:
Originally Posted by AVGWarhawk
get it to recognize my command all the time and you got a winner here.
The speech recognition out of the box is decent but keep in mind, it knows nothing whatever about you and the idiosyncracies of your voice. It helps a lot to train it, and of course, to enunciate well, but mostly training.

It won't improve over time on it's own, as it has no way to know if it made a mistake.

Read the ReadMe sections on tuning your microphone and training the speech engine. Under Control Panel > Speech, if you go through a 10 minute training session, that greatly improves the recognition quality.

Also, if certain commands are being falsely recognized (like binoculars when you say bridge), sometimes it helps to change the voice commands slightly to make them a little more different. Perhaps "binoculars please" and "go to bridge", for example.
__________________
June 29 2016 - shSpeech v2.55 - Voice Command for Silent Hunter 4! View Thread
minsc_tdp is offline   Reply With Quote
Old 08-25-07, 05:45 PM   #141
Excalibur Bane
XO
 
Join Date: Oct 2005
Posts: 429
Downloads: 20
Uploads: 0
Default

Ah, ha! I got you this time! The list is updated before your sig is even updated! Beat THAT! Muhahaha! :rotfl:
__________________
Looking for a list of mods for SH4? Everything you need is here: List Of Modifications for SH4 v1.3

"The only thing necessary for evil to triumph, is for good men to do nothing."
Excalibur Bane is offline   Reply With Quote
Old 08-25-07, 05:49 PM   #142
Digital_Trucker
Silent Hunter
 
Join Date: Jul 2007
Location: The Peach State
Posts: 4,171
Downloads: 141
Uploads: 10
Default

Quote:
Originally Posted by Excalibur Bane
Ah, ha! I got you this time! The list is updated before your sig is even updated! Beat THAT! Muhahaha! :rotfl:
Gonna have to change your nick to "Speedy Gonzales" :rotfl:
__________________

RSM-GIEP-Killflags-LV Tribute-Playable Elco __Peace be with you, Dave.

Digital_Trucker is offline   Reply With Quote
Old 08-25-07, 05:56 PM   #143
minsc_tdp
XO
 
Join Date: Mar 2007
Posts: 411
Downloads: 1
Uploads: 0
Default

Quote:
Originally Posted by Excalibur Bane
Ah, ha! I got you this time! The list is updated before your sig is even updated! Beat THAT! Muhahaha! :rotfl:
LOL

one other thing everyone... in my zeal to keep sh4speech up to date for Trigger Maru, I didn't notice that TM really does change the layout of some of the command bar buttons, so a stock configuration is broken for a few commands now.

I've updated the system with two launch executables now, one for stock and one for TM, with separate sets of CSV files for each (though there's still just one Voice Command function - that won't matter, even though TM has a few extras that won't work in stock mode, no biggie.)

UPDATE: OK it is posted! with two executables, one for stock and one for Trigger Maru (but still requires stock key config in SH4, commands.cfg) Highly recommend everyone upgrade to this, as always just unzip into your current folder.
__________________
June 29 2016 - shSpeech v2.55 - Voice Command for Silent Hunter 4! View Thread

Last edited by minsc_tdp; 08-25-07 at 06:59 PM.
minsc_tdp is offline   Reply With Quote
Old 08-25-07, 07:18 PM   #144
AVGWarhawk
Lucky Jack
 
AVGWarhawk's Avatar
 
Join Date: Jun 2005
Location: In a 1954 Buick.
Posts: 27,343
Downloads: 90
Uploads: 0


Default

Quote:
Also, if certain commands are being falsely recognized (like binoculars when you say bridge), sometimes it helps to change the voice commands slightly to make them a little more different. Perhaps "binoculars please" and "go to bridge", for example.
Ok, so I can change a one word like "go to bridge" and this will help? The basic word of "bridge" still needs to be spoken yes? It is quite facinating that this works as well as it does. I hardly touch the keyboard. Also, when I fire up a game do I always need to say how many torpedoes and reset dials?
__________________
“You're painfully alive in a drugged and dying culture.”
― Richard Yates, Revolutionary Road
AVGWarhawk is offline   Reply With Quote
Old 08-25-07, 07:47 PM   #145
minsc_tdp
XO
 
Join Date: Mar 2007
Posts: 411
Downloads: 1
Uploads: 0
Default

Quote:
Originally Posted by AVGWarhawk
Ok, so I can change a one word like "go to bridge" and this will help? The basic word of "bridge" still needs to be spoken yes? It is quite facinating that this works as well as it does. I hardly touch the keyboard. Also, when I fire up a game do I always need to say how many torpedoes and reset dials?
So, here's what I mean. In voice_commands.csv, the third column is the spoken command (the second one is mostly ignored), so instead of:

4,Bridge,Bridge
57.5,Binoculars,Binoculars

You would make those:

4,Bridge,go to bridge
57.5,Binoculars,binoculars please

Then they would be sufficiently different to prevent overlapping recognitions.

Also do the Configure Microphone under Control Panel > Speech. This only takes moments and can help a lot. Make sure when you speak the test phrases that your level meter sits right in the middle of the green area while speaking. If not, adjust your microphone gain/volume levels accordingly. This guarantees the system hears what you're saying at normal volumes - too quiet is hard to recognize, and too loud causes weird distortions at the top-end that sound staticy and hurt recognition.

You do need to say how many tubes once each time upon loading sh4speech (you can do it before the game loads if you want). I suppose I could cache this in a file somewhere so you have to say it less often, but for now yeah you have to say it each time. Read the section in the Readme called STARTING A GAME for details on how this works, and the other two similar commands, and when exactly you need to do it.

I'm glad to see you're getting great results. I've been trying to convince the skeptical that the voice recognition is excellent - Microsoft and various universities have been working on this stuff for many, many years, and we get to reap the benefit of their efforts. I think this sub genre is a perfect application of it, since there's not very many commands (the fewer commands, the better the recognition), and there's not a lot of similarity between them (bridge and binoculars aside). But I think the number of commands is the key thing.

Picture this: If I said I'm going to say one of two words - "bridge" or "torpedoes", you could probably pick which one I was saying from 100 feet away, underwater with my head in a paper bag. The opposite of that, if I was going to pick any word in the english language, conditions would have to be a lot better for you to figure out what I said. The same applies to this system. A lot of speech recognition stuff is used for dictating into MS Word and for that, it's trying to use the entire dictionary, so it screws up a lot.
__________________
June 29 2016 - shSpeech v2.55 - Voice Command for Silent Hunter 4! View Thread
minsc_tdp is offline   Reply With Quote
Old 08-26-07, 04:42 AM   #146
minsc_tdp
XO
 
Join Date: Mar 2007
Posts: 411
Downloads: 1
Uploads: 0
Default idea

Hey all how about this:

"captain on deck!" or
"captain on the bridge" = start recognizing commands
"XO you have the bridge" = ignore commands until you return to deck

Man that's dorky... cool but dorky as all hell.

Just posted an update 2.04 which fixes the fuel/battery/o2/co2 buttons when using the command bar in unlocked/autohide mode.
__________________
June 29 2016 - shSpeech v2.55 - Voice Command for Silent Hunter 4! View Thread

Last edited by minsc_tdp; 08-26-07 at 05:02 AM.
minsc_tdp is offline   Reply With Quote
Old 08-26-07, 08:48 AM   #147
Digital_Trucker
Silent Hunter
 
Join Date: Jul 2007
Location: The Peach State
Posts: 4,171
Downloads: 141
Uploads: 10
Default

Quote:
Originally Posted by minsc_tdp
Hey all how about this:

"captain on deck!" or
"captain on the bridge" = start recognizing commands
"XO you have the bridge" = ignore commands until you return to deck
I like the idea of a listen/don't listen command (with the facility to change the spoken command). I am one of those unfortunate people with no mute button on my headset and lots of screaming/screeching people running around in the room. It really gets aggravating when I'm setting up a shot with my last fish and my son's girlfriend comes in the room all dramaed up about something and fires my last torpedo at the sun.:rotfl:
__________________

RSM-GIEP-Killflags-LV Tribute-Playable Elco __Peace be with you, Dave.

Digital_Trucker is offline   Reply With Quote
Old 08-26-07, 09:12 AM   #148
panthercules
The Old Man
 
Join Date: Apr 2005
Posts: 1,336
Downloads: 6
Uploads: 0
Default

Yep - sounds like another good idea - I'd suggest another couple of command options:

"X O you have the conn" (sounds better than "bridge" when you're submerged)

"X O you are relieved" (for starting listening back up)

BTW - I'm still testing and tweaking, but so far this is looking really good and lots of fun. One question though - have you changed any of these .csv files since version 2.0b?:

voice_commands.csv
key_commands.csv
key_codes.csv

These are the ones I've been playing with in my customization, and I have them merged based on 2.0b - just want to make sure I haven't missed anything in those files in the newer versions (gonna go look for that comparison program you mentioned a while back, but haven't got it yet).

Thanks for all the great (and FAST!) work
__________________
panthercules is offline   Reply With Quote
Old 08-26-07, 12:06 PM   #149
minsc_tdp
XO
 
Join Date: Mar 2007
Posts: 411
Downloads: 1
Uploads: 0
Default

Quote:
have you changed any of these .csv files since version 2.0b?:

voice_commands.csv
key_commands.csv
key_codes.csv
Here's a comparison report versus 2.0 using the FC command line (which you also have) (sorry I deleted 2.0b) As you can see all I did was add a few commands:

Comparing files voice_commands.csv and VOICE_COMMANDS20B.CSV
***** voice_commands.csv
516,Patrol Course,Set up a patrol course,
516,Patrol Course,search pattern,
517,Time To End Course,Time to end course,
***** VOICE_COMMANDS20B.CSV
516,Patrol Course,Set up a patrol course,
517,Time To End Course,Time to end course,
*****

***** voice_commands.csv
517.5,Range To End Course,Range to course end,Trigger Maru
517.5,Range To End Course,maximum range,Trigger Maru
517.5,Range To End Course,maximum range at current speed,Trigger Maru
524,Recognition Manual,Recognition manual,
***** VOICE_COMMANDS20B.CSV
517.5,Range To End Course,Range to course end,Trigger Maru
524,Recognition Manual,Recognition manual,
*****

***** voice_commands.csv
557,Send Bearing To TDC,send bearing to TDC,
557,Send Bearing To TDC,sonar send bearing to TDC,
558,Send Range To TDC,send range to TDC,
558,Send Range To TDC,sonar send range to TDC,
558.1,Follow Nearest Warship Contact,follow nearest warship contact,Trigger Maru
***** VOICE_COMMANDS20B.CSV
557,Send Bearing To TDC,send bearing to TDC,
558,Send Range To TDC,send range to TDC,
558.1,Follow Nearest Warship Contact,follow nearest warship contact,Trigger Maru
*****
__________________
June 29 2016 - shSpeech v2.55 - Voice Command for Silent Hunter 4! View Thread
minsc_tdp is offline   Reply With Quote
Old 08-26-07, 01:29 PM   #150
Rockin Robbins
Navy Seal
 
Join Date: Mar 2007
Location: DeLand, FL
Posts: 8,899
Downloads: 135
Uploads: 52


Default

Quote:
Trigger Maru, and possibly other mods, change the commands.cfg file. The commands.cfg file can be restored from the !BACKUP stored by JGSME to fix sh4speech, I don't know if that will have any effect on Trigger Maru or any other mods that have custom commands.cfg files. Of course you could go and change all the key commands in the CSV as well but this is really designed for the default key configuration. Trigger Maru has some additional command bar items that are supported by sh4speech.
That's a deal killer for me. I'm not going to settle for "I don't know if that will have any effect on Trigger Maru" when you already have a different batch file for Trigger Maru. Either this thing is compatible with Trigger Maru or it isn't. Looks like it isn't without some hacking to make it talk to Trigger's commands.cfg file. Ducimus wouldn't have changed it unless there was an advantage or a necessity to it. If you went through the process of making a different installation for Trigger Maru why didn't you do the whole job and make it work properly?

If I go through the csv file and make it actually work with Trigger Maru, will you use it? Trigger Maru is the mountain, you are Mohammed. You must go to the mountain. The mountain will not come to you.
Rockin Robbins is offline   Reply With Quote
Reply


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

Forum Jump


All times are GMT -5. The time now is 09:38 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.