View Full Version : [REL] sh4speech - voice command for SH4
BigWalleye
05-16-13, 08:05 PM
Have you tried just running sh4speech without starting sh4? you should be able to see in the DOS window whether speech recognition is interpreting your voice commands properly and issuing the correct keyboard commands to the OS. If it is, then your keyboard mapping may be different than standard US. and you may need to edit key_codes.csv to map properly to your keyboard. You should not need speechsdk. Everything you need should already be present in Win8.
EDIT: Just went back and looked at some previous posts on this thread. Another poster couldn't get his keyboard handler to work with Knepfler's program. He ran SH4 in windowed mode and the problem went away. Have you tried this?
in_vino_vomitus
05-17-13, 12:20 AM
thanks for the reply - have run shspeech minus sh4 and yep- it's picking up my commands, it just isn't passing them on - tried running in windowed mode without success, but never thought about editing key_codes.csv - I'll try that directly - Thanks again :)
Cybermat47
05-17-13, 04:34 AM
Does this require a microphone or webcam to use? Because I haven't got any of those as far as I know...
in_vino_vomitus
05-17-13, 06:21 AM
It needs a mic' - Mine is built into my laptop.
Good news - something worked - The problem wasn't key codes. I had sh4 set to run as admin - I disabled this - I may have tweaked a couple of other things - Whatever, it's working now, although a couple of keys needed reallocating to different commands - rear tubes cycle with the "E" key, crash Dive id CTRL-D etc.
The major bugbear at the moment is the dials, which don't correspond to the increments I specify. I'm looking at the csv file formats and it's going to be fun teaching myself what sin cos and tan all do - I didn't realise in school, that I'd ever need them. But we didn't have games like this back then :)
The good news though is the sub can be adequately controlled with the program as is, and it can only get better - so thanks again to minsc' for writing it
BigWalleye
05-17-13, 07:19 AM
Cybermat47, it needs a microphone. A cheap headset with boom mic will cost you about $10-15 at Wally's and it's all you need.
IIV, you need to modify dials.csv. Forget the sines and cosines. You just have to change the locations of dial centers and radii. No trig needed, but you do need some way to measure the locations of the dials in pixels. You can use screenshots and P'Shop, or just measure them on the screen. Depending on the megamod you are using and your resolution, I may have a set of .csv files that will work for you.
EDIT: Checked your sig. I have a set of corrected files that work with TMO at 1920x1080. They might work for your res. If you wish, I can make the files available.
in_vino_vomitus
05-17-13, 07:35 AM
BW - thanks for the offer, but my laptop runs in 1366x786 - I'm guessing your files won't work - Looks like I'll have to do it by hand :(
BigWalleye
05-17-13, 09:21 AM
IVV, mine works fine at 1366x768. 1920x1080 is exactly 16/9. 1366x768 is almost 16/9. (Difference of 0.04%) I do have my sh4speech set up to use my own version of Commands.cfg, so you would either have to adapt or convert.
Remember to change the resolution setting in trigger_maru.bat.
If you are going to fix it yourself, you will need to change command_bar.csv and dials.csv. Careful measurement will get you close, then you can refine it by trial and error. I found that ALT-TABing out of SH4 is the fastest way to test the changes, but you must restart sh4speech each time you make a change to any .csv. sh4speech caches the .csv files on initialization, so any change you make while it is running won't have an immediate effect. Tweaking all the dials, the TDC, and the command bar took me maybe 8-10 hours. Not trivial, but not that daunting, either.
I take it that no RFB version exists?:wah:
in_vino_vomitus
06-17-13, 07:24 PM
BW _ I didn't spot your reply earlier - The problem I ended up having was that turning on speech recognition on my laptop meant there were a bazillion other commands that the thing thought I meant - not sure how I'll work round that yet - But the aspect ratio info is very very useful - thanks :)
BigWalleye
06-20-13, 07:39 PM
IVV, once I trained my voice rec, I didn't have any problems. I load up SH4speech and, since there is a limited set of possible commands, it usually finds the right one without fuss. I did have a problem with a very classy Logitech wireless headset I bought - the sound was killer, but the voice pickup did not seem to come through very clear. I've used a $20 cheapo from the Shack with better results. I now use a Sony wireless set intended for the Playstation and get excellent voice rec.
Fish40, there is an RFB-compatible version. Get everything you need here: http://knepfler.com/shSpeech/ I had to tweak some of the files to get them to work the dials right at my rez - 1920x1080. Happy to share them with you if you want. Pls PM.
Thanks BigWalleye, but it seems the only options contained in the D/L are for TMO and Stock. Didn't see any reference to RFB. Any info would be helpful, as I'd like to give this a try.
BigWalleye
06-23-13, 10:45 AM
You are correct - there is no specific setup for RFB in the sh4speech download. Haven't played SH4 in a while, and did the sh4speech installation even further back, so I had to recall what it took. IIRC, the stock sh4speech version was what I started with, since RFB uses the stock keyboard and GUI. You need to modify the command_bar.csv file, because the RFB command bar is different from the stock. Not difficult to do. (I have a modified command_bar.csv I could share if you like.) The dials.csv may have to be modified too, as I think the stock game dial layout changed after the last release of sh4speech. (I have a modified file for that, too.) All of the .csv files are really easy to modify using Excel (ANY version!) and you will quickly want to modify the voice_commands.csv yourself just to add your own personal preferences for orders. Whatever you do, make sure you keep a pristine copy of the original sh4speech download, so you can fall back if you mess anything up.
This stuff is all Erik Knoepfler's work, so I can't upload it. But if you are interested, PM me and I'll get it to you. Meanwhile, you can download Knoepfler's package and at least use all the stock key commands, which, IIRC, are the same for RFB. That'll give you a taste of the system and you can decide if you want to go further.
If you do, I'd be happy to share all of my modified files with you. You would then have a turn-key system you could use immediately. I use a highly personalized commands.cfg keyboard layout, so you would have to drop that into your game with JSGME. Then just set your screen res in the sh4speech - realfleetboat.bat, strap on your headset, and start giving orders.
I also have complete working packages for stock SH4, TMO, and OM.
Gizmosis
10-12-13, 03:46 PM
Just having a quick look at this and l still think TeamSpeak is easier to work with.. I've been using it FREE for years now and never found any problems.. All you need is one to host and the rest to join as client.. Anyone need help setting it up you know how to contact me.. I'll be on for the next few hours playing SH4 with my mate in Texas.. I'm in UK.:yeah:
Stargazer
10-14-13, 02:28 PM
Forgive me if I'm misunderstanding, but Teamspeak is voice-conferencing amongst people... SHSpeech is voice-control of the SH4 application to reduce button pressing and mouse clicking... I don't see how the two can be interchangable.
For the record, this is a top-mod/utility and totally changes the feel of silent hunter. In my opinion, even more so than any of the super-mods.
Rob.
PhilipWebb059
11-18-13, 10:10 PM
Hello gents;
I'm a bit confused with this even though I have d/l ed and installed the needed programs, I still cannot get this to work.
I am using Win8. The windows program sees that I have a mic on but the game is deaf. sh4speech - stock - Shortcut is active but hears zip.
Can anyone assist? Would appreciate it. Thanks
minsc_tdp
11-28-13, 05:22 PM
Sorry for my absence. I hope to make time to come back and address questions.
BigWalleye, you have my blessing to make any modifications you've made available to the community via download links in any way you see fit. No reason not to share with all. My only suggestion is to document the changes as best you can. The documentation (and a bit of support) was the reason that shSpeech was able to be ported to SH3 and actually work, and the reason that it continues to have a community of users at all in my absence.
I do sometimes think about it, and the main thing that has always bothered me is that the torpedo code is apparently not great and sometimes gets confused. However these sporadic reports of obvious problems translating your screen resolution into correct coordinates is of great concern as well. It's just been so long since I've even used it that it would all be a re-learning process for me to get up to speed again, let alone dive into the code and actually change anything. But it's not out of the question entirely. I recall that bit of the code that does the resolution translations to be quite simple. I hope to be back soon.
minsc_tdp
11-28-13, 05:32 PM
I took a look at the code that handles all this:
$x1024x768 += $RESX - 1024 if $quadrant =~ /Right/i; # Resolution adjustment
$y1024x768 += $RESY - 768 if $quadrant =~ /LowerLeft/i || $quadrant =~ /LowerRight/i; # Resolution adjustment.
It's important to understand what this means to sort these issues out.
The entire thing is based on a few key assumptions, which if you check them one by one and tell me which one is actually wrong, maybe we can sort this out:
That the X/Y coord of anything as specified in the CSV is valid for a 1024x768 screen
Everything is in one of four quardrants (UpperRight, LowerRight, UpperLeft, LowerLeft) (no need to verify this one, it's fact)
That when you increase the resolution to 1920x1200 (an increase of 896 on the X, and 432 on the Y):
Nothing changes in size
Items in the upper left quadrant do not move.
Items in the upper right quadrant move right by 896 pixels
Items in the lower left quadrant move down by 432 pixels
Items in the lower right quadrant move right by 896 and down by 432
I believe somewhere in here these assumptions are not correct.
My suggestion is to take screenshots at 1024x768 and some other resolution and using Photoshop or similar (The Gimp is free) first verify that one control from each quadrant is where it's supposed to be in 1024x768 screenshot (Photoshop/etc will give you exact x/y when hovering over something)
Then using the maths above determine where the control should be due to changing your resolution in the BAT file to whatever. Verify it with your screenshot.
If someone does all this who is having problems I'm sure somewhere along the way there will be an AHA moment.
I know that some of the mods out there like Trigger Maru and such actually modify the contents of the button bar at the bottom which will totally ruin things, which is why there are separate CSVs for each one. But I don't think I had the TM one ever perfect, and it was quickly updated afterward.
If ever I am unreachable here and anyone is desperate to email me, I'm reachable by email: knepfler at gmail dot com
minsc_tdp
11-28-13, 05:44 PM
win8 problems
Running it for the first time ever on Win 8 right now. Fresh OS, never messed with anything speech related re: this, but I do use Teamspeak every day so I know I have a good mic setup.
Play by play:
First two executions failed due to Avast deep-screening the file.
Seems to have resolve on third launch with no changes.
Third launch shows "Listening..." and then launches the windows "Set up speech recognition" dialog
Tried to go through this setup wizard but it defaulted to the incorrect microphone and wouldn't let me change it (GRRRR)
Canceled the dialog. Nothing happens in shSpeech of course.
Shut down shSpeech.
Opened sound control panel, set default microphone to the correct one. Weird that it wasn't correct, haha.
Relaunch shSpeech, get setup dialog again.
Completed the wizard. Chose "disable document review" cuz.. ya no.
Selected "Manual Activation" mode because I like buttons.
Selected "Run Speech Recognition at Startup"
Cute widget appears at top of screen. Says "Off"
I press mic button, it says "Listening". Great.
I speak a command and look at the shSpeech window, and it recognized it.
So it seems as easy as that. On top of that I can say "close window" and it will close applications. I wish I knew how to make it listen, while ignoring commands like those. Just gotta speak carefully and not say things like "minimize" :)
So, PhilipWebb, I think the key thing is to first get that core windows behavior working. If you can say things like "minimize" or "close window" and it works then shSpeech should also work.
edit: I told it to stop listening, then started again. Suddenly it refused to accept any windows command. Launching shSpeech caused speech recognition to crash. The whole speech rec on win8 seems a bit buggy. But I might just need to reboot.
larrygene
02-14-14, 10:33 PM
I don't know much about computers but to play games on them.I have silent hunter 4 and would like to get the voice thing working I have the python and perl but don't know where to put it. I bought silent from steam when I open the speech file it tells me 43 files r not showing. none of the programs that do open have any kind of run to them or set up could it be in one of the 43 that didn't open? I need some professional help here guys. how do I open the 43 that r not shown?
any kind of reply would really help
thx larry
tomarse
03-02-14, 09:57 AM
For general info. I've just recently restarted using SH4 Speech and Win7 has the Speech recognition pop-up. Once I realized that the pop-up didn't interfere with SH4 Speech I just made sure it was on in the background and the game ran with no problem.
I did notice that a couple of windows were open when I closed the game so not only is the game working but due to the Speech widget some windows applications can be activated "behind the scenes" while playing.
It hasn't hurt things so far.
At Larrygene: which Speech files are you referring to? Your SH4Speech files should go in your SH4 main folder.
If you run SH4.bat you should see a small black (DOS) screen ending with the word "Listening......" That means that SH4Speech is in fact working BUT it still has to be in the proper folder.
messageboy101
03-05-14, 10:33 AM
I have tried this with SH4 stock and TMO but does it also work with UBM?
Greets liam
SubSimTrooper
03-09-14, 01:25 AM
I played around with this for a couple hours; even being completely computer illiterate I was able to get it running (unlike every other mod I've tried :/\\!!).
This is probably the coolest thing for SH4, ever, period!!! Thank you very much for putting this together!!!! :yeah:
I did find a few small bugs, nothing major; for example, accessing the Damage Management screen was impossible as the "SH4 mouse arrow" was suddenly overlaid with the "white, windows mouse arrow" when I tried to click on that tab. Next time I'm playing I'll keep a pen and pad and write them down.
Again, awesome job!!
Devil_dog1975
07-28-14, 11:53 AM
This just made the game a million times better. Thank you soo much sir.
boldflavor
09-18-14, 06:18 AM
For me the evasive left button was being pressed instead of the "depth to keel" or it was ordering periscope depth. There's a little program called "Cursor Position" that shows you exact position of the cursor at all times in a little window. You run the game and stop your mouse on the problem button, then alt-tab out and all the while, being very careful not to move the mouse. Now you have exact x, y numbers to input into the command_bar file for any resolution.
Aktungbby
09-18-14, 09:53 AM
boldflavor!:Kaleun_Salute:
Lt commander lare
09-20-14, 02:22 PM
Hello need some help here I"m using stock sh4 speech recognition and when I say battle stations it takes me to the damage control screen battle stations does not work am I saying something wrong everything else is working right except battle stations thanks.
Lt Cmdr Lare
Lt commander lare
09-20-14, 02:40 PM
Just an FYi when I say battlestations it takes me to the little blue button next to the battle stations icon and then it goes to the torpedo load screen can you tell me what i'm doing wrong thanks.
Lt Commander Lare
suitednate
02-27-15, 09:14 PM
Having trouble getting this to work. The program is recognizing my commands but they are NOT being input/transmitted into the game. :/\\!! Followed all the instructions. Can anyone out there please help? Would love to get this working. Thanks.
tohowalk
03-01-15, 08:16 PM
I can't yet answer any recent questions (but I'm close); instead I have a couple of my own. I have been trying to fine tune this to work with my resolution. I have figured out how to remap the location of the various buttons. I am now working on the dials. For example, when I give the command to "make your speed x knots", SH4speech always hits too high of a speed - for 1 knot I get 2, for 2 knots I get close to 5. I have the depth and course dials working pretty well, but I can't figure out the speed dial. Unfortunately, I know nothing of programming (although I was darn good with JCL years ago), so I'm hoping I can do this without having to learn to rewrite the programming. Any thoughts or suggestions are very welcome!
Tohowalk
I hate when I do this - got it figured out - I assumed the dial centers were all the same, but by changing knotmeter center a few pixels I was able to get it almost exact.
Staunch
04-29-15, 07:15 AM
Having trouble getting this to work. The program is recognizing my commands but they are NOT being input/transmitted into the game. :/\\!! Followed all the instructions. Can anyone out there please help? Would love to get this working. Thanks.
I to had this problem and it drove me nuts! I finally think I found the solution. Make both sh4speech and silent hunter itself run as windows seven. Go to file properties and look for compatibility settings. It worked for me.
GenMarkof007
11-20-15, 12:50 PM
Ahoy all,
I have some issues with my s4speech commands for SH4 (only Bridge, AA Gun, Deck Gun and sometimes Map works). I'm playing with a 1920x1080 resolution screen and the OM mod. If anyone has made a new version of the CVS files for this screen resolution and/or the OM mod... please let me know if I could have a copy. If not, can you point me how I could modify the default ( stock ) CVS files.
Cheers all,
GenMarkof007 :arrgh!:
I don't know why it's taken me nine years to try this out, but now that I have, I find it's somewhat outdated.
Does anyone happen to run this with TMO 2.5? I'd be very grateful if someone had a set of files that work with TMO, before I dive into the files and try to figure it out.
THEBERBSTER
03-21-16, 03:39 AM
Hi razark
This works quite well with TMOwTw2.50
It is not perfect 100% but is still very useful.
Make sure you choose the correct version as there are 4 to choose from.
Enter you screen resolution if it is different from the default in your chosen version.
Peter
Does anyone happen to run this with TMO 2.5? I'd be very grateful if someone had a set of files that work with TMO, before I dive into the files and try to figure it out.
Here you go. I managed to mostly make it work, but there are a few problems with mouse click locations. I hope this helps you.
http://www.subsim.com/radioroom/downloads.php?do=file&id=4911
minsc_tdp
06-24-16, 01:29 PM
I don't know why it's taken me nine years to try this out, but now that I have, I find it's somewhat outdated.
LOL
Rockin Robbins
06-24-16, 01:39 PM
LOL
Hey! Welcome back! Glad to see you still around and you see your SH4speech is still being used. My wife thought I was losing it when she heard me talking to nobody in particular while playing the game.:D:D
LOL
Now I can properly tell you thank you! :salute:
First, thanks for this wonderful new way to play.
Second, thanks for entertaining my kids. They've never had so much fun shouting "Crash dive" and "Pause game"!
minsc_tdp
06-29-16, 01:54 AM
Thanks for the kind words! Super glad to see people still using it. I do pop in here from time to time. Wish I could be of more help. I see the community has helped one another with many issues and that's great.
From time to time I often think about setting this all up again and seeing how it works. Curious how it scales on my 4K monitor and whether it still works with Windows 10. I wonder about bugs that exist in the tubes system on different boats, that I'm pretty sure are there but were never really pinned down. I occasionally open the code and wonder "how the hell did I manage to actually finish that?" I don't understand most of it anymore, lol. I wonder what Trigger Maru looks like these days and wonder how well it works with it. Given all the variations, early on I decided that "all I can really do is support stock really well, and ensure that it's all editable for those who want to make it work with TM".
minsc_tdp
06-29-16, 02:19 AM
Just to re-familiarize myself with the release/update process, I added razark's tmo 2.5 files to shSpeech and called it 2.55. I hope you don't mind razark. If you're working to improve them and want to update it at some point, PM me and I'll send you my email.
The first release update in 8 years, haha! I can't believe that.
minsc_tdp
06-29-16, 03:09 AM
welp, I can't believe it but I fired it up and set my resolution to 4K and it just worked. Did a quick mission and lost hopelessly to an onslaught of destroyers while struggling to remember how torpedoes actually work. Even without manual targeting I didn't manage to hit anything, lol. I have completely forgotten how the stadimeter, range finder, etc settings all work. It's in my memory banks somewhere I'm sure. Just very fuzzy. I'm old now. haha
4K resolution seemed fine. Battlestations command seemed fine. To the earlier poster having trouble with that, I'd suggest checking your JSGME to ensure you've removed all mods and are really running stock. If you're in TMO then you need to use a different shSpeech bat file to call a different set of CSVs since TMO moves around a lot of the command bar buttons for some reason.
I noticed that sometimes shutting it down crashes the MS Speech Engine. It seems that to get a clean run, you have to shut down the speech widget at the top of the screen, relaunch shSpeech, and when the widget appears it'll be set to "Off" and you have to click the little microphone, at which point it'll be listening. A nice touch is that if you speak an unrecognized command, you'll hear a little tone, which of course is hard to hear with shells going off all around you everywhere lol. I forgot how much fun this is. The sheer panic, screaming commands, even when it doesn't work, it's kind of realistic as there are explosions going off and maybe your crew didn't hear you. It's nice when they do and immediately acknowledge you. :)
Just to re-familiarize myself with the release/update process, I added razark's tmo 2.5 files to shSpeech and called it 2.55. I hope you don't mind razark. If you're working to improve them and want to update it at some point, PM me and I'll send you my email.
I don't mind at all; I hope it helps anyone that jumps in late like I did. I don't foresee much in the way of updates happening, since TMO isn't likely to get an update itself.
mati140
07-26-16, 06:52 PM
Did anyone try this in Windows 10? Is Cortana backwards compatible with the old Speech Recognition Engine or would it require a complete rewrite?
EDIT: BTW, I think I still have a modfied file for a 1080p screen somewhere, if someone needs it I could post it.
EDIT2: Disregard all of that. I did find an issue though:
The clicks in the stock command section are shifted. Saying depth under keel results in periscope depth, saying knuckle right causes knuckle left etc.
Travis Reed
08-18-16, 04:34 AM
So I'm getting ready to try this out and am mostly interested in the ability to do things other than simply use voice commands to hit keys (otherwise I'd just create a Voice Attack profile). I use TMO and OTC (The TMO version, of course). OTC changes both keybindings as well as the UI, so a regular TMO profile will probably not work well (though it might be an okay base as far as click locations). My searching has not found an OTC profile for this and I'm wondering if anyone has made such a profile that they'd be willing to share. If not, I may need some assistance in learning how to create one myself. I'll have a look at the documentation soon.
kickswitch
11-23-16, 01:15 AM
Hi I have a problem with speech rec on sh4
I issue a command like nav map, goes to the nav map fine. But other commands like speed and depth and depth under keel, I speak the command and the mouse moves - but the mouse misses the button for say depth under keel for example. This renders most of the commands useless for me I'm afrai, and suggestions?
Aktungbby
11-23-16, 02:31 AM
kickswitch!:Kaleun_Salute: We seem to have missed your first post ...3 years ago; forgive our bad manners! Also a belated welcome to mati140:Kaleun_Salute:after a long silent run!
I speak the command and the mouse moves - but the mouse misses the button for say depth under keel for example.
It sounds like the mouse click locations in the config files are not lined up with what you've got on your screen.
Are you running any mods that change the orders bar?
Are you setting the correct screen resolution in the batch file?
Are you running SH4 in fullscreen or windowed mode?
kickswitch
11-24-16, 12:59 AM
I checked the csv config files and changed the files command bar and files by adding to the top lines the correct resolution I'm running 1920x1080 so I changed both those files top lines to my desktop screen resolution. It didn't work. Any suggestions?
Thanks
propbeanie
11-24-16, 10:28 AM
It sounds like the mouse click locations in the config files are not lined up with what you've got on your screen.
Are you running any mods that change the orders bar?
Are you setting the correct screen resolution in the batch file?
Are you running SH4 in fullscreen or windowed mode?
Emphasis added
The resolution is set in the sh4speech.bat file. Open that up, and you should see a line like:
voice 1024x768 stock 1 right sh4
That's where you need to set your resolution. The ones in the .csv files are just labels, if I remember correctly.
kickswitch
11-24-16, 05:59 PM
By sh4 speech .bat file do you mean the file I run to recognize my speech commands, the one I use is called "Sh4Speech - trigger maru"
I had a look at the text in the file and there is a line as razark mentioned that says
C:\Users\Barca1\Desktop\shSpeech2.55\dist>voice 1024x768 "trigger maru" 1 right
sh4
shSpeech 2.54 by Minsc (Erik Knepfler)
Specified resolution: 1024x768 (change under sh4speech.bat)
Using command set: trigger maru
Delay multiplier: 1 (change under sh4speech.bat)
Mouse hand: Right-handed
Caching trigger maru key_codes.csv
Caching trigger maru voice_commands.csv
Caching trigger maru key_commands.csv
Caching trigger maru variables.csv
Caching trigger maru tubes.csv
Caching trigger maru command_bar.csv
Caching trigger maru dials.csv
Listening...
I notice it says 'change under sh4speech.bat - I'm guessing this isn't the file I need to change that info as it is uneditable - where do I find sh4speech.bat
I can't find it in any of the sh4speech folders within the main folder?
Thank you all by the way for your help so far, much appreciated.
And also I'm running Trigger Maru 2.5 and Optical Targeting correction those are my only mods
Cheers
Yes, that's the right .bat file. However, mine only has two lines.
It looks like yours contains the log of a running session, for some reason.
Change the resolution in that command to match what you're running and see if it helps.
The TMO files I created are not perfect, and I never tested them on other screen resolutions besides mine. The mouse click locations may need some adjustment for other screens.
I don't know if OTC makes any changes to the orders bar or other mouse click locations. If it does, it's going to be a matter of trial and error to figure out what works on your system.
I know this has more to do with the WSR implemntation in Win7, but I find that if I grunt something that Windows thinks is a command, it will execute it. For example, if I clear my throat, it thinks I wanted to press the TAB key (which is fine, because the tab key isn't defined in my csv file). But sometimes Windows thinks I want to open up an application, or it opens up a help file, or switch applications.
Anyone know how to give SH4 Speech exclusive access to the WSR? Thanks!
I had the same issue as Kickswitch, all I had to do however was go to the command bar csv file and change the location for the buttons on the UI that the mouse was not moving to correctly. The X value was originally 189, I changed to 350 and now it works perfectly (had the problem with Battlestations and Depth Under Keel, changed it to that for both of them. Their X axis location was both originally 189).
minsc_tdp
10-23-18, 03:30 AM
Hope everyone is doing well! Nice to see there's still some interest in this old thing I whipped up in like a month so long ago.
"I don't know why it's taken me nine years to try this out, but now that I have, I find it's somewhat outdated." -razark
I got a good laugh out of that thanks :)
swordmean
09-18-19, 09:44 AM
Hi Captains..i have found this on steam... works with silent hunter 4 ...sad the great shspeech mod dosent work for silent hunter for under win 10....this is a good alternative if you whant command same stuff on you submarine with you voice just go too steam and search VoiceBot is 14 dollars and also works for other stuff;) :Kaleun_Thumbs_Up: ...better than nathing lol
Is there a file for german side? Would be awesome if it was compatible with Dark Waters
4H_Ccrashh
02-05-20, 01:23 PM
Ok would it be possible for someone to tell me exactly how to load this please?
There are no instructions in the thread that I can find. I opened the readme contained in the archive and under Installation is says "None"
Just jun the appropriate bat bile.
Ok, But where do you extract all of the files to?
Also in the thread it mentions things like "ActivePerl" and "ActivePython".
I found in the archive in the "dist" folder a files that have the word "python in the filename. is this the "ActivePython"? mentioned?
Nowhere in the downloaded archive is there any mention of "Pearl" or any other girl.
I realize I am late to the party and that this was started 13 years ago. Has anyone thought to write up a click by click manual on how to do this?
https://www.subsim.com/radioroom/showthread.php?p=2647021#post2647021
minsc_tdp
09-03-20, 06:34 PM
extract anywhere. it interfaces directly with SH and the windows speech recognition so it doesn't matter what folder it's all in
basically you need to have some version of Perl and Python installed, it's been a very long time so I'm not sure if ActivePerl and ActivePython are even still around. I don't even use them anymore, I use Strawberry Perl, but I don't know if that even works with this program. those things can be found online and are not included with the shSpeech zip.
sorry I've been gone so long, hello again everyone! I try to pop in now and again
minsc_tdp
09-03-20, 06:38 PM
Hi I have a problem with speech rec on sh4
I issue a command like nav map, goes to the nav map fine. But other commands like speed and depth and depth under keel, I speak the command and the mouse moves - but the mouse misses the button for say depth under keel for example. This renders most of the commands useless for me I'm afrai, and suggestions?
typically this is because you're either running a mod that has remapped your keys, or you didn't set the screen resolution properly in the startup files, so everything is a bit off kilter.
i haven't run this in years and I suspect that, if like me, you run a 4K monitor that uses font scaling, that could fundamentally alter the resolution in a way that even matching it in the shSpeech config files wouldn't work right. but generally if you use the right launcher depending on your mod setup, and your resolution is right, then everything should line up - and the excel files are included showing the coordinates of everything (I believe based on some core resolution and everything is calculated from there)
I found all these coordinates by running the game at that resolution and taking screenshots into Photoshop so I could use the cursor tools to determine the exact x/y offset of the pixel I wanted to click. so as the game has changed (and mods change it as well) some things could not quite be where I programmed them to be.
minsc_tdp
09-03-20, 06:42 PM
Did anyone try this in Windows 10? Is Cortana backwards compatible with the old Speech Recognition Engine or would it require a complete rewrite?
EDIT: BTW, I think I still have a modfied file for a 1080p screen somewhere, if someone needs it I could post it.
EDIT2: Disregard all of that. I did find an issue though:
The clicks in the stock command section are shifted. Saying depth under keel results in periscope depth, saying knuckle right causes knuckle left etc.
i've never tried it in Windows 10, but i just turned on speech recognition from the control panel or whatever, and it looks the same as when I developed it, so I don't think Cortana would get in the way.
minsc_tdp
09-03-20, 06:49 PM
I notice it says 'change under sh4speech.bat - I'm guessing this isn't the file I need to change that info as it is uneditable - where do I find sh4speech.bat
sorry it's been like 4 years but
root folder of the zip has all the different BATs, use whichever best matches your setup
.bat files are just text files and are indeed editable.
Captain Prise
10-09-20, 12:15 AM
does this still work?
jscharpf
10-09-20, 09:49 PM
does this still work?
I haven't used it but I just saw a YouTube video with someone using it so I'm guessing it still works?!?
I was surprised to hear him saying commands and the boat doing it :)
hughesjr
09-04-21, 10:33 AM
sorry it's been like 4 years but
root folder of the zip has all the different BATs, use whichever best matches your setup
.bat files are just text files and are indeed editable.
I don't suppose you would let me know the secret of how to directly input a 3 digit course or heading into the interface? Maybe there is not a way, and this is done via mouse clicks .. in which case I will need to try something else :)
EDIT: Based on everything that I am looking at, the heading and rudder changes seem to be based on the screen layout and do not have a direct numerical input .. is this correct? I do see that Shift Page up has been set to this:
[Cmd180]
Name=Set_course
Ctxt=1
Key0=0x21,Cs,"SHIFT Page Up"
BUT .. I do not see a way to feed it input.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.