Log in

View Full Version : [REL] sh4speech - voice command for SH4


Pages : 1 [2] 3

billko
02-05-08, 11:10 PM
Hi everyone! A big surprise is in the works for sh4speech. Stay tuned!

So should we d/l 2.24 or wait for the big surprise? And what *is* the big surprise? The installation is even easier now? All I have to do is think about installing it and it does it automatically? :)

Bill

minsc_tdp
02-06-08, 06:26 PM
You can update to 2.24 if you want but I doubt anyone will find it useful. It only adds a specific feature that someone requested, which is supporting CTRL+SHIFT+ALT+X instead of being limited to either CTRL-X or SHIFT-X or ALT-X. Changelog explains this. So upgrade if you like to keep current or don't, it really doesn't matter unless you're customizing key commands like this.

The surprise... well you'll just have to wait and see :) Hint: It involves ceiling fans and large quantities of bundt cake

minsc_tdp
02-14-08, 01:29 AM
Version 2.50 BETA posted with yet more fixes. Be careful with this if you have customized CSVs, read the ChangeLog to figure out how to integrate!

I'm pretty sure this beta has no problems and will likely be promoted to Final status soon, after some testers get back to me.

Tomcattwo
02-16-08, 12:06 AM
All,
Over the past month or so, I have been working with minsc_tdp on converting his outstanding SH4Speech program for use with SH3. I am almost done with the conversion - all of the commands I want to have in for the release are in and appear to be working on my machine. Here are some of the details:

1) Uses the same 2.50 version of SH4Speech as minsc's SH4 uses (minsc kindly altered parts of the code to make it compatible with both SH4Speech and SH3Speech).
2) Will do all of the commands SH3 is capable of doing with keypresses plus also rudder orders, steering orders, depth orders, speed orders, input of firing solutions, input of torpedo parameters (sorry - I did not program in FAT or LUT settings yet - maybe in a future enhancement), etc. using the mouse.
3) I have made versions for both SH3 with GWX2 (will also work for "stock" SH3 with patch 1.4b) and for SH3 with OLC GUI 1.2.1 (by One Life Crisis) & GWX 2.
4) The voice commands include over 4500 recognized phrases in both English and in (rudimentary) German. Most key commands (there are about 320 or so of them) and dial orders have a half-dozen different ways to say the command that the SAPI will recognize, and many have rudimentary orders in German as well (though I am not a natural German speaker and the MS SAPI is set up to recognize English pronunciations, not German, but I have used "phonetically correct" German phraseology as much as I could given the limitations of the SAPI)
5) Just like SH4Speech, the voice commands are easily customizable by the user.
6) Uses a slightly revised command_en.cfg file, easily installable using JSGME over either GWX2's or OLC's command_en.cfg
7) Just like SH4Speech, you'll need to have installed Micro$oft's Speech Recognizer SAPI 5.1 (available free from Micro$oft.com) and train up on it to get it to understand and recognize your voice (takes about a half hour or so). If you already have it installed, you don't need to install it again or train up on it any more. You'll also need a microphone to communicate with the SAPI.

This weekend I am working on the "U Boot Innerkommunikatzion Handbuch" for SH3Speech (which will be written in English) which will provide all of the understandable commands. After this is done, I'd like to get a few folks who are interested in beta testing the program and have the testers run it through its paces.

If you are interested in beta testing SH3 speech (in either GWX2 or OLC+GWX2 or both) please drop me a PM, and tell me which program you'd like to test in (GWX2 or OLC+GWX2 or Stock with 1.4b or some of each). I'd particularly like to have a couple of folks who have run SH4Speech and who also have and enjoy SH3. I'd like to have folks trying different screen resolutions as well for testing purposes. If you are selected for beta test, I'll get in touch with you by PM.
Thanks in advance,
TC2

Tube4
02-17-08, 08:49 AM
First of all thanks for a realy great addon. This makes it so much more realistic.

I my self is left-handed and thus sometimes using the mouse with my left hand. This causes problem with the "LEFTUP", "LEFTDOWN" function in your perl script. For some strange reason it does not recognize that I have swopped my mouse buttons, and this makes the button select to fail.

I tried to install both perl and pyton - but since I'm not a regular pyton programmer, I did not managed to get the hear.py to compile due to a missing win32com.gen_py. :damn:

I did try to look around to get it fixed but no luck so far.

Is this something that can be considered into the module sometime?

Again, thanks a lot for a realy great add-on.

:arrgh!:

billko
02-17-08, 02:35 PM
First of all thanks for a realy great addon. This makes it so much more realistic.

I my self is left-handed and thus sometimes using the mouse with my left hand. This causes problem with the "LEFTUP", "LEFTDOWN" function in your perl script. For some strange reason it does not recognize that I have swopped my mouse buttons, and this makes the button select to fail.

I tried to install both perl and pyton - but since I'm not a regular pyton programmer, I did not managed to get the hear.py to compile due to a missing win32com.gen_py. :damn:

I did try to look around to get it fixed but no luck so far.

Is this something that can be considered into the module sometime?

Again, thanks a lot for a realy great add-on.

:arrgh!:

Are you sure you have the latest version? The latest version simply requires you to install the speech engine and then simply run the executable. (That was the very reason I finally decided to install it. minsc made it so easy to install, I finally bit... and I'm VERY glad that I did!)

Bill

Tube4
02-17-08, 05:17 PM
:arrgh!:
Are you sure you have the latest version? The latest version simply requires you to install the speech engine and then simply run the executable. (That was the very reason I finally decided to install it. minsc made it so easy to install, I finally bit... and I'm VERY glad that I did!)

Bill

Sorry if I explained this wrong. Nothing wrong with the install at all, it works as a beauty. It's only me trying to get the source code compiled to test out some changes for "lefthanded". Still no luck though.....:down:

billko
02-17-08, 08:40 PM
:arrgh!:
Are you sure you have the latest version? The latest version simply requires you to install the speech engine and then simply run the executable. (That was the very reason I finally decided to install it. minsc made it so easy to install, I finally bit... and I'm VERY glad that I did!)

Bill

Sorry if I explained this wrong. Nothing wrong with the install at all, it works as a beauty. It's only me trying to get the source code compiled to test out some changes for "lefthanded". Still no luck though.....:down:

You didn't explain it wrong - I just read it wrong! Sorry. :)

Bill

minsc_tdp
02-19-08, 06:35 PM
Tube4 - I would be happy to make a modification to the system that allows you to swap these. Making it detect the OS mouse settings would be difficult, albeit ideal, I don't have the time for that. But I could put in a little config tweak that would allow you to tell my code that it is left-handed. I might be able to do this as early as tonight, but it's hard to say.

In the meantime, if you want to keep trying to do it yourself for fun, here's a tip: You don't need to recompile the python stuff which results in hear.exe. That has nothing to do with this. All you would really have to do is swap all instances of LEFTDOWN and LEFTUP in voice.pl with RIGHTDOWN and RIGHTUP. Then you can just compile voice.pl into voice.exe using the free trial version of perl2exe (google that). Then put voice.exe into the DIST folder and you're set.

However, there are certain libraries that you would need installed into Perl to make it compile. To get these, just look in voice.pl for any line starting with "use" such as "use Math::Trig" and from a command line, swap the colon with a dash, like so, to type: "ppm install Math-Trig" and you should get the library automatically. Once they're all installed it should compile clean.

Or you can just wait for 2.51 which will have this feature :)

minsc_tdp
02-20-08, 01:40 AM
2.51 posted with left-handed support!

Tube4
02-22-08, 11:06 AM
Thanks for you prompt response.

I did test your beta release, and using Trigger-manu for left it still don't work (same as before):arrgh!:

Seems to me that the game do not recognize the left mouse button as main. Could be that this is within core SHIV.

Another thing that hit my head - is it possible as an add-on to the press to talk switch to have sh4speech recognize a command to stop listening or stop listening until a new command is issued?

minsc_tdp
02-22-08, 08:05 PM
Yeah, I could probably add a "start listening" and "stop listening" command very easily.

You could also then change it to something more creative, like "captain on deck!" and "xo you have the con", for example. :)

I'll work on this when I get a chance, and I will also investigate the left/right mouse button issue!

Tube4
02-23-08, 09:07 AM
That sounds great.

And I heve to repeat that this speech tool adds a whole new dimmension to running SHIV. You've done a realy good job on it.

I just had to train my speech software a little bit (probably since I'm not a native english speaker) and since then it has worked like a dream.

Keep up you good work, and thanks a lot for you contribution.

tomoose
02-24-08, 07:19 PM
Minsc_tdp;
finally gave this a shot. In a word, excellent!! It really adds to the immersion.

A couple of questions;
1. I can't seem to get my 10 torpedo tubes recognized. It's fine up to 'tube 6' but 7 to 10 won't work and I have to click on them. I always start my game with "I have 10 tubes" and "reset tubes". Am I missing something?
2. Is there a way to avoid having the cursor jump around in reaction to the voice command? If not, no biggie, it's just a small distraction.

I've also got TrackIR and I'm just now wondering if I use that on 'mouse emulation' mode if I can move my 'view' using the TrackIR? Hmmmmm:hmm:

Overall, SH4 Speech on top of the TM and RSRD mods has been the best addition to this game. I changed the direction commands to be "come left/right 10, 15, 20 degrees" as opposed to "heading...." and it is so cool to say "come left 10 degrees" and have the response come back "new course XXX degrees". I say "dive" and lo and behold, the sub dives. I say "make your depth 200 feet" and the diving officer responds with " new depth 199 feet" (I know the 199 is a quirk in the game but a very minor one in my book).

SH4 Speech rocks:rock:

minsc_tdp
02-25-08, 02:08 PM
I'll test the 10 tubes problem tonight. Didn't know there was any issue there. Nobody has ever reported it.

Make sure it actually hears you when you say "i have ten tubes" by trying that command before you enter the game a few times.

This reminds me of another suggestion someone made - a simple audible feedback anytime a command is recognized and successfully processed. A very short, quick "blip" would be all that is necessary. Hopefully the game doesn't dominate the soundcard, I think I will add this tonight and make the MP3/WAV file interchangable of course so you can use anything you want.

No clue about TrackIR, sorry :)

minsc_tdp
02-25-08, 02:09 PM
Forgot to post here - 2.52 updated with "Pause Recognition" and "Resume Recognition" commands. I'm thinking that this, combined with Press To Talk Mode is pretty good, but a nice third option would be a key-based recognition toggler. Just tap once and it ignores, tap again and it starts listening.

tomoose
02-25-08, 03:17 PM
I'm probably pushing my luck (and your patience ;) ) with more questions.

I'm running at 1650 x 1090 resolution. Because the .csv files etc come defaulted to the smaller resolution, what are the tweaks I must do and in which files. I edited the voice_command.csv but am unsure about the other .csv files as I don't want to screw it up.

Having said that, it seems to work pretty much flawlessly but I find the occasional command where I say a command and instead of executing that specific command my 'view' will pan and then point down (usually on the bridge).

I'm sure these issues are pure ignorance on my part and are not problems with the mod itself. It's really added a new dimension to the game for me, thanks very much for your work, well done. :up: :up:

BTW, the installation was a breeze. The only other download necessary was the actual MS SDK software. The SDK 'training' session, IMHO, is a must before using the mod. The other bonus is, if I forget to run the mod batch file to start it before starting SH4, no biggie, simply alt-tab out, start it then alt-tab back in.

minsc_tdp
02-25-08, 04:42 PM
I'm probably pushing my luck (and your patience ;) ) with more questions.

Not at all!

I'm running at 1650 x 1090 resolution. Because the .csv files etc come defaulted to the smaller resolution, what are the tweaks I must do and in which files. I edited the voice_command.csv but am unsure about the other .csv files as I don't want to screw it up.

You don't have to edit any CSVs for resolution. Just edit the BAT file in the root folder and punch in your resolution. It should just work!

Having said that, it seems to work pretty much flawlessly but I find the occasional command where I say a command and instead of executing that specific command my 'view' will pan and then point down (usually on the bridge).

This is because you are focused in the periscope/camera (ya know, where the mouse disappears) and when it tries to move the mouse, it doesn't know this. Get in the habit of knowing which commands require the mouse to move around (anything not mappable to a key, such as dials) and make sure your mouse is visible before executing the command. I wish I knew a way to detect the mouse state and manage that for you but, I don't.

I'm sure these issues are pure ignorance on my part and are not problems with the mod itself. It's really added a new dimension to the game for me, thanks very much for your work, well done. :up: :up:

Bah, the manual might help on some of the above questions but, I don't read manuals either. :D

BTW, the installation was a breeze. The only other download necessary was the actual MS SDK software. The SDK 'training' session, IMHO, is a must before using the mod. The other bonus is, if I forget to run the mod batch file to start it before starting SH4, no biggie, simply alt-tab out, start it then alt-tab back in.

Yeah, the documentation has a lot of good recommendations for tuning the mic and speech recognition, and is worth reading for sure.

You could try adding "start c:\games\sh4\sh4.exe" to your BAT file and it'll run it for you :) (change path to EXE of course, and wrap it in quotes if it has spaces)

Minsc

minsc_tdp
02-25-08, 04:43 PM
What's a very quick way to start the game and get a boat with 10 tubes? I don't play much obviously :)

Digital_Trucker
02-25-08, 06:54 PM
What's a very quick way to start the game and get a boat with 10 tubes? I don't play much obviously :)

The quickest way would be to run one of the quick missions that allows you to choose a sub with 10 tubes.

tomoose
02-26-08, 08:06 AM
minsc_tdp;
I started a new career last night with 6 tubes and had the same problem. I could audibly select the first four tubes but could not do the same with the aft two.

The common aspect appears to be fore and aft. With both the 10 tube sub and the 6 tube sub, selecting the forward tubes by voice worked like a charm. I couldn't select the aft four tubes (in the 10 tube sub) or the aft two tubes (in the 6 tube sub) by voice, I had to use the mouse to select.

Again, I started out by saying "I have 6 tubes" and "reset all tubes". So I'm either missing something or it's a glitch.

cheers,
Tomoose

minsc_tdp
02-27-08, 03:20 AM
Tomoose, are you using the Trigger Maru BAT file or the Stock BAT file?

There is a difference in how they are handled. Stock uses CSV id #15 from tubes.csv which is usually the W key to cycle tubes, based on the number you speak. This is because, in stock mode, that's all that is required. It seems to work from my basic tests outside of the game.

In Trigger Maru, it uses CSV id #15 to cycle the fore tubes only. When you speak an aft tube, it uses id #55, usually the Y key, from key_commands.csv which is "cycle aft tube". That also seems to still work fine.

My guess is you are running Trigger Maru and remapped your Y key?

tomoose
02-27-08, 08:13 PM
Perhaps that's my mistake. I wasn't aware of a "cycle aft tube" command.
I haven't remapped any keys that I'm aware of.
Here's what I do when first starting or after loading a mission and the sub is stationary in the water at surface;
"I have 10 tubes"
"set all tubes closed"
"reset all dials"
Once those commands are done then I begin/continue my mission etc.

When I go to the torpedo station I simply say "tube 1" etc to get the appropriate tube. I have not being saying "cycle aft tube" (although I did try "cycle tubes" but that didn't work either).

Am I supposed to actually say "cycle aft tube"? in order to get the game to respond to the higher numbers?

minsc_tdp
02-28-08, 05:23 PM
Maybe "cycle tubes" is messed up. There is no "cycle aft tube" voice command to my knowledge. It's supposed to just know what tube you're on and use the right key.

Are you running Trigger Maru or not? If so, when you press Y on your keyboard, does it jump to the aft tubes? If not, then your Y key may be remapped to something else. The default TM config file as part of that mod uses the Y key for cycle aft. When you say "cycle tubes", if you're on the last fore tube, it should know that and switch from using W to using Y to start cycling aft tubes.

Does "tube 8" and "tube 9" work as expected? Again maybe it's just the cycle command which I didn't test the other night when I looked at this. I only tried "tube 8" and "tube 9" and "tube 1" to make sure it would jump back and forth properly in TM mode and Stock mode.

Tomcattwo
03-03-08, 10:29 PM
All,
I have released SH3Speech, the version for Silent Hunter 3, which recognizes over 5000 commands in English or German. I am very grateful to minsc_tdp for writing the original SHSpeech code and for his assistance and corrections necessary to bring this project to fruition. You can download SH3Speech here:

http://www.subsim.com/radioroom/showthread.php?t=132228

R/
Tomcattwo

minsc_tdp
03-04-08, 04:55 PM
I've updated the first post to fix a bunch of broken links. Also linked to TomcatTwo's SH3 mod!

Fincuan
03-04-08, 05:00 PM
Are you running Trigger Maru or not? If so, when you press Y on your keyboard, does it jump to the aft tubes? If not, then your Y key may be remapped to something else. The default TM config file as part of that mod uses the Y key for cycle aft. When you say "cycle tubes", if you're on the last fore tube, it should know that and switch from using W to using Y to start cycling aft tubes.

The default key for cycling aft tubes in TMaru 1.7.6 is E. Duci changed it a few versions back.

Thanks for a great program btw. My girlfriend is going nuts every time I fire up SH4 and start "chatting" :)

kakemann
03-06-08, 08:34 AM
I've tried to get it to work. Downloaded the SDK, but it seems liks the SDK only supports Windows XP.

I tried anyway, but when starting the bat file it opened the cmd and it stops and shows "restarting speech engine".

I have windows Vista premium.

Any suggestions?

Thanks anyway

minsc_tdp
03-10-08, 04:57 PM
I have Vista, I will give it a try. I recall that it did work. You don't need the speech SDK since it's built-in to Vista, but maybe something changed from when I tested it a while back and now.

Tomcattwo
03-12-08, 03:06 PM
Update for SH3Speech V 1.01 is available here:

SH3Speech V 1.01 (http://www.subsim.com/radioroom/showthread.php?t=132228)

Fixes tube issues, adds/revises a number of German orders for more correctness, adds new commands for manning battlestations in various modes, and support for commands_de.cfg so German players can play the game in German and still use SH3Speech without having to switch to English version of SH3.
R/
TC2

minsc_tdp
04-20-08, 11:35 AM
Update
If you are enjoying shSpeech and wish to support me, please visit the new shSpeech page (http://knepfler.com/shSpeech) and click through some of the ads. It's not a lot of money but it's better than sending a donation (which you can also do (http://knepfler.com/index.php?title=Knepfler:Site_support) if you're feeling generous! I am struggling to raise money to buy my first house...)

W4lt3r
04-24-08, 04:11 AM
I got a question regarding this mod, do i need to have proper working windows speech recognizing software, because somehow my Vista doesnt have that software and i cannot find ANY instructions on how to get it..

Or is there an alternative program that can run the same thing?

tomoose
04-24-08, 11:30 AM
The MS SDK software is available from the Microsoft website. It's free and is easy to install.

W4lt3r
04-24-08, 11:36 AM
It's for XP.. Not for Vista, or is it compabilitible with Vista too?

minsc_tdp
04-24-08, 05:34 PM
I have used it with Vista and I know it works.

The key difference between XP and Vista is that you have to manually enable voice recognition in Vista. When you do this, a weird bar appears at the top of your screen with, if I recall correctly, a big button. This enables the voice recognition and then sh4Speech can hook into it. I believe you do this under Control Panel, search for Speech.

W4lt3r
04-25-08, 07:32 AM
RIight, just DLed the SDK 5.1 and i dont understand it one bit... How to manually start the thing etc...
Because my speech recognition panel in Control panel only has 1 and half lines of text and it is "If you would like to learn more about speech related tools and support from Microsoft, please visit the Microsoft Speech Online Community"

And on that site there is no clue at all HOW To install the damn thing. It already presumes i got the software.

minsc_tdp
04-25-08, 03:31 PM
Yeah I don't think the 5.1 Speech SDK is going to help on Vista.

I found this thread:
http://www.vistaheads.com/forums/microsoft-public-windows-vista-installation-setup/45471-voice-recognition.html

Where an MS guy states that:

The speech recognition capability is currently available in the following
language versions of Vista.

English (U.S.)
English (U.K.)
German (Germany)
French (France)
Spanish (Spain)
Japanese
Chinese (Traditional)
Chinese (Simplified)

So I would guess you are using a different language version, right? If so, another person asked the MS guy if there was a way to just use the English speech stuff in his foreign language Vista and he said he doesn't know how. :(

I just started a Vista machine and so, if you do Start and search for "Speech" (without pressing enter) you should see "Windows Speech Recognition" and "Speech Recognition Options". Clicking "Windows Speech Recognition" will start the recognizer and sh4speech should work. I'm guessing it won't start on your system due to an error, which the "Speech Recognition Options" and MS online help should guide you through fixing.

W4lt3r
04-25-08, 04:25 PM
"Because my speech recognition panel in Control panel only has 1 and half lines of text and it is "If you would like to learn more about speech related tools and support from Microsoft, please visit the Microsoft Speech Online Community"

Missed that part? I Dont have ANY thing there, and originally this was finnish but i use now english U.K Non-Unicode on this.. *sigh* Guess i can only dream of this mod.

minsc_tdp
04-27-08, 02:25 AM
Why not switch to an english version of windows?

W4lt3r
04-27-08, 04:27 AM
I dont have a CD/DVD for English Vista, and strangely, when i bought this PC.. I got an XP Installation CD instead of Vista Home Professional installation CD :stare:

But, doesn't matter. Maybe with the V SP1 there'll be voice for other languages as well..

platounet
05-20-08, 11:59 AM
Sh4speech is a very enjoyable mod.:up:. But as i like to play with RFB , i 'll be grateful if it was possible to have a version of Sh4speech for RFB as you did for TMO...Think about it and thanks you very much!:yep:

tomoose
05-21-08, 08:07 AM
minsc_tdp;
me again, LOL. I've been away for awhile and am back enjoying SHIV and SH4 Speech. I'm still having the same problem as before.

I start mission with "I have six tubes" and "reset all tubes" and "reset all dials" etc.
When I'm using the TDC etc I have no problem with tubes 1 to 4. I say "tube 3" it goes to tube 3. When I say "tube 5" or "tube 6" (the aft tubes) there's no reaction or it will default back to tube 1. The same applies for later subs with 10 tubes, the forward tubes react accordingly whereas the aft tubes don't and I have to use the cursor.

Perhaps I need to do more "practice" with SDK to get it more familiar with my voice but it seems more than a coincidence that it's always the aft tubes in each sub.

Have you had a chance to look at this?
Thanks for your time.
Tomoose

Anachronous
07-16-08, 06:09 AM
While playing and having to adjust all my commands for custom menus and keymaps. I was thinking about how to best make this compatible with various mods.

While making profiles is a good idea, it can also can be a pain to make all those profiles and also it relies on buttons being in the same place as well as keymaps being unchanged per install.

If it was possible to map every single command in SH4 to a key press, then one could make a custom commands.cfg to include with the speech program. This commands config could work for almost every sub and every mod, regardless of whether the current commandbar had the required buttons, or where they were.

This would also make it a lot more user friendly, because key presses are instant, where as moving the mouse all over the screen can depend on what the user is doing.

Even if not every command could be key-mapped in the commands.cfg, then the fewer mouse movements the better. Only the default keys would need to be left alone, so users can use them as in the standard game, but all other additions could be done using vacant keys and variations with CTRL, ALT, SHIFT etc.

We really need a keymapping program that works properly with SH4

raymond6751
07-16-08, 07:54 AM
I've been playing with it for more than an hour or so. DAMN is it fun! Hasn't misinterpreted a single command. Did a convoy kamikaze mission to stress it out. Only a very small number of commands went unheard, such as "hard to port" for some reason (probably due to the rough T sounds), but usually only when stuff on my boat was exploding, which I find very realistic! The recognition and response is very quick. I can't wait to set up shooting solutions with it. I'm playing with a nice mic about 1.5 feet from my mouth on the desk, and it works great even with 5.1 sound blaring throughout the room and my brother's stereo cranked in the next room.

Hmmm. I stopped using previous voice cmd software because extraneous sounds would cause problems. I wonder if the results above were due to a good mic or the software? Anyone else have same results as above?

Jaeger
07-16-08, 02:33 PM
hi minsc,

i hope you can help me using the speech engine for sh4 with a german vista. i installed the german language pack on my english vista ultimate, now my running system is completly german. the speech recognition engine is running fine in vista (it understands most of my german orders, the language is set to german of course) but when using your programm, i have got some problems. i changed some commands in the voice_commands.csv to german words (for ex. Angriffssehrrohr for periscope), but it doesnt understand them. the vista recognition engine is running in the background. what is the key? where is my problem? i think it should be possible to use your program in german language, isnt it?

edit: some words are recognised every time and i can read them in the vista applet too, but others never are understood, though they are in the voice_commands.csv list. an example: "feuer" is recognised every time, "seekarte" is never recognised. in dictat mode (in notepad for ex.), these words are well understood... why not in sh4speech?

Jaeger
07-21-08, 03:51 AM
bump!

ary there any members here, who tried to use the speech engine in another language than english?

tomoose
07-21-08, 10:28 AM
I'm very happy with SH4 Speech. I have to be careful clearing my throat while wearing my headset as that always takes me to the Control Room, LOL. Once in a while but rarely I might have to repeat a command but nothing serious. The only problem I have is as I've mentioned above with regard to the torpedo tubes. It's a little bit of a pain but I simply use the mouse to select the aft tubes and carry on with voice.
Great immersion aspect to this little tool. Sorry to see some others are having problems with Vista (more reason for me not to switch yet).:shifty:

Jaeger
07-21-08, 12:43 PM
yeah, you are right, in xp it is running fine. but i am german and my language is not supported in the speech sdk from microsoft. so i had to change to vista, where they included voice recognition for the german language, too.

i am sure it can run fine, but how to configure the vista recognition and the speech tool to work correctly?

FIREWALL
07-21-08, 01:31 PM
I had to quit useing your great mod.

Everytime I was in shallow waters my wife would come up behind me and yell CRASH DIVE and walk away laughing.

Digital_Trucker
07-21-08, 02:52 PM
I had to quit useing your great mod.

Everytime I was in shallow waters my wife would come up behind me and yell CRASH DIVE and walk away laughing.
:rotfl:That's where the push to talk option really comes in handy:up: Of course, if your wife is anything like mine, she'd just wait 'till I was ready to give an order and pressed the middle mouse button to scream.:arrgh!:

FIREWALL
07-21-08, 02:59 PM
I had to quit useing your great mod.

Everytime I was in shallow waters my wife would come up behind me and yell CRASH DIVE and walk away laughing.
:rotfl:That's where the push to talk option really comes in handy:up: Of course, if your wife is anything like mine, she'd just wait 'till I was ready to give an order and pressed the middle mouse button to scream.:arrgh!:

What ya gonna do ? We can't live with then, Can't live without them. :D

Navarxos
07-23-08, 03:30 AM
Hi all. ShSpeech is great! but there is a small problem...my mic is very sensitive and this messes things up. I have not understood hopw exactly you activate the push to talk option. Lets say i want the Print Screen key to be my push to talk key. If i dont push that button, the mic is deaf for SH4. What exactly do i have to do in order to make this key the push to talk key? Thank you.

Jaeger
07-23-08, 08:06 AM
look at the press_to_talk.csv in the mod directory

Navarxos
07-23-08, 12:01 PM
Ok i got it! Now i use the middle mouse button to talk. The mod is perfect thanks a lot!

Coolhand01
08-02-08, 09:25 PM
This MOD is a no-joy for me...Half the commands do something else.(Battlestations for example shuts off the radar). Using RFB+RSRD(plus patches)+Diverate. I don't have a clue about how to change the coordinates for the mouse movement either. Really wish I could have used it. Would have been alot of fun....CH

billko
08-02-08, 09:55 PM
This MOD is a no-joy for me...Half the commands do something else.(Battlestations for example shuts off the radar). Using RFB+RSRD(plus patches)+Diverate. I don't have a clue about how to change the coordinates for the mouse movement either. Really wish I could have used it. Would have been alot of fun....CH

Hmmm, maybe you didn't set it up right. maybe the wrong resolution, or you're using a mod that needs to have a unique set of files?

Coolhand01
08-03-08, 12:59 AM
No install instructions provided. Ran the stock bat file. Default resolution at 1024x768. Using version 2.54. Even uninstalled all mods and tried it. No joy. So I don't think it's a MOD that's causing the problem. Any other idea's would be greatly appreciated....CH

billko
08-03-08, 01:17 AM
No install instructions provided. Ran the stock bat file. Default resolution at 1024x768. Using version 2.54. Even uninstalled all mods and tried it. No joy. So I don't think it's a MOD that's causing the problem. Any other idea's would be greatly appreciated....CH

I'm so sorry you're having problems. Did you edit your "stock.bat" file?

Mine looks like:
@cd dist
voice 1680x1050 stock 5

Because that's the resolution that I am playing at.

Could you list the mods you are running?

Thanks!

Bill

Coolhand01
08-03-08, 01:21 AM
RFB, RSRDC, Diverate are the mods I'm running. I didn't edit anything....CH

billko
08-03-08, 09:12 AM
RFB, RSRDC, Diverate are the mods I'm running. I didn't edit anything....CH

Okay, since you said "half the commands don't work," I'm assuming some of them do? Have you noticed which ones do and which ones don't? Maybe only the commands involving keyboard shortcuts work, while the ones involving mouse clicks don't? Or maybe it's a mixture of the two?

In case 1, I'd say the resolution in whichever bat file you use does not match the resolution you are actually playing SH4 with.

In case 2, since in an earlier post you had uninstalled all mods and it still didn't work, I'd say that maybe the voice recognition SDK needs training.

sh4speech is such an easy to use and elegant application, and is based on such solid principles that there is VERY little that can go wrong with it that does not involve problems with the initital configuration. All it does (and I don't mean to diminish the accomplishements of the author - this is such a brilliant application!) is take your voice command, select the appropriate command from a csv file, then convert that command into a hardware key click or calculate mouse coordinates based on the screen resolution and the known location of the object on the screen to be clicked and then sending a hardware mouse click.

Really, barring hardware failure, the only things that can go wrong are:

The expected screen resolution does not match the actual resolution, causing all mouse coordinates to be proportionately off,

There are substitutions to keyboard commands or new/moved objects on the display by a mod, rendering the csv file invalid, or

The speech recognition SDK hasn't been properly trained (or too much noise in the background), leading to misinterpretations in the command being issued. This is more of an issue than you think. How many times, in real life, have you asked someone to repeat something because you couldn't distinguish "5" from "9", pr "V" from "P" or "B?" In fact, it happens so often that we actually tend to forget it ever occured in the first place! Actually, sh4speech is much better than the average person at guessing right, but for it to be accurate, you must have the speech software properly trained!

I hope this discussion has prompted ideas about how you can fix your issues, because I can't really think of anything else that could be going wrong. I apologize that I can't seem to come up with a solution for you.

Bill

Edit:
One other thing that can happen is that, with a slower machine, some commands such as tube selection, which involve sh4speech internally repeating commands (i.e., simulating the appropriate amount of "W" clicks to get to the right tube), some of the commands may be missed due to the CPU load. Usually when this happens, sh4 isn't responding to *your* key clicks very well, either!!!

Coolhand01
08-03-08, 10:41 AM
This is my stock .bat file...

@cd dist
voice 1024x768 stock 1 right sh4

This is the in-game graphic settings...

[VIDEO]
Resolution=1024,768,60,22
DynamicShadows=No
FullScreen=Yes
Synchronized=No
TextureResolutionHigh=Yes


These are my system specs...

OS Name Microsoft Windows XP Home Edition
Version 5.1.2600 Service Pack 2 Build 2600
OS Manufacturer Microsoft Corporation
System Name OWNER-84J1T8A8N
System Manufacturer eMachines
System Model Product Name
System Type X86-based PC
Processor x86 Family 6 Model 10 Stepping 0 AuthenticAMD ~2171 Mhz
BIOS Version/Date Phoenix Technologies, LTD TCB427G, 5/12/2004
SMBIOS Version 2.3
Windows Directory C:\WINDOWS
System Directory C:\WINDOWS\system32
Boot Device \Device\HarddiskVolume1
Locale United States
Hardware Abstraction Layer Version = "5.1.2600.2180 (xpsp_sp2_rtm.040803-2158)"
User Name OWNER-84J1T8A8N\Admin
Time Zone Central Daylight Time
Total Physical Memory 1,536.00 MB
Available Physical Memory 1.07 GB
Total Virtual Memory 2.00 GB
Available Virtual Memory 1.96 GB
Page File Space 3.35 GB
Page File C:\pagefile.sys


I did all the voice training for SDK. It's only the mouse movements that are "off". Or so it would seem. Did notice a couple commands that have keyboard shortcuts, are actually done by mouse movement. ie. "Return to course" gives time to course end.
And as stated before, I have disabled all MODS and have the same problem, BUT not the same results. The stock 1.5 game moves the mouse to the same locatoin but results in a different command. Is this MOD suppose to be in my SH4 Mods folder for JGSE? I really appreciate the help on this Billko. More than you know. Thanks....CH

billko
08-04-08, 08:55 PM
This is my stock .bat file...

@cd dist
voice 1024x768 stock 1 right sh4

This is the in-game graphic settings...

[VIDEO]
Resolution=1024,768,60,22
DynamicShadows=No
FullScreen=Yes
Synchronized=No
TextureResolutionHigh=Yes


These are my system specs...

OS Name Microsoft Windows XP Home Edition
Version 5.1.2600 Service Pack 2 Build 2600
OS Manufacturer Microsoft Corporation
System Name OWNER-84J1T8A8N
System Manufacturer eMachines
System Model Product Name
System Type X86-based PC
Processor x86 Family 6 Model 10 Stepping 0 AuthenticAMD ~2171 Mhz
BIOS Version/Date Phoenix Technologies, LTD TCB427G, 5/12/2004
SMBIOS Version 2.3
Windows Directory C:\WINDOWS
System Directory C:\WINDOWS\system32
Boot Device \Device\HarddiskVolume1
Locale United States
Hardware Abstraction Layer Version = "5.1.2600.2180 (xpsp_sp2_rtm.040803-2158)"
User Name OWNER-84J1T8A8N\Admin
Time Zone Central Daylight Time
Total Physical Memory 1,536.00 MB
Available Physical Memory 1.07 GB
Total Virtual Memory 2.00 GB
Available Virtual Memory 1.96 GB
Page File Space 3.35 GB
Page File C:\pagefile.sys


I did all the voice training for SDK. It's only the mouse movements that are "off". Or so it would seem. Did notice a couple commands that have keyboard shortcuts, are actually done by mouse movement. ie. "Return to course" gives time to course end.
And as stated before, I have disabled all MODS and have the same problem, BUT not the same results. The stock 1.5 game moves the mouse to the same locatoin but results in a different command. Is this MOD suppose to be in my SH4 Mods folder for JGSE? I really appreciate the help on this Billko. More than you know. Thanks....CH

This is really stumping me. The only thing I can imagine is that somehow the resolution specified in the sh4speech bat file doesn't match the resolution specified in the game. he only thing I can suggest is to actually go to the graphics menu and manually choose your resolution.

One other thing you might try is to revert to 2.52. It seems that there were some changes in the later ones that had something to do with resolution fixes since 2.52. It's a shot in the dark, but it might fix things.

Sorry for the late post, I just got home from work.

Bill

minsc_tdp
08-05-08, 12:34 AM
Hi everyone! Sorry I've been AWOL for a while. Haveabyte.com has kept me very busy. I have never forgot this thread but I didn't watch very often after it started to die off a bit. I was pretty surprised and thrilled to see continuing interest here. I assure everyone as soon as I have time I will go back a few pages and address every issue here.

i haven't even been playing sh4. No time, all work for me. I need to get back into it as I have virtually no hobbies anymore, so I should get at least one, right? Besides if I do and start using my own creation I'm more likely to fix things.

Thanks to everyone who has been so kind as to answer questions and help others in my absence. It's what makes this community a cut above so many others.

billko
08-05-08, 12:47 AM
Hi everyone! Sorry I've been AWOL for a while. Haveabyte.com has kept me very busy. I have never forgot this thread but I didn't watch very often after it started to die off a bit. I was pretty surprised and thrilled to see continuing interest here. I assure everyone as soon as I have time I will go back a few pages and address every issue here.

i haven't even been playing sh4. No time, all work for me. I need to get back into it as I have virtually no hobbies anymore, so I should get at least one, right? Besides if I do and start using my own creation I'm more likely to fix things.

Thanks to everyone who has been so kind as to answer questions and help others in my absence. It's what makes this community a cut above so many others.

:) Welcome back!!!

Coolhand01
08-05-08, 06:08 PM
@ Billko...No joy on the manual selection. I'm really beginning to think that the coordinates for the mouse movements are off somehow. I am using a 21" flat screen but I don't think that should matter. Also, I can't find a 2.52 version as 2.54 is the only one I've D/L'ed. And don't worry about late responses. I know all about loooong work hours.lol....CH


ps. thanks again for the help..:up:

tomoose
08-05-08, 09:02 PM
CH;
I may have missed this in your previous post but I'll toss it out there. I've noticed that if you click on the mouse to make the cursor disappear so you can "look" around, if you try a voice command at this point it won't work. The cursor must be visible. Could that be the problem?

@ minsc_tdp
I won't play SHIV without the voice command anymore, LOL. You've got me hooked. I've still got the aft tubes issue I mentioned in a previous post but I can live with it. thanks again for your work.

billko
08-05-08, 09:28 PM
@ Billko...No joy on the manual selection. I'm really beginning to think that the coordinates for the mouse movements are off somehow. I am using a 21" flat screen but I don't think that should matter. Also, I can't find a 2.52 version as 2.54 is the only one I've D/L'ed. And don't worry about late responses. I know all about loooong work hours.lol....CH


ps. thanks again for the help..:up:

If you give me an email address, I can send you the version I am using 2.22. You can check out the chage log on the first post in this thread for info on what's happened since then, but I don't think there were any major chages (besides a reorganization in the file/folder structures). I'd recommend you delete the sh4speech folder instead of copying over it.

Bill

silverstone08
08-06-08, 06:58 AM
ok so installed micrsoft voice sdk file you say in the readme, and i ran two spech recogniton walkthroughs and when i use your program nothing happens. I tell it to reset the tubes to 6 reset the dials and all the other start up stuff but when i tell it to do any command nothing happens!

what i need is an idiots guide to getting this brilliant sounding tool to work.

tomoose
08-06-08, 10:13 AM
Let's try the process of elimination;
When you start SHIV speech (I use an icon on the desktop). Does the DOS box pop up, you should have a DOS type box appear with a bunch of "prep" lines which indicate that SHIV speech is running and ready to receive voice commands. I'm at work so can't post a screenie. If that box is not appearing then SHIV is not working properly.
If it is appearing then SHIV is working and the problem may be your sound setup (i.e. it's not the program itself but rather your current configuration).

silverstone08
08-06-08, 10:23 AM
EDIT. woops almost forgot yes the dos window opens and stays open it just says listening. i was looking at earlier posts in the thread and for good mesaure i have instaslled both active pyhton and active perl but i dont have an install file in the zip just he dos files!
please explain as micrsoft speeech recogntion works beautifully but this tool doesnt work!

if you what set up am i using sound wise i use a unkown brand head set with an excedingly good mic and have it plugged into my rear sound ports on my mobo. it uses realtek hd audio manager.

please help i really want this to work

Coolhand01
08-06-08, 07:42 PM
@ Billko....Check PM

silverstone08
08-07-08, 09:54 AM
all right so i fioxed my problem and i have to say "Fire tube 1!":D this tool is the best ever and im not joking with a little more training i think i can get it to recognise any command i give it and then bye to my keyboard (for sh4 anyway)

what did i do you mayask well i just re downloaded the tool and voila nothing else was changed and after doing this and finding out it worked i ran a couple more voice training sessions and now i cant put it down!

@admin please deltet my previous posts

tomoose
08-07-08, 10:08 AM
Glad to see you got it working, obviously the first file was a corrupt download.

Yes, you'll find it is quite addictive and certainly adds to the immersion/enjoyment. I've modified some of the commands such as;
"up/down scope" instead of "raise attack periscope"

"come left/right xx degrees" instead of "change course...."

"make your depth xx feet" - this one is a little weird in that when I say "make your depth 200 feet" the XO will respond with "new depth, 199 feet". He's always one foot off, LOL. Not sure why but no biggie.

It's a pretty versatile program so if you have a particular way of saying a command it's pretty easy to insert it into the command list.

Good hunting.:up:

billko
08-07-08, 10:33 AM
@ Billko....Check PM

Coolhand. Check email! ;)

Coolhand01
08-07-08, 09:49 PM
@ Billko....Check PM
Coolhand. Check email! ;)

That didn't work either. I give up. Thanks anyway's....CH

billko
08-08-08, 12:03 AM
@ Billko....Check PM
Coolhand. Check email! ;)

That didn't work either. I give up. Thanks anyway's....CH

I'm really sorry I couldn't help you, coolhand. Have you tried playing at a different resolution? Or maybe a workaround is to set sh4speech to some sort of custom resolution. Maybe sh4speech has to be set to something like 1152 x 864? I'm not giving up as long as I have stuff you can try!

Bill

Jaeger
08-12-08, 10:18 AM
nice to see minsc is back. i hope you can help me using your software on a german vista (problem is descripted some posts above). i will retake my tests on this issue to solve the problem and i hope you can give me some hints about it...

edit: minsc, i have running it now! forget my issues, everything runs fine now with my german vista. only two words are not understood (there is an error message in the dos window): "Bruecke" and "fuenf". all the other words including "ae", "oe" and "ue" are well understood.


greetz, Jaeger

jamz
08-14-08, 10:57 AM
Glad to see you got it working, obviously the first file was a corrupt download.

Yes, you'll find it is quite addictive and certainly adds to the immersion/enjoyment. I've modified some of the commands such as;
"up/down scope" instead of "raise attack periscope"

"come left/right xx degrees" instead of "change course...."

"make your depth xx feet" - this one is a little weird in that when I say "make your depth 200 feet" the XO will respond with "new depth, 199 feet". He's always one foot off, LOL. Not sure why but no biggie.

It's a pretty versatile program so if you have a particular way of saying a command it's pretty easy to insert it into the command list.

Good hunting.:up:

So this means I can change an existing command (dive) to (dive! dive! dive!) so when I clear my throat, or say "fire" it doesn't get mistaken? ')

Is there a link to how to change/edit/add/delete commands? :help:

tomoose
08-14-08, 11:23 AM
...all I've done is type in the command line within the Excel file (I insert an extra line so it will accept the 'old' command or the 'new' command).
As to clearing your throat, it's funny you should mention that. Every time I clear my throat near my mike I get taken to the Control Room, LOL. It's a bit of a pain but the SDK voice software is not 100% perfect at recognizing every little sound combo so I've learned to mute/cover my mike if I feel like coughing etc. It probably didn't help that I changed "go to control room" to "Con".:-? So far that's the only 'glitch' but I'm betting it's because part of any cough etc probably sounds like "con" to the program so it reacts. I simply say "bridge" or whatever and I'm back to where I was.
Yes, you can insert "dive, dive, dive" (haven't tried that myself) but don't be surprised if it doesn't work properly. I have "take her down" as a non-battlestation dive command and I have to pronounce it clearly else the crew don't react.
It's a bit of a learning process as to what commands react best etc. Stick with it and do some experimenting.
I've put in "stand down damage control" to get rid of my damage control team etc but so far I haven't got that particular command to work so I'll try some other similar expressions and go with whatever works. You get the idea.

tomoose
08-14-08, 11:25 AM
sorry forgot to answer that part of your query. I'm at work so don't have access to the files in question but I believe the readme gives some direction. Minsc, the author, will no doubt respond too.

jamz
08-15-08, 10:46 AM
Thank you for the reply, but no need to go a-lookin', I figured it out. Now "dive" is "dive dive dive" and "fire" is "fire-fire-fire!" Seems to work just out of the box!

tomoose
08-15-08, 12:00 PM
Glad you got it figured out. I, for one, won't play SHIV anymore without this speech function. I find it really adds to the immersion.:up:

minsc_tdp
08-27-08, 02:31 PM
I'm still *very* busy but again haven't forgotten. I just have no time for hobbies. I want very badly to spend a day working on issues in this thread, and get my own system working again so I can debug the tube issue, resolution issues and others people are reporting.

A quick reply regarding German and using other speech recognizers:

The system is designed in two pieces: One is a piece (python) that hooks into MS SAPI and sends recognized voice commands to the other piece (perl). If you wanted to use a different speech recognition technology (such as Dragon), it might "just work" if it is installed as a SAPI speech recognition library, thus I'm still using SAPI and nothing changes. But if it's an entirely non-SAPI system then that one piece of shSpeech would need to be rewritten for that, and that is very unlikely to happen.

I would figure that most speech recognition engines are SAPI compliant, thus bypassing the MS recognition but still using their SAPI system as the conduit for communicating with software like shSpeech. If you get it working, it should show up in the speech control panel dropdown list as a Recognizer.

Also...

Regarding using version 2.52 instead of 2.54, or any other previous version: You can still download them all. Just change the download URL, like instead of this:

http://knepfler.com/shSpeech/shSpeech2.54.zip
use this:
http://knepfler.com/shSpeech/shSpeech2.52.zip

and it'll just work. All the files are there, just hidden.

Back soon (I hope!)

minsc_tdp
08-27-08, 02:40 PM
In order to help you guys better, I need to come clean: I start reading the thread and I have so little time and so much else that I have trouble following all the threads, names, open issues and resolved issues. I need to set up a Bugzilla, haha!

Could someone go through the last few threads and try to summarize the key issues in one post?

My sense is that the tubes thing is pretty major, even though it only seems to be affecting one person, it's really troubling to me.

Any resolution bugs introduced between 2.52 and 2.54 are pretty major too. I thought they were all good though. Any idea which resolutions *don't* work?

Also, support for the latest Trigger Maru seems dicey, perhaps they changed the key mappings since my latest version which is the most likely explanation. Beyond that, the other issues are a bit of a blur.

I don't think my own SH4 is updated to version 1.5 and I haven't downloaded Trigger Maru in a long time. And let's not even bring up RFB...

Thanks!

tomoose
08-28-08, 12:05 PM
The aft tubes thing is a low priority, a nice-to-have. Given I'm the only one that seems to have the problem then it's probably something I'm doing wrong or have not setup properly. I'll keep plugging away at it and monitor this thread for anyone with similar problems (then I'll know it's not ME, LOL).:up:

billko
08-28-08, 08:35 PM
I just got home from work, but I'll try to summarize some stuff I have over the weekend. A four hour round trip plus 10 hour workdays = very little time for me except on my days off. Sorry!

Bill

tomoose
08-30-08, 09:33 AM
Your Damage Control application looks like it could be the basis for an SH4 Commander type application. Have you given it any thought? Is it done in Delphi by any chance (I'm an old, aka obsolete computer programmer, just curious).:up:

billko
08-30-08, 05:46 PM
Your Damage Control application looks like it could be the basis for an SH4 Commander type application. Have you given it any thought? Is it done in Delphi by any chance (I'm an old, aka obsolete computer programmer, just curious).:up:

Sorry to do a mini-hijack of this thread:
No, I actually did it in VB .NET so I could familiarize myself with a new programming language. ;)

We no return you to your local thread, already in progress...

Bill

PS - sorry about the hijack!

chief.kaiser
09-03-08, 09:39 AM
Sorry about this but could someone please explain to me how i install this?

i cant find any step by step instructions on what to do and i just cant figure it out. Maybe im being stupid but i dont see myself as IT illiterate, i do A level ICT. Sorry if i've missed some blatent instructions somewhere:oops:

Thanks. Chief

tomoose
09-03-08, 11:26 AM
Chief;
once you download it and unzip it, simply run the install.bat file (don't forget to read the Readme file).

You will also require the SDK file which is a free download from Microsoft as that's required to initiate the 'voice' aspect of Windows (I believe that file is mentioned in the readme file).

Don't get discouraged, the installation itself (once you figure out the procedure) is straightforward. Once you install the SDK software I highly recommend you use the voice practice feature as this permits Windows to "learn" how you pronounce words so that the voice software will react properly to your commands.

Hope this helps. Be patient, Minsc himself will no doubt respond once he gets a chance.

chief.kaiser
09-03-08, 04:50 PM
Thanks Alot tomoose:up:

This is soo much fun, i feel a tad geeky while using it but meh:p

billko
09-03-08, 09:12 PM
Thanks Alot tomoose:up:

This is soo much fun, i feel a tad geeky while using it but meh:p

When things get tense, I tend to yell a lot and my wife thinks i'm weird or crazy. I guess she's right. ;)

Bill

billko
09-03-08, 09:27 PM
I took a quick look through the posts and I see that there are specific issues with specific people that seems to need addressing.

Coolhand has a resolution issue that has been vexing me to no end. It appears that the mouse movement is not being calculated correctly.

Tomosse has that odd problem where the aft tubes don't respond to voice commands.

Bill

Tha reminds me, Coolhand, did you try reinstalling SH4? Sometimes even is you use the Generic Mod Enabler, things get to the point where you can't go back to stock.

jamz
09-05-08, 05:47 PM
I'm actually running across the aft tubes issue now as well in a Balao class boat.

1280x1024 with the latest TMO and 1.5 patch going. I'll mess with it later tonight to try to troubleshoot it.


My wife asked me who I was talking to last night in the basement! :rotfl:

My only issue is that my mic is too sensitive, and the Microsoft VR software tries really hard to interpret any sound at all as a word. Shuffling papers on my desk, moving things around gets interpreted as multi syllable words. :doh:

Coolhand01
09-05-08, 06:28 PM
@ Bill,
I'll give it a try sometime this weekend....I have to work tommorow so I probably won't have any word for you til late Sat. or Sun.....CH

jamz
09-05-08, 07:57 PM
Well, the sh4speech app works great as far as recognition goes, looking at the dos window, it selects tubes perfectly well. Problem is, it doesn't reflect in the game.

The Balao, with six forward and four aft tubes, goes like this, after resetting all tubes and "I have ten tubes": Tubes 1 through 6 (all forward tubes) work normally. Any command involving tubes 7 through 10 activate on tube 6 (the last forward tube)... i.e. "open tube 8" opens tube 6. "open tube 9" then closes tube 6 (being opened by last command).

Starting with "I have eight tubes" (even though I have ten) results in tubes 1 through 4 working normally, and all tubes after activating on tube 4.

Starting with "I have six tubes" has the same result as the eight tube setup.


I also can't figure out the push to talk part. I've put the PAUSEBREAK line in the top of the push-to-talk csv file, restarted speech, and it doesn't seem to matter.
Not a big deal, now I just say "You have the conn" to pause it and "I have the conn" to resume. (actually it's "eye of the con" which suits the way I say it a bit better. :p )

billko
09-05-08, 10:16 PM
I'm actually running across the aft tubes issue now as well in a Balao class boat.

1280x1024 with the latest TMO and 1.5 patch going. I'll mess with it later tonight to try to troubleshoot it.


My wife asked me who I was talking to last night in the basement! :rotfl:

My only issue is that my mic is too sensitive, and the Microsoft VR software tries really hard to interpret any sound at all as a word. Shuffling papers on my desk, moving things around gets interpreted as multi syllable words. :doh:

Jamz, that is so weird. All the program does is simulate "W" presses until it gets to the right one. The whole idea behind "I have x tubes" is so that the program can know what the number of the last tube is so it can wrap around to tube one.

If the application was somehow miscalculating the tubes, everyone would be having the problem... :hmm:

About your other problem... you can assign a "push to talk" mouse button or key. That should help a lot. I had the same problem.

Bill

tomoose
09-06-08, 09:53 AM
So it's not just me with the aft tubes, LOL. That's good to know.;)

jamz
09-06-08, 06:47 PM
Jamz, that is so weird. All the program does is simulate "W" presses until it gets to the right one. The whole idea behind "I have x tubes" is so that the program can know what the number of the last tube is so it can wrap around to tube one.

Aha. A new piece of the puzzle for me, as I always had selected the tube with the mouse. Pressing "w" only cycles through my forward tubes, it does not ever go over to the aft tubes. So sh4speech is working correctly, it would seem to be my key combo or installation or something! Tomoose, will your manual W keypress work normally, or is your setup like mine where it doesn't work with the aft tubes?

Edit: Now I see it, the "E" key cycles through the aft tubes. What the heck? Must be part of a new Trigger Maru Overhauled setup maybe?

jamz
09-06-08, 07:21 PM
I think I fixed it! There was some older information in one of the .csv files.

After discovering that W cycles the forward tubes only, and E cycles the aft tubes only, I dug around the key_commands.csv file and saw that line 55 sets the aft tube cycle to the Y key, which was possibly from an older TMO version, I'm guessing. I changed it to the E key (even though it said "Do not change the ID for this!"). I also noticed that the emergency surface command was still linked to the E key so I just deleted that line, which results in a sh4speech error as it tries to find line 35. Which makes sense because TMO no longer has a key command for emergency surface- it's a button now. So I or better yet, someone smarter than me has to map out the button and parent tab for the blow ballast command. :)

Anyway, fish control is looking good, although I do wonder why no one else has the issue. I'm thinking now that I downloaded an older version of sh4speech or something, I'll have to look into this.


Edit (again) Maybe this skipper isn't as dumb as his crew thinks. I think my version is the latest. To make the emergency surface command work, delete all line 35 in the voice_commands.csv file, find line 95, and insert this line: "503,Emergency Surface,Blow Ballast,". This will go in preceeding line 504, and will make the BLOW BALLAST!!!! voice command work. Now I have properly working fish, and the ability to get to the top after a signature reckless attack that goes all wrong. :p

billko
09-06-08, 09:08 PM
I think I fixed it! There was some older information in one of the .csv files.

After discovering that W cycles the forward tubes only, and E cycles the aft tubes only, I dug around the key_commands.csv file and saw that line 55 sets the aft tube cycle to the Y key, which was possibly from an older TMO version, I'm guessing. I changed it to the E key (even though it said "Do not change the ID for this!"). I also noticed that the emergency surface command was still linked to the E key so I just deleted that line, which results in a sh4speech error as it tries to find line 35. Which makes sense because TMO no longer has a key command for emergency surface- it's a button now. So I or better yet, someone smarter than me has to map out the button and parent tab for the blow ballast command. :)

Anyway, fish control is looking good, although I do wonder why no one else has the issue. I'm thinking now that I downloaded an older version of sh4speech or something, I'll have to look into this.


Edit (again) Maybe this skipper isn't as dumb as his crew thinks. I think my version is the latest. To make the emergency surface command work, delete all line 35 in the voice_commands.csv file, find line 95, and insert this line: "503,Emergency Surface,Blow Ballast,". This will go in preceeding line 504, and will make the BLOW BALLAST!!!! voice command work. Now I have properly working fish, and the ability to get to the top after a signature reckless attack that goes all wrong. :p

Way cool, dude! I'm glad my discussion sent you off in the right direction! :up:

Matilda
10-13-08, 07:13 PM
Good work on this program. Getting used to editing the file structure took me a couple of minutes, but once I got used to it, I found sh4speech to be very versatile. Thanks for the work and thanks for making it available to the community.

Matilda
10-15-08, 12:05 AM
minsc_tdp I have a good handle on editing my .csv files to setup what I need from the keybd command list. But somethings that I want to do have no commands. What tools did/do you use to make your mouse macros. And what are you using to map coordinates on screen so that you have a starting point? This BTW is what sets your program apart from any other speech program I have seen so far. The ability to change dial settings via voice command is great. I am ready for the next step and that is editing button commands. I see that you aren't on the forums as much as you used to be, so I'll be patient. You can either answer via forum or PM, I look forward to picking your brain. Thx.

billko
10-15-08, 08:59 AM
minsc_tdp I have a good handle on editing my .csv files to setup what I need from the keybd command list. But somethings that I want to do have no commands. What tools did/do you use to make your mouse macros. And what are you using to map coordinates on screen so that you have a starting point? This BTW is what sets your program apart from any other speech program I have seen so far. The ability to change dial settings via voice command is great. I am ready for the next step and that is editing button commands. I see that you aren't on the forums as much as you used to be, so I'll be patient. You can either answer via forum or PM, I look forward to picking your brain. Thx.

I believe this info is contained in the CSV_File_Structure.htm document? (Or can be inferred, as the origin of the coordinate system.)

Bill

Matilda
10-15-08, 04:25 PM
Thx billko, the info is there or at least a ref point is listed there. So, I can trial and error the rest (I hope). That gets me started. I'd still like to E-speak with minsc_tdp, but your ref will keep me going for now.

billko
10-15-08, 11:42 PM
Thx billko, the info is there or at least a ref point is listed there. So, I can trial and error the rest (I hope). That gets me started. I'd still like to E-speak with minsc_tdp, but your ref will keep me going for now.

I know it's not much to go on. I apologize for that.

Bill

tomoose
10-16-08, 06:11 AM
Jamz;
thanks for the research. Hopefully minsc_tdp is reading this and can fix the files in question (I'll probably screw it up but I'll give it a shot).
cheers,
Tomoose:up:

Scavone
10-17-08, 03:46 PM
I have a bit of a problem here. After installing the Microsoft SDK as instructed, I ran the batch file. when the dos window opens, it repeats the same command line "restarting speech engine" over and over. The guy who posted last on this thread also had the same problem, so I know there's at least two of us with this error.
http://forums.ubi.com/eve/forums/a/tpc/f/6421019045/m/9381013875?r=7311020566#7311020566

Is anyone else having this problem? I've never been more excited about any SH mod so I would greatly appreciate any help to get this thing working.

billko
10-17-08, 08:39 PM
I have a bit of a problem here. After installing the Microsoft SDK as instructed, I ran the batch file. when the dos window opens, it repeats the same command line "restarting speech engine" over and over. The guy who posted last on this thread also had the same problem, so I know there's at least two of us with this error.
http://forums.ubi.com/eve/forums/a/tpc/f/6421019045/m/9381013875?r=7311020566#7311020566

Is anyone else having this problem? I've never been more excited about any SH mod so I would greatly appreciate any help to get this thing working.
Hi there:

What does your startup screen look like? It should look something like this:
D:\sh4speech\dist>voice 1680x1050 stock 5
sh4speech 2.21 by Minsc (Erik Knepfler)

Specified resolution: 1680x1050 (change under sh4speech.bat)
Using command set: stock

Caching stock key_codes.csv
Caching stock voice_commands.csv
Caching stock key_commands.csv
Caching stock variables.csv
Caching stock tubes.csv
Caching stock command_bar.csv
Caching stock dials.csv

****************************************
PRESS TO TALK MODE ENABLED USING MIDMOUSE KEY
YOU MUST HOLD THIS KEY TO BE RECOGNIZED!
CHANGE IN csv files/press_to_talk.csv
****************************************

Listening...
Bill

Scavone
10-18-08, 03:16 AM
First of all, thanks for the response. This is what mine displays....


C:\shSpeech\dist>voice 1024x768 stock 1 right sh4
shSpeech 2.54 by Minsc (Erik Knepfler)

Specified resolution: 1024x768 (change under sh4speech.bat)
Using command set: stock
Delay multiplier: 1 (change under sh4speech.bat)
Mouse hand: Right-handed

Caching stock key_codes.csv
Caching stock voice_commands.csv
Caching stock key_commands.csv
Caching stock variables.csv
Caching stock tubes.csv
Caching stock command_bar.csv
Caching stock dials.csv
Listening...
Traceback (most recent call last):
File "hear.py", line 18, in <module>
File "win32com\client\gencache.pyc", line 529, in EnsureDispatch
File "win32com\client\__init__.pyc", line 95, in Dispatch
File "win32com\client\dynamic.pyc", line 98, in _GetGoodDispatchAndUserName
File "win32com\client\dynamic.pyc", line 78, in _GetGoodDispatch
pywintypes.com_error: (-2147221005, 'Invalid class string', None, None)
Restarting speech engine...



This part will keep repeating over and over. Does the newer version still require ActivePython and Active Pearl? I installed those prior to downloading sh4speech 2.54. I had to have done something wrong, I just have no idea what. :damn:

Scavone

billko
10-18-08, 07:21 PM
First of all, thanks for the response. This is what mine displays....


C:\shSpeech\dist>voice 1024x768 stock 1 right sh4
shSpeech 2.54 by Minsc (Erik Knepfler)

Specified resolution: 1024x768 (change under sh4speech.bat)
Using command set: stock
Delay multiplier: 1 (change under sh4speech.bat)
Mouse hand: Right-handed

Caching stock key_codes.csv
Caching stock voice_commands.csv
Caching stock key_commands.csv
Caching stock variables.csv
Caching stock tubes.csv
Caching stock command_bar.csv
Caching stock dials.csv
Listening...
Traceback (most recent call last):
File "hear.py", line 18, in <module>
File "win32com\client\gencache.pyc", line 529, in EnsureDispatch
File "win32com\client\__init__.pyc", line 95, in Dispatch
File "win32com\client\dynamic.pyc", line 98, in _GetGoodDispatchAndUserName
File "win32com\client\dynamic.pyc", line 78, in _GetGoodDispatch
pywintypes.com_error: (-2147221005, 'Invalid class string', None, None)
Restarting speech engine...



This part will keep repeating over and over. Does the newer version still require ActivePython and Active Pearl? I installed those prior to downloading sh4speech 2.54. I had to have done something wrong, I just have no idea what. :damn:

Scavone

I believe the new version doesn't has no dependancy on Active Python or Active Perl. That might be your problem, although I would try re-downloading, then re-copying the folder before uninstalling those things.

Bill

Scavone
10-18-08, 09:08 PM
I've tried everything. It just does not seem to work. I might try downloading the next release and see if that works. Thanks for the help.

Scavone

billko
10-19-08, 09:43 AM
I've tried everything. It just does not seem to work. I might try downloading the next release and see if that works. Thanks for the help.

Scavone

Are you running Vista? It occured to me that some people had problems with the speech engine vs. Vista. I think it's resolvable, but you might want to hunt through this thread to see how they fixed it.

Bill

Scavone
10-19-08, 01:55 PM
[/quote]
Are you running Vista? It occured to me that some people had problems with the speech engine vs. Vista. I think it's resolvable, but you might want to hunt through this thread to see how they fixed it.

Bill[/quote]


No, I'm running XP. I've checked all the forums and the only post I could find dealing with a problem like mine was the on the Ubisoft forums.

Scavone

billko
10-19-08, 09:52 PM
Are you running Vista? It occured to me that some people had problems with the speech engine vs. Vista. I think it's resolvable, but you might want to hunt through this thread to see how they fixed it.

Bill[/quote]


No, I'm running XP. I've checked all the forums and the only post I could find dealing with a problem like mine was the on the Ubisoft forums.

Scavone[/quote]

Hmmm, I have to think on this one...

bucky699
10-29-08, 02:55 AM
Question is this mod/program compatible with RFB mod and the PE v1.5?

billko
10-29-08, 11:06 AM
Question is this mod/program compatible with RFB mod and the PE v1.5?

If RFB changes/adds commands, sh4speech probably doesn't directly support it - you would need to modify the CSV files.

The same with PE v. 1.5.

I have neither of these, so I cannot say for certain... Sorry!

Bill

minsc_tdp
10-31-08, 07:31 PM
I've tried everything. It just does not seem to work. I might try downloading the next release and see if that works. Thanks for the help.

Scavone

Scavone,

To get it working in Vista, I had to jump through some hoops but nothing had to be changed in shSpeech. Basically I had to configure Vista to get Speech working. Unlike XP, where my program can invoke it on a whim and it's always available, in Vista it is only available if you launch it. When it's running, you'll see a very distinctive control panel widget at the top of your screen that says "listening" or something like that. When this is running, you've made huge progress toward getting shSpeech working in Vista. That's basically all I remember doing and it was fine at that point.

I wish I could be of more help, but it's been so long since I've worked on this, I've forgotten everything and I feel as I'm coming into it as a newb like everyone else, in a weird sort of way.

minsc_tdp
10-31-08, 07:39 PM
Coolhand,

Your problem certainly seems to be resolution based. Here is what I suspect is happening. You have set the game to 1024x768 and the shSpeech to 1024x768. However, on some video cards with certain displays, especially televisions or widescreens, it's possible that the video card is doing some sort of scaling to fit the window to the physical display. As a result, the game is pumping out 1024x768 data to the video card, and then the video card is changing it to be something else before it reaches the display - say 1055x755 for example. shSpeech will then click the mouse pointer based on an offset from the upper left (0,0) and miss it's mark, since the far right side is actually not 1024 and the bottom isn't 768, but in fact it is something else. This is usually due to some kind of overscan or underscan compensation that the video card driver is doing, perhaps automatically on your system.

The biggest indicator that something like this is happening is that your round dials are not really round, but are in fact ovals.

One way to find out the actual resolution is to use your monitor's physical button controls to pull up an info window to see what the current video resolution is. Most monitors have this (my Plasma TV, for example, has an info button on the remote that tells me what mode I'm really in.)

Another possible way is to use the SH4 screenshot button to get a BMP file, and then open it in an image editor to determine the resolution. This *might* show 1024x768 and so if that's the case yet you have ovals, this is not to be trusted, and you would want to use the monitor info button method.

Unfortunately, if you have ovals, even if you figure out the actual pixel width/height and put it into shSpeech, it might still fail because I'm not sure if the algorithms take non-round controls into account. It might just work but my sense is that it will not. The only possible solution is to experiment with different resolutions supported by SH4 that provide you with perfectly round, non-oval controls and then try that resolution in the shSpeech BAT file.

I hope this helps.

Hi everyone. Wish I could be here more.

minsc_tdp
10-31-08, 07:42 PM
The tube issue where W cycles only the fore tubes is in fact something I experienced with Trigger Maru's config file changes. There could be other issues if your config file is based on TM.

I'd also warn that the shSpeech BAT files that run in Trigger Maru mode may not have kept up with the changes in the last several months in TM. Anyone could feel free to modify the TM CSVs I provide and send them back to me once they're confirmed to work, and I'd be happy to release a refresh update to include these. Personally I play pretty much stock (when I play, which is never) and I make sure that I'm always using the stock keyboard configuration file (which I believe is cfg\Commands.cfg but I could be mistaken.)

Good luck!

billko
10-31-08, 07:44 PM
Coolhand,

Your problem certainly seems to be resolution based. Here is what I suspect is happening. You have set the game to 1024x768 and the shSpeech to 1024x768. However, on some video cards with certain displays, especially televisions or widescreens, it's possible that the video card is doing some sort of scaling to fit the window to the physical display. As a result, the game is pumping out 1024x768 data to the video card, and then the video card is changing it to be something else before it reaches the display - say 1055x755 for example. shSpeech will then click the mouse pointer based on an offset from the upper left (0,0) and miss it's mark, since the far right side is actually not 1024 and the bottom isn't 768, but in fact it is something else. This is usually due to some kind of overscan or underscan compensation that the video card driver is doing, perhaps automatically on your system.

The biggest indicator that something like this is happening is that your round dials are not really round, but are in fact ovals.

One way to find out the actual resolution is to use your monitor's physical button controls to pull up an info window to see what the current video resolution is. Most monitors have this (my Plasma TV, for example, has an info button on the remote that tells me what mode I'm really in.)

Another possible way is to use the SH4 screenshot button to get a BMP file, and then open it in an image editor to determine the resolution. This *might* show 1024x768 and so if that's the case yet you have ovals, this is not to be trusted, and you would want to use the monitor info button method.

Unfortunately, if you have ovals, even if you figure out the actual pixel width/height and put it into shSpeech, it might still fail because I'm not sure if the algorithms take non-round controls into account. It might just work but my sense is that it will not. The only possible solution is to experiment with different resolutions supported by SH4 that provide you with perfectly round, non-oval controls and then try that resolution in the shSpeech BAT file.

I hope this helps.

Hi everyone. Wish I could be here more.

Good to seeyas again! I believe so much in this helper app that I've been trying to stand in for you while you were away. I hope you can wander down this way every so often. :)

Bill

Coolhand01
10-31-08, 08:12 PM
Coolhand,

Your problem certainly seems to be resolution based. Here is what I suspect is happening. You have set the game to 1024x768 and the shSpeech to 1024x768. However, on some video cards with certain displays, especially televisions or widescreens, it's possible that the video card is doing some sort of scaling to fit the window to the physical display. As a result, the game is pumping out 1024x768 data to the video card, and then the video card is changing it to be something else before it reaches the display - say 1055x755 for example. shSpeech will then click the mouse pointer based on an offset from the upper left (0,0) and miss it's mark, since the far right side is actually not 1024 and the bottom isn't 768, but in fact it is something else. This is usually due to some kind of overscan or underscan compensation that the video card driver is doing, perhaps automatically on your system.

The biggest indicator that something like this is happening is that your round dials are not really round, but are in fact ovals.

One way to find out the actual resolution is to use your monitor's physical button controls to pull up an info window to see what the current video resolution is. Most monitors have this (my Plasma TV, for example, has an info button on the remote that tells me what mode I'm really in.)

Another possible way is to use the SH4 screenshot button to get a BMP file, and then open it in an image editor to determine the resolution. This *might* show 1024x768 and so if that's the case yet you have ovals, this is not to be trusted, and you would want to use the monitor info button method.

Unfortunately, if you have ovals, even if you figure out the actual pixel width/height and put it into shSpeech, it might still fail because I'm not sure if the algorithms take non-round controls into account. It might just work but my sense is that it will not. The only possible solution is to experiment with different resolutions supported by SH4 that provide you with perfectly round, non-oval controls and then try that resolution in the shSpeech BAT file.

I hope this helps.

Hi everyone. Wish I could be here more.

Thanks for the reply and the PM. Now for the bad news(for me).
I have alway's had round dials no matter what resolution I'm running and the monitor menu shows the same resolution as I'm running in the sim. If I alt-tab out it shows the resoluton of my desktop. My monitor is a Sony Trinitron model G520 21" flat screen.

Again, thanks for the help....CH

billko
11-01-08, 09:51 AM
Coolhand,

Your problem certainly seems to be resolution based. Here is what I suspect is happening. You have set the game to 1024x768 and the shSpeech to 1024x768. However, on some video cards with certain displays, especially televisions or widescreens, it's possible that the video card is doing some sort of scaling to fit the window to the physical display. As a result, the game is pumping out 1024x768 data to the video card, and then the video card is changing it to be something else before it reaches the display - say 1055x755 for example. shSpeech will then click the mouse pointer based on an offset from the upper left (0,0) and miss it's mark, since the far right side is actually not 1024 and the bottom isn't 768, but in fact it is something else. This is usually due to some kind of overscan or underscan compensation that the video card driver is doing, perhaps automatically on your system.

The biggest indicator that something like this is happening is that your round dials are not really round, but are in fact ovals.

One way to find out the actual resolution is to use your monitor's physical button controls to pull up an info window to see what the current video resolution is. Most monitors have this (my Plasma TV, for example, has an info button on the remote that tells me what mode I'm really in.)

Another possible way is to use the SH4 screenshot button to get a BMP file, and then open it in an image editor to determine the resolution. This *might* show 1024x768 and so if that's the case yet you have ovals, this is not to be trusted, and you would want to use the monitor info button method.

Unfortunately, if you have ovals, even if you figure out the actual pixel width/height and put it into shSpeech, it might still fail because I'm not sure if the algorithms take non-round controls into account. It might just work but my sense is that it will not. The only possible solution is to experiment with different resolutions supported by SH4 that provide you with perfectly round, non-oval controls and then try that resolution in the shSpeech BAT file.

I hope this helps.

Hi everyone. Wish I could be here more.

Thanks for the reply and the PM. Now for the bad news(for me).
I have alway's had round dials no matter what resolution I'm running and the monitor menu shows the same resolution as I'm running in the sim. If I alt-tab out it shows the resoluton of my desktop. My monitor is a Sony Trinitron model G520 21" flat screen.

Again, thanks for the help....CH

:(

That's a CRT and should directly support all modes it says it's capable of. What happens if you play at its max res of 1600 x 1200? Besides slowing to a crawl, that is... ;)

Bill

Coolhand01
11-02-08, 08:06 AM
Same -O-same-O....I've tried every resoluton I can and get the same results, unfortunately....CH

billko
11-02-08, 10:32 AM
Same -O-same-O....I've tried every resoluton I can and get the same results, unfortunately....CH

Hey, I just thought of something. Some *pointing devices* use non-linear scaling - i.e., they have a finer resolution up and down than sideways, or vice versa. Do you have anything other than a generic mouse attached? This is fishing, but we've already covered the higher-percentage stuff...

Bill

Coolhand01
11-02-08, 11:38 AM
Logitec MX series laser mouse. And it's wireless.

billko
11-02-08, 01:24 PM
Logitec MX series laser mouse. And it's wireless.

Darn it... that's way too common to present an issue... The only thing I can suggest is to try to use a different monitor type... like maybe plug and play monitor instead of your monitor-specific one.

Bill

minsc_tdp
11-02-08, 10:32 PM
PM me or post a full resolution screenshot and I can try to sort it out.

Stev1
11-04-08, 10:19 AM
I've downloaded and installed SH4 Speech-voice command and it says that ActivePerl and Active Python are needed, what is activeperl and active python

billko
11-04-08, 12:31 PM
I've downloaded and installed SH4 Speech-voice command and it says that ActivePerl and Active Python are needed, what is activeperl and active python

Are you sure this is version 2.x? The leatest versions should have no dependancies on either of those. All you should need to to is unzip it and run the batch file. Some customization of the batch file might be needed, but that's about it.

Bill

minsc_tdp
11-05-08, 03:57 PM
I've downloaded and installed SH4 Speech-voice command and it says that ActivePerl and Active Python are needed, what is activeperl and active python

Billko is right, the latest version 2.54 does not require those, since it uses compiled executables with everything built-in.

There is no install - you unzip the package and run one of the BATs to start it, that's it.

minsc_tdp
11-05-08, 04:00 PM
Scavone,

Sorry for my vista comment, I didn't notice your other post where you said you're running XP.

Regarding your win32com error - that's pretty weird. The compiled python script does use win32com (obviously) but I would have thought it would be compiled in and should just work. What might solve the problem is to go ahead and manually install ActivePython and then pywin32 which might overwrite some core system libraries that perhaps this is connecting to.

ActivePython

http://www.activestate.com/store/download_file.aspx?binGUID=4656928e-d642-4aec-815e-b8d819b7cdbb

PyWin32

http://downloads.sourceforge.net/pywin32/pywin32-212.win32-py2.6.exe?modtime=1217537338&big_mirror=0

Let me know.

minsc_tdp
11-05-08, 04:06 PM
Question is this mod/program compatible with RFB mod and the PE v1.5?
If RFB changes/adds commands, sh4speech probably doesn't directly support it - you would need to modify the CSV files.

The same with PE v. 1.5.

I have neither of these, so I cannot say for certain... Sorry!

Bill

A quick way to determine if a mod is going to screw up your shSpeech is to simply do a search for Commands.cfg in your MODS folder after you drop them in for JSGME. If you find one, you'll want to compare it versus the stock Commands.cfg and see if anything changed.

Personally, I just dumped the RFB commands.cfg file and used the stock one. Seemed to work OK, but who knows what it might have broke that I wasn't aware of.

It's unfortunate that as more time goes by, shSpeech is more and more restricted to being used in stock mode, but as with anything it needs maintenance and there are always inter-mod conflicts. Fortunately the only things that affect shSpeech are things that change Commands.cfg or move any of the controls around, such as Trigger Maru.

Everyone's Commands.cfg file is going to vary so I think the best approach is an shSpeech pre-launch check routine that determines if anything has changed, and if so, shows you which ones, and points you to the right CSV entry so you can match everything up prior to launch (maybe even a wizard so you can do it one at a time and don't have to edit any files.) Anyone feel like writing this? :)

Stev1
11-06-08, 10:07 AM
Thanks for the information Bilko; Minsc_tdp will try running it without installing both Active Perl and Active Python

billko
11-06-08, 12:04 PM
Thanks for the information Bilko; Minsc_tdp will try running it without installing both Active Perl and Active Python

Just make sure it's the latest (2.54 I believe).

Good luck!

Bill

bucky699
11-09-08, 05:35 PM
Thanks for the replys guys, i have Pacific Enviros 4 installed and i think it must make some changes as not all my commands are ebing recognised i might use minsc trick and just dump the old stock commands file and see if that helps, the PE mod shoudlnt change too much in the way of controls so hopefully wont lose out on anything.

billko
11-09-08, 07:42 PM
Thanks for the replys guys, i have Pacific Enviros 4 installed and i think it must make some changes as not all my commands are ebing recognised i might use minsc trick and just dump the old stock commands file and see if that helps, the PE mod shoudlnt change too much in the way of controls so hopefully wont lose out on anything.

PE4 shouldn't have anything to do with SH4Speech. :hmm:

Bill

havoc
11-13-08, 06:39 PM
:damn:
CAn sombody help ..
this sounds stupid, but how do i go about changing the rez from 1024x 768 to 1680x1050 in the shspeech-stock.bat file.
as u probably can tell i know nothing about computers and its not all that clear in the instructions :oops: u ever get that feeling that the answers going to be really easy . and you going to get that DOH! moment ..;)

billko
11-14-08, 09:53 PM
:damn:
CAn sombody help ..
this sounds stupid, but how do i go about changing the rez from 1024x 768 to 1680x1050 in the shspeech-stock.bat file.
as u probably can tell i know nothing about computers and its not all that clear in the instructions :oops: u ever get that feeling that the answers going to be really easy . and you going to get that DOH! moment ..;)

Okay, not a problem. Right-click on the icon representing your .bat file. Choose "edit." The file will open up in notepad. Type in the resolution you are playing in (in this case, 1680 x 1050) in place of the 1024 x 768. Click on File --> Save. Then click File --> exit and you're done! :) Don't forget to enjoy the application.

Bill

SinkingDDT
11-22-08, 09:10 PM
I got MS Speech SDK 5.1 downloaded and working, but I can't get this amazing looking program to work. Obviously it would be GREAT, but it would really hook my eight-year-old who is now starting to share my interest in WWII subs.

When I run "sh4speech - stock.bat", I get a MS-DOS screen (?) that ends with "Listening... ." and the cursor blinking below that. What am I missing?

NOT A MODDER OR A COMPUTER MASTER AT ALL!

Any and all appreciated. You modders amaze and shame me.

In the meantime, can you help me?

billko
11-23-08, 12:17 AM
I got MS Speech SDK 5.1 downloaded and working, but I can't get this amazing looking program to work. Obviously it would be GREAT, but it would really hook my eight-year-old who is now starting to share my interest in WWII subs.

When I run "sh4speech - stock.bat", I get a MS-DOS screen (?) that ends with "Listening... ." and the cursor blinking below that. What am I missing?

NOT A MODDER OR A COMPUTER MASTER AT ALL!

Any and all appreciated. You modders amaze and shame me.

In the meantime, can you help me?
You're missing... maybe microphone setup? There's a few things to do first:
Make sure your microphone is plugged into the right jack and that it is turned on.
Open the control panel: Start --> settings --> Control Panel.
Double-click on the Speech icon. This opens Speech Properties.
Configure the microphone
Click on the <Configure Microphone> button in the Microphone section.
Follow the prompts.
Create a new Profile
Click the <New> button in the Recognition Profiles section
Follow the prompts to create it.
Making sure the Profile you've created has a check mark next to it, train it
click on the <Train Profile...> button
Follow the prompts.
Start up the SH4Speech application, then SH4 itself and enjoy the gameIMHO, it's best, if you have a middle mouse button, to configure the press-to-talk option. That way extraneous noise (or a malicious siblng) can't trigger a false command.

Hope this helps!

SinkingDDT
11-23-08, 10:07 PM
Thanks, Billko-

I don't know how I did it, but I finally got beyond the "Listening..." prompt, but... .

I kept getting it. I spoke many of the commands into the microphone, and would get several lines of text each time, which looked like I was making progress! WOO-HOO! But it kept happening, like it was "Groundhog Day". So, I think the mike is working and the program is 'learning', but I don't know how to 1) make it either stop or remember or 2) actually see anything happening in SH4 itself.

I have the speechpack in my DOCUMENTS folder. Is that the problem?

Thanks for the quick response, Billko.

billko
11-24-08, 02:29 AM
Thanks, Billko-

I don't know how I did it, but I finally got beyond the "Listening..." prompt, but... .

I kept getting it. I spoke many of the commands into the microphone, and would get several lines of text each time, which looked like I was making progress! WOO-HOO! But it kept happening, like it was "Groundhog Day". So, I think the mike is working and the program is 'learning', but I don't know how to 1) make it either stop or remember or 2) actually see anything happening in SH4 itself.

I have the speechpack in my DOCUMENTS folder. Is that the problem?

Thanks for the quick response, Billko.
So, you've gone through the checklist? Each step MUST be completed for the application to work properly. Setting up the mic makes sure that the microphone gain is enough so that the application can "hear" your voice, but not so loud it distorts and the application cannot understand what you are saying. Training is important because the application has to hear you speak so it can match sounds that you make to text that it "reads."

Also, what you are reporting may actually be the application working as planned. Buried somewhere deep in the documents is an explanation that, to paraphrase, "needs to periodically restart the speech engine to avoid a memory leak." If what you see is "Restarting the speech engine" and then "listening..." that should be normal.

Again, I hope I've given you enough knowledge to make it work! This is such a neat application, I wouldn't give up on it just yet! :)

Oh, and it shouldn't matter where you placed the SH4Speech folder, as long as it isn't in the recycle bin!

Bill

SinkingDDT
11-26-08, 09:35 AM
Billko, you are the MAN!

Turns out I was, indeed, missing one simple step, and I got it from reading your e-mail--

Start up the SH4Speech application, then SH4 itself and enjoy the game

Um, I didn't realize I had to leave SH4SPeech open when I startedSH4. Which kinda makes sense, since I was thinking someone was a genius to have come up with a way for SH4 to know I wanted to use the Speechpack. Oh, the shame.... .

Thanks again, couldn't have done it without you!

Now for CapnScurvy's Medals Fix... .

What's an ".rar" file?

billko
11-26-08, 04:57 PM
Billko, you are the MAN!

Turns out I was, indeed, missing one simple step, and I got it from reading your e-mail--
Start up the SH4Speech application, then SH4 itself and enjoy the game
Um, I didn't realize I had to leave SH4SPeech open when I startedSH4. Which kinda makes sense, since I was thinking someone was a genius to have come up with a way for SH4 to know I wanted to use the Speechpack. Oh, the shame.... .

Thanks again, couldn't have done it without you!

Now for CapnScurvy's Medals Fix... .

What's an ".rar" file?

I'm glad you got it to work!!! Have fun!!! And I wouldn't worry about feeling silly about something like this. The best way to learn is to make mistakes. Congrats on a growing experience. ;)

Bill

sladecutter3
12-16-08, 08:16 AM
i downloaded sdk5, configured and ran speech recognition, downloaded and unzipped sh4speech, ran through the complete file, can not find speech.bat
a little help please:damn:

billko
12-16-08, 11:15 AM
i downloaded sdk5, configured and ran speech recognition, downloaded and unzipped sh4speech, ran through the complete file, can not find speech.bat
a little help please:damn:

Maybe you're looking for the wrong .bat file? It should be neamed: sh4speech - stock.bat. The version should be 2.x. Within the sh4speech folder should be 4 folders and the .bat files.

I'm not sure what "ran through the complete file" means? Sorry, but I don't understand what you are trying to say there.

sladecutter3
12-17-08, 12:38 PM
thanks billko,was looking at the correct file all along:hmm: just didnt realize it. works great in game.

billko
12-17-08, 06:50 PM
thanks billko,was looking at the correct file all along:hmm: just didnt realize it. works great in game.

Totally awesome! I'm glad I could help. :)

Bill

Anti_Ship_Fella
12-28-08, 04:29 PM
Nice job man....downloading this atm

Anti_Ship_Fella
12-29-08, 05:51 PM
hey....im new and want to try this....so....how do i set up this mod (im running stock sh4)

billko
12-30-08, 01:47 PM
hey....im new and want to try this....so....how do i set up this mod (im running stock sh4)

Please refer to the first post in this thread. It will tell you everything you need to know... but I do want to clarify that when the author says "installation: none," what he really means is: "installation: unzip this archive to a folder that you would like to run it from (even the desktop is okay, though not recommended)."

Bill

abchirk
01-24-09, 02:29 PM
great toy!
It works fine for me, what I tested.
But when it runs in the background... the graphics judder a little bit...

if not, there is no juddering. it isn't the fastest game for me but it is fluent.

My system: (32bit)
CoreDuo @ 3,0Ghz (E8400)
Nvidia 7950GT 512mb RAM
4gbyte of RAM

Anyone else having trouble with the performance?

billko
01-24-09, 07:47 PM
great toy!
It works fine for me, what I tested.
But when it runs in the background... the graphics judder a little bit...

if not, there is no juddering. it isn't the fastest game for me but it is fluent.

My system: (32bit)
CoreDuo @ 3,0Ghz (E8400)
Nvidia 7950GT 512mb RAM
4gbyte of RAM

Anyone else having trouble with the performance?

Tell you the truth, I've never seen a problem with it dragging the computer down, although I imagine it uses up a fair amount of resources. Well, not SH4Speech proper, but the speech engine that it uses.

Bill

scott613
02-01-09, 12:32 PM
What a great program you have - it really increases the immersion factor...

One possible issue I noticed with TMO - when requesting "Depth Below Keel" it seems to select "Periscope Depth" instead...

Not sure if anyone else has this problem...

Thanks again...

billko
02-01-09, 12:47 PM
What a great program you have - it really increases the immersion factor...

One possible issue I noticed with TMO - when requesting "Depth Below Keel" it seems to select "Periscope Depth" instead...

Not sure if anyone else has this problem...

Thanks again...

Just a guess, but maybe in TMO there's no "depth below keel" command?

Bill

tomoose
02-01-09, 09:20 PM
Scott;
I just noticed that same issue today. Biilko may be right in that the command isn't set, however that should be an easy fix (i.e. type in the command into the Excel spreadsheet and give it a go).:up:

Since getting 1.5 I've noticed that after a while, SH4 seems to stop acknowledging any of my voice commands. I haven't adjusted SH4 Speech since getting 1.5 so perhaps there's a setting for 1.5 that I missed? Yes? No?

I'm still having trouble with SH4 Speech recognizing any Aft tubes. There's no problem with the Forward tubes. Weird.

tomoose
02-01-09, 09:29 PM
Depth below Keel is, in fact, in the voice_commands.csv file, so it should work.
I'm guessing that the phrase "depth under...." and "depth below...." or just the word "depth" is triggering the "periscope depth" response".
One of the other phrases is "give me a depth reading" so try that. If that doesn't work then I think a phrase could be inserted that doesn't use the word 'depth' (i.e. "distance to bottom" or "how far to bottom" or simply just "under keel?".

billko
02-01-09, 10:15 PM
Depth below Keel is, in fact, in the voice_commands.csv file, so it should work.
I'm guessing that the phrase "depth under...." and "depth below...." or just the word "depth" is triggering the "periscope depth" response".
One of the other phrases is "give me a depth reading" so try that. If that doesn't work then I think a phrase could be inserted that doesn't use the word 'depth' (i.e. "distance to bottom" or "how far to bottom" or simply just "under keel?".

Maybe scott should have a few less beers before game time so he won't slur his speech so much. ;)

Sorry scott, that was just a dumb joke. No offense intented. :)

Bill

tomoose
02-01-09, 10:37 PM
I tried "depth below keel" with just SHIV Speech on and without the game. It seemed to recognize it correctly every time. Perhaps there's something in-game that is causing the crossed-wires so to speak.

billko
02-01-09, 10:43 PM
Have you trained the speech engine yet?

Bill

scott613
02-02-09, 12:41 PM
Hi Bill / Tomoose...

LOL - Yes - and thanks for taking the time to reply...

I just tried it again - and - then checked the Sh4speech window on my desktop... It lists each command as they are executed... It does in fact recognize that I am asking for "Depth Below Keel" as that is the last command listed in the window...

I have tried it at two different screen resolutions with the same result... It looks like the command is just mapped to press the wrong button on the screen... All the other commands seem to work fine...

Have you tried this command "in game" to see if you get the same result ???

I just recently downloaded the program from the first page in the thread...

Does the owner still work on this mod ???

FYI: Same issue as Tamoose with aft tubes...

Thanks again...

billko
02-02-09, 03:22 PM
Hi Bill / Tomoose...

LOL - Yes - and thanks for taking the time to reply...

I just tried it again - and - then checked the Sh4speech window on my desktop... It lists each command as they are executed... It does in fact recognize that I am asking for "Depth Below Keel" as that is the last command listed in the window...

I have tried it at two different screen resolutions with the same result... It looks like the command is just mapped to press the wrong button on the screen... All the other commands seem to work fine...

Have you tried this command "in game" to see if you get the same result ???

I just recently downloaded the program from the first page in the thread...

Does the owner still work on this mod ???

FYI: Same issue as Tamoose with aft tubes...

Thanks again...

Scott:

I don't use that mod (because I still want to have *fun* playing the game - I have enough stress at work). I'm glad you've gotten so far as to know the command is being processed.

On a side note:
I thought the training exercise was hilarious. It made me sound like the world's most adamant advocate of the Microsoft Speech engine. My wife thought I was nuts. Well she's right, but not for that reason. ;)

Bill

tomoose
02-02-09, 06:17 PM
Scott;
you've raised a good point and it's something I didn't check. Perhaps the key command linked to the voice command is messed up between stock and TMO or TMO 1.4 vs TMO1.5, anyhoo, it's worth checking out in the various .csv files etc.
:hmmm:

Entirago
02-03-09, 08:25 AM
I don't play with Trigger Maru, but I do have fair experience with the shspeech program. I had a look at the csv files and found they should work alright from a mechanics standpoint.

The command for clicking depth under keel is a mouse command with no keystroke involved. The only way for it to order periscope depth is to click on a button in another tab.

Now, if you move the mouse during the mouse command, it'll foul the command and cause a mis-click, but it'll end up in a different place every time.

If you're using mouse look-around, such as in a periscope, on the deck gun, or on the bridge, the command will throw your view significantly, miss its click to change tabs but unlock from the view, then move down to hit what it thinks is the appropriate button, but is actually still in the wrong tab.

The other possibility I see is that the resolution in your bat file might be set wrong. To fix this, right-click the bat file and change '1024x768' to your current in-game resolution.

Hope this helps. Sorry for the length.

Entirago
02-03-09, 08:38 AM
And another possibility, mentioned above, is that the mouse co-ordinates are wrong. To fix this, you need a screenshot from trigger maru at 1024x768 resolution and a paint program that'll read pixels in x and y. Then it's just a matter of modifying the command_bar.csv file

If it's clicking on the wrong tab, change the following:
500,Tab,LowerLeft,Command Room,,x,y
Where x is currently 48 and y is 687

If it's clicking on the wrong button, change:
504,Button,LowerLeft,Depth Under Keel, 500, x, y
Where x is currently 189 and y is 739

It has to be at 1024x768 because the shspeech program will automatically scale these values up for higher resolutions.

scott613
02-03-09, 10:10 AM
Thanks for all the great responses...

I'll check the CSV - as that is where I suspect the problem lies...
The program directly reads the CSV in real time ???
Thought it needed to be compiled or something...

I should be able to handle the edits...
:up:

Again - thanks for taking the time - folks...
I can't live without this program - LOL - I love giving orders !!!

scott613
02-03-09, 10:50 AM
AWESOME !!!

Worked like a champ...
All better now...
:03:

And - now I can change some of the phrases to suit my likeing...
What a great program...

"Helm - steady as you go"
"Fathometer - Sounding"

Woohoo...

billko
02-03-09, 12:15 PM
AWESOME !!!

Worked like a champ...
All better now...
:03:

And - now I can change some of the phrases to suit my likeing...
What a great program...

"Helm - steady as you go"
"Fathometer - Sounding"

Woohoo...

Awesome!!! It increses the immersion factor by several orders of magnitude. :)

Have fun!

Bill

tomoose
02-03-09, 02:05 PM
What number values did you use to get it to work?:D

scott613
02-03-09, 03:20 PM
Hi Tomoose...

228x739 seems to work for me...

I think there may be a few more items that are mis-mapped as well...

Now that changes are as simple as editing CSV files - I think I may seriously modify the config files...

In just a few minutes of playing with the files - I fixed something else that I wanted to customize... When telling the deck gun to "Fire At Will" I don't ever want to go to the deck gun position - I just want them to start shooting... By default - if you issue two deck gun commands in a row - you find yourself in the gunners seat... I changed it so the only time I wind up in the gunners seat is when I say "Deck Gun"... Works for the AA too...

Also changing the voice commands to coincide to what we use today in the Navy.... For example - most orders are not just blurted out in the control room - first you have to identify the station you want to perform the task... It's not just "Heading left thirty degrees" it's "Helm - come left thirty degrees"... Not sure how they did it back in the day - though...

Well - I'll try playing with the files tonight to see what I can do... I need to make sure I'm not breaking anything when I make the changes... If I create anything worth sharing - I'll ask the owner if he minds me sharing the config files...

Thanks again to whomever created this setup - great program !!!

minsc_tdp
02-13-09, 01:04 AM
Hi everyone,

I know I pop in here very randomly but that's just how it is. :)

Scott613, feel free to redistribute any changes as long as the license file is kept intact. You know the typical rules, any modification is fine and redistributable as long as it is not for profit and all that jazz.

Hoping to find time to start subbing again soon. I think I've completely forgotten how to manually work the torpedo system, it's been soooo long...

I'd like to add that it makes me *extremely happy* to see other community membes continuing to provide excellent support for this in my absence.

I was laid off from my job of 10 years in December - though I kind of saw it coming - and have been working hard on my own business. Things are working out fairly well but it needs a lot of my attention. I can't wait for the day to come when I can return to this project and beef it up to make it more compatible with all the latest mods, easier to use, resolve issues related to customized key config files, and maybe even start actually playing the game again. :)

billko
02-13-09, 11:45 AM
Hi everyone,

I know I pop in here very randomly but that's just how it is. :)

Scott613, feel free to redistribute any changes as long as the license file is kept intact. You know the typical rules, any modification is fine and redistributable as long as it is not for profit and all that jazz.

Hoping to find time to start subbing again soon. I think I've completely forgotten how to manually work the torpedo system, it's been soooo long...

I'd like to add that it makes me *extremely happy* to see other community membes continuing to provide excellent support for this in my absence.

I was laid off from my job of 10 years in December - though I kind of saw it coming - and have been working hard on my own business. Things are working out fairly well but it needs a lot of my attention. I can't wait for the day to come when I can return to this project and beef it up to make it more compatible with all the latest mods, easier to use, resolve issues related to customized key config files, and maybe even start actually playing the game again. :)

Minsc:

The programming of this application was so wonderfully streamlined and straightforward that it makes supporting it very easy! I wish ALL apps were programmed this way. :)

Bill

scott613
02-13-09, 01:00 PM
Hi Minsc:

Actually I'm having a blast with your program - thanks again for all the hard work... I've just been playing with the CSV files for TMO... A few of the locations in the "dials" file needed to be changed... Maybe TMO changed the dials a bit - not sure - as I am pretty new around here...

One issue that I couldn't fix - TMO seems to use a different dials bar for the guns - depending if they have one or two guns provisioned... I think I'll just make two "dials.csv" and swap them out as needed...

This is all just probably for my own use...

Good luck with you business...

Take care,
Scott

minsc_tdp
02-14-09, 05:33 PM
One issue that I couldn't fix - TMO seems to use a different dials bar for the guns - depending if they have one or two guns provisioned... I think I'll just make two "dials.csv" and swap them out as needed...

Note that if you look carefully at the structure of the BAT files and the CSV folders, you'll see that you can make as many sets as you want of custom CSVs for different purposes and have the BAT's launch them, so you don't have to swap files in and out as you change game modes. shSpeech out of the box already has such BATs for stock vs. Trigger Maru (though that seems outdated now) but you can make more.

So like the TM bat file has:
voice 1024x768 "trigger maru" 1 right sh4
while the stock has:
voice 1024x768 stock 1 right sh4

So, that third parameter refers to which set of CSV files you want to use under the "csv files" directory. :)

minsc_tdp
02-24-09, 10:10 PM
Just a quick update y'all... I'm downloading TMO and PE4 right now, I'm getting the sub itch... which of course means if shSpeech doesn't work right with them I will be modifying it... everyone hope I make it to the end of an updated release before bailing out!

billko
02-25-09, 12:45 AM
Just a quick update y'all... I'm downloading TMO and PE4 right now, I'm getting the sub itch... which of course means if shSpeech doesn't work right with them I will be modifying it... everyone hope I make it to the end of an updated release before bailing out!

Good to see you again. Good luck - and good hunting!

Bill

Mourning_Lord
03-22-09, 05:02 AM
Hi all, new to this thread. Loving the mods and such, question regarding the speech mod.

I am finding no matter how I say Battle Stations it will not toggle battlestations on. It will click the blue button just before the battle stations button, not sure on why. If this was answere before, my apologies and if you woulld, point to to where the answer would be. Here is the config.csv entries for it.

569,Battle Stations,battle stations,
569,Battle Stations,all hands battle stations,
569,Battle Stations,all hands to battle stations,
569,Battle Stations,stand down battle stations,
569,Battle Stations,stand down from battle stations,
569,Battle Stations,general quarters,
569,Battle Stations,sound general quarters,

It opens up torpedo status instead of going to battle stations. Thank you for your time.

czs
03-26-09, 04:03 PM
Hi all! I actually found another problem. I'm using ver 1.5 of SH4, ver 2.52 and before 2.54 of shspeech, wo any mods, a 22' wide monitor on a geforce 8600gts, and i'm encountering the same problems, nomather what the resolutions are (1024*768, 1440*900, 1680*1050): some of the commands are working flawlessly, but most of them, like for example all stop, ahead 1/3, selecting any torpedo tubes, opening torpedo doors, firing, changing to deck gun, or to aa gun, and so on, do not work (it doesn't work if i say ahead 1/3, but it works like a charm when i say make pyour speed x knots). At first i thought there was a resolution problem, but it does that at any resolution, and all the commands that i say out, are recognised flawlessly by shspeech, but do nothing in the game. then i saw that a couple of these commands are actually simulating keypresses, so they should work nomather what the resolution is. i'm puzzled, and i would so much like to see this run as it should, but it keeps eluding me, so i'm asking for help. Thanks.
PS: i haven't changed the keyboard layout.

Kapitan_Phillips
03-27-09, 11:46 AM
This is awesome :rock::rock:

Coolhand01
03-27-09, 12:16 PM
@czs
I had the same problem awhile back and never could figure out the problem. Good luck trying to sort it out and could you please let me know if you do. Good luck....CH

Westbroek
07-23-09, 09:31 PM
Hey all,
First of all, I'm a long time sim-skipper and subsim.com devotee, but I think this is might actually my first post ever. I love the community here and am happy to be addressing this impressive group of minds.

I used Sh4Speech religiously when I was playing through my last campaign running TMO and can't emphasize how much more immersive a game it becomes. To stare your Dive Officer in the eyes, feed him a list of orders, and to have him nod, look around, and begin relaying orders without missing a step, allowing you to calmly climb up to the conning tower for a look around...it's truly unforgettable. Everyone: Try Sh4Speech.

However, in my yearning for the most realistic, historically accurate experience possible, I recently started running RFB. Now, obviously, I had to cease barking orders through ShSpeech because of the toolbar changes and the happy new functions, abilities, and hotkeys RFB provides.

Now, like a confused, jilted lover, I'm beginning to realize I can't live without SHSpeech... or RFB. And their inability to reconcile their differences is destroying me, my crew, my ship. I awoke this morning knowing something must be done.

Before I begin tweaking some new .csv files myself, I wanted to ask if there has been any official/unofficial .csv files constructed or modded specifically to RFB? Has anyone tried or maybe even gotten some progress toward this end?
I'd love to know what's been done and if anybody would be interested in that kind of thing if I were to start a primitive tackle of it.
In the meantime, I wish you all many contacts.
Cheers,
-Westbroek

Schultz
07-24-09, 06:37 AM
I see minsc that we have ideas in common, I sugested the same idea with the voice command at the VIIC engine room thread, but didn't that there was already a thread.

DeathCobra
09-13-09, 02:14 PM
is it somehow possilble to use the Dragon Naturally Speak engine with SH3speech instead of the Microsoft Speech Recognition engine?

H2osmokey
10-11-09, 09:37 PM
Tried this in vista but it would not comprehend. Can't load the Win speech program as it is designed for XP and prior. Any Speech for Vista and SH4?
(8?

NEVERMIND . . . found out the batch file didn't open right. All commands active now! (8D

H2osmokey
10-14-09, 07:08 PM
I was having some difficultiy with the Battle Stations, Depth Below keel, Damage Control etc and discovered some fixes. Here are some lines to update (don't forget to save the original command_bar.csv).

504 Button LowerLeft Depth Under Keel 500 239 739
505 ButtonLowerLeft Evasive Left 500 286 739
506 Button LowerLeft Evasive Right 500 336 739
569 ButtonLowerLeft Battle Stations 565 238 739
567 ButtonLower Left Damage Control Station 565 140 739

(8D

minsc_tdp
03-16-10, 01:09 AM
Sooooooooooo......

sh5Speech anyone?

billko
03-16-10, 01:14 AM
Sooooooooooo......

sh5Speech anyone?

like you even hadda ask... ;)

ferg
03-21-10, 02:33 AM
First off, thanks for sh4Speech. It seems like it's pretty neat, and I imagine a fair bit of work has gone into making it. I write "seems" only because I can't get it to work properly. Does it not support 1440x900? When I order a depth, it clicks the wrong place on the depth dial. I have correctly set my resolution in the batch file. Thanks, guys.

billko
03-21-10, 03:46 AM
First off, thanks for sh4Speech. It seems like it's pretty neat, and I imagine a fair bit of work has gone into making it. I write "seems" only because I can't get it to work properly. Does it not support 1440x900? When I order a depth, it clicks the wrong place on the depth dial. I have correctly set my resolution in the batch file. Thanks, guys.

It works by calculating the ratio of your screen's height and width. I THINK there was an issue when you weren't playing at your monitor's native resolution.

Hopefully you can search this thread and find your solution. :)

Bill

ferg
03-21-10, 04:50 AM
1440x900 is my monitor's native resolution. :cry:

Edit: I also tried 1024x768, and curiously it appears to be wrong by precisely the same amounts. It's as if the dial is not in the position expected. This made me curious, so I decided to compare screenshots of my TMO modded game with the standard game. It looks as though TMO raises the dials for some reason. That would explain this behaviour. Is this utility incompatible with TMO 1.9?

billko
03-21-10, 05:30 AM
1440x900 is my monitor's native resolution. :cry:

minsc is VERY helpful with supporting his application. i'm sure he can help you. :)

ferg
03-21-10, 05:56 AM
Problem solved. TMO does indeed transpose the dials. Using a screenshot from the stock game, I figured the TMO dial centres to be 35 pixels higher. By adjusting the values in dials.csv, I got it to work just fine. I think I'm going to enjoy sh4Speech very much once I work out all the TMO incompatibilities.

Thanks for your help Billko. :up:

billko
03-21-10, 07:30 AM
It's GREAT to see that you can finally enjoy his work. The first time I used it, it sent shivers down my spine watching the crew respond to my voice with their own voiced acknowledgments. :)

Have fun!

Bill

tomoose
03-21-10, 09:08 PM
Minsc_tdp;
I'd brought this up quite a few posts ago but have been away for awhile. Any updates to the issue where SH4 speech doesn't recognize aft tubes?

cheers,
tomoose

billko
03-21-10, 09:36 PM
Minsc_tdp;
I'd brought this up quite a few posts ago but have been away for awhile. Any updates to the issue where SH4 speech doesn't recognize aft tubes?

cheers,
tomoose

Hi, see post 349 and 350, this thread. I hope this helps! :)

Bill

ferg
03-22-10, 02:40 PM
There's a bug with the command "Damage Control Team". sh4Speech outputs the following:

"damage control team"

damage control team (572, BUTTON) voice command detected at +7.22 seconds
damage control team (voice_command.csv id = 572)
Parent detected
Adding 584 Move Mouse Away
Type is TAB, data is 384,819
Moving to bottom left (0, 900) to help load command bar)
384,819 are mouse coordinates for voice command damage control team from command_bar.csv or dials.csv
Mouse clicking at 384,819 for Sub Management (id=565)
Type is BUTTON, data is 336,871
336,871 are mouse coordinates for voice command damage control team from command_bar.csv or dials.csv
Mouse clicking at 336,871 for Damage Control Team (id=572)


...all of which looks fine, but it buries the pointer in the lower left at this point and fights any effort to move the pointer away from that corner. sh4Speech becomes totally unresponsive and, as a result of sh4Speech taking away the mouse pointer, SH4 becomes unplayable. I have to Alt-Tab and kill the sh4Speech process. This releases the mouse pointer and SH4 can be played normally.

Note that the text output is complete. This is all it outputs; I didn't cut anything off. You can see that it does not complete the procedure since it never outputs the familiar "Phrase processed. Listening..."

Compared to a similar command, "man the deck gun", it appears to me that the data is defined correctly. Here's the output for that command for comparison.

"man the deck gun"

Man the deck gun (538, BUTTON) voice command detected at +28.81 seconds
Man the deck gun (voice_command.csv id = 538)
Parent detected
Adding 584 Move Mouse Away
Type is TAB, data is 216,819
Moving to bottom left (0, 900) to help load command bar)
216,819 are mouse coordinates for voice command Man the deck gun from command_bar.csv or dials.csv
Mouse clicking at 216,819 for Deck Gun (id=536)
Type is BUTTON, data is 91,871
91,871 are mouse coordinates for voice command Man the deck gun from command_bar.csv or dials.csv
Mouse clicking at 91,871 for Man The Deck Gun (id=538)
Type is MOUSEMOVE, data is 928,582
928,582 are mouse coordinates for voice command Man the deck gun from command_bar.csv or dials.csv
Mouse clicking at 928,582 for Move Mouse Away (id=584)
Phrase processed. Listening...


Note that everything from "Type is MOUSEMOVE..." onwards is missing from the "damage control team" output.

ferg
03-22-10, 02:48 PM
This is a fairly minor bug, but it's irritating and should be fixed. When I give a speed command, it moves my mouse pointer. Since it uses a key command, it shouldn't touch the mouse at all. This is really problematic when I am using a view. For example, let's say I'm viewing a merchant through the scope and order "Ahead 1/3". My view jerks violently away from the target. There's no reason for this, is there? It's an awful work-around to have to release the view, give the throttle order, and then reacquire the view again.

Output is:


Ahead one third (20, KEY) voice command detected at +4.08 seconds
Ahead one third (voice_command.csv id = 20)
Adding 584 Move Mouse Away
Type is KEY, data is 1
1 is key sequence for voice command Ahead one third from key_commands.csv
1 is a single-key sequence
Pressing key 1 (virtual key code 0x31) from key_codes.csv
Running key() sequence for 1
Type is MOUSEMOVE, data is 928,582
928,582 are mouse coordinates for voice command Ahead one third from command_bar.csv or dials.csv
Mouse clicking at 928,582 for Move Mouse Away (id=584)
Phrase processed. Listening...


Note the "Type is MOUSEMOVE" block. This shouldn't happen.


-- Looks like I edited this in before Billko replied. Whoops! --
I think the problem is here in voice.pl:


if (

($TYPE{$original_id} =~ /BUTTON/i || $TYPE{$original_id} =~ /DIAL/i

|| ($original_id >= 19 && $original_id <= 28) # Telegraph reversion

) &&
$original_id != 580 && $original_id != 581 && $original_id != 582 && $original_id != 583) {
print "\t\tAdding 584 $NAME{584}\n";
push(@ids, 584); # Move Mouse Away
}


If the ID is between 19 and 28 inclusive, a mouse move is added. Because minsc kindly included the source, I think I can fix this for myself if I download the necessary compiler; but I think a fix to the official version would benefit all. It's also possible that I'm completely missing something. Maybe there's a reason for this mouse move? I can't imagine what it is.

I'd also make a suggestion from a software design point of view. If per-item mouse move functionality is desired, why not external it in the CSV? If I could just change a mouse move column from "true" to "false" in one of the files, that'd be a lot easier than learning perl and recompiling the script to modify the hardcoding. :DL

Once again, thank you, minsc, for this utility!

billko
03-22-10, 02:51 PM
This is a fairly minor bug, but it's irritating and should be fixed. When I give a speed command, it moves my mouse pointer. Since it uses a key command, it shouldn't touch the mouse at all. This is really problematic when I am using a view. For example, let's say I'm viewing a merchant through the scope and order "Ahead 1/3". My view jerks violently away from the target. There's no reason for this, is there? It's an awful work-around to have to release the view, give the throttle order, and then reacquire the view again.

Output is:


Ahead one third (20, KEY) voice command detected at +4.08 seconds
Ahead one third (voice_command.csv id = 20)
Adding 584 Move Mouse Away
Type is KEY, data is 1
1 is key sequence for voice command Ahead one third from key_commands.csv
1 is a single-key sequence
Pressing key 1 (virtual key code 0x31) from key_codes.csv
Running key() sequence for 1
Type is MOUSEMOVE, data is 928,582
928,582 are mouse coordinates for voice command Ahead one third from command_bar.csv or dials.csv
Mouse clicking at 928,582 for Move Mouse Away (id=584)
Phrase processed. Listening...
Note the "Type is MOUSEMOVE" block. This shouldn't happen.
There was a valid reason for this. It was discussed early in this topic, but I cannot, for the life of me, remember WHY it is that way...

Bill

billko
03-22-10, 02:57 PM
There's a bug with the command "Damage Control Team". sh4Speech outputs the following:

"damage control team"

damage control team (572, BUTTON) voice command detected at +7.22 seconds
damage control team (voice_command.csv id = 572)
Parent detected
Adding 584 Move Mouse Away
Type is TAB, data is 384,819
Moving to bottom left (0, 900) to help load command bar)
384,819 are mouse coordinates for voice command damage control team from command_bar.csv or dials.csv
Mouse clicking at 384,819 for Sub Management (id=565)
Type is BUTTON, data is 336,871
336,871 are mouse coordinates for voice command damage control team from command_bar.csv or dials.csv
Mouse clicking at 336,871 for Damage Control Team (id=572)
...all of which looks fine, but it buries the pointer in the lower left at this point and fights any effort to move the pointer away from that corner. sh4Speech becomes totally unresponsive and, as a result of sh4Speech taking away the mouse pointer, SH4 becomes unplayable. I have to Alt-Tab and kill the sh4Speech process. This releases the mouse pointer and SH4 can be played normally.

Note that the text output is complete. This is all it outputs; I didn't cut anything off. You can see that it does not complete the procedure since it never outputs the familiar "Phrase processed. Listening..."

Compared to a similar command, "man the deck gun", it appears to me that the data is defined correctly. Here's the output for that command for comparison.

"man the deck gun"

Man the deck gun (538, BUTTON) voice command detected at +28.81 seconds
Man the deck gun (voice_command.csv id = 538)
Parent detected
Adding 584 Move Mouse Away
Type is TAB, data is 216,819
Moving to bottom left (0, 900) to help load command bar)
216,819 are mouse coordinates for voice command Man the deck gun from command_bar.csv or dials.csv
Mouse clicking at 216,819 for Deck Gun (id=536)
Type is BUTTON, data is 91,871
91,871 are mouse coordinates for voice command Man the deck gun from command_bar.csv or dials.csv
Mouse clicking at 91,871 for Man The Deck Gun (id=538)
Type is MOUSEMOVE, data is 928,582
928,582 are mouse coordinates for voice command Man the deck gun from command_bar.csv or dials.csv
Mouse clicking at 928,582 for Move Mouse Away (id=584)
Phrase processed. Listening...
Note that everything from "Type is MOUSEMOVE..." onwards is missing from the "damage control team" output.
Sounds like it could be related to the special CSV files for your specific mod. Since SH4Speech hasn't been udated in a while, they may have become outdated. Try asking around to see if anyone has made some revised ones.

Bill

ferg
03-22-10, 03:04 PM
Sounds like it could be related to the special CSV files for your specific mod. Since SH4Speech hasn't been udated in a while, they may have become outdated. Try asking around to see if anyone has made some revised ones.

You're basically right, Billko. The problem does not affect "stock", but it does affect "trigger maru" (thus my own modified "trigger maru" also has the problem). However, I stand by my description of it as a bug since it occurs with an included data set. As far as I know, I haven't modified anything in the "trigger maru" set. I'm going to check that right now by snagging the file again and overwriting the "trigger maru" files to confirm it.

Edit: Confirmed. The problem exists in the provided "trigger maru" files. I'll see if I can figure it out. Thanks for the clue that it works with the stock data! With any luck I should be able to fix it.

Edit: Turns out the problem affects the script anytime the resolution is set to 1440x900...

billko
03-22-10, 03:13 PM
You're basically right, Billko. The problem does not affect "stock", but it does affect "trigger maru" (thus my own modified "trigger maru" also has the problem). However, I stand by my description of it as a bug since it occurs with an included data set. As far as I know, I haven't modified anything in the "trigger maru" set. I'm going to check that right now by snagging the file again and overwriting the "trigger maru" files to confirm it.

Edit: Confirmed. The problem exists in the provided "trigger maru" files. I'll see if I can figure it out. Thanks for the clue that it works with the stock data! With any luck I should be able to fix it.
Mucking around inside the changelog shows that the last version of TMO supported was 1.6. Also, the last version of SH4Speech seemed to have a different way of handling the TMO CSV files and warned of compatibility issues. (see first page, this topic)

Again, people here probably have updated CSV files that could save a lot of headache :)

I hope this helps. :)

Bill

ferg
03-22-10, 03:40 PM
Also, the last version of SH4Speech seemed to have a different way of handling the TMO CSV files and warned of compatibility issues. (see first page, this topic)

First page of this topic does not contain "TMO" or the phrase "trigger maru". I can't seem to find the reference. I'm not sure what you mean about a different way of handling the TMO CSV files.

There are slight differences between running sh4Speech in "stock" and "trigger maru" modes in the code, but nothing that looked like it would break anything. Looking at the source, I only noticed that torpedo tube handling is somehow different (probably to handle different tube cycling in TM). I've got tube cycling working well enough for me at this point, so that is not a concern.

Again, people here probably have updated CSV files that could save a lot of headache :)

Totally, but I'm not sure anyone has put up with the headache and done it. If they have, why is there nothing on minsc's download page or in this thread? A Google search for "sh4speech tmo 1.9" finds only my own post asking if anyone has done an update. I tried the more general "sh4speech tmo" too, but no dice. If I can get it working to my satisfaction, I'll happily make my updates available to others.

billko
03-22-10, 03:42 PM
First page of this topic does not contain "TMO" or the phrase "trigger maru". I can't seem to find the reference. I'm not sure what you mean about a different way of handling the TMO CSV files.

There are slight differences between running sh4Speech in "stock" and "trigger maru" modes in the code, but nothing that looked like it would break anything. Looking at the source, I only noticed that torpedo tube handling is somehow different (probably to handle different tube cycling in TM). I've got tube cycling working well enough for me at this point, so that is not a concern.



Totally, but I'm not sure anyone has put up with the headache and done it. If they have, why is there nothing on minsc's download page or in this thread? A Google search for "sh4speech tmo 1.9" finds only my own post asking if anyone has done an update. I tried the more general "sh4speech tmo" too, but no dice. If I can get it working to my satisfaction, I'll happily make my updates available to others.
Darn it. If I had that mod I would do the same.

Chromius
03-23-10, 01:41 AM
Has anyone got some modded files that work with RFB 2.0 (1680x1050) just trying to save myself time.

ferg
03-23-10, 01:42 AM
OK, well, this "damage control team" problem is a strange one. It turns out it has nothing to do with the CSV files. I thought the problem wasn't appearing in stock until I remembered that I had left the stock batch file at 1024x768. When I changed it to 1440x900, it evidenced the exact same behaviour. There is a bug in the script itself for that resolution.

I don't know Perl and I don't have a runtime installed on my computer, so it's a bit hard for me to debug. Nevertheless, I have a powerful suspicion that the script is going awry in the MouseMoveAbsPix subroutine. It enters an until() loop on line 811, and I think the condition never evaluates true.

But why it's happening, why I've only seen it triggered with this one command, I have no idea. It's possible that it occurs with other commands as well. I probably haven't used every single command defined. Another command with the same co-ordinates ("Aim For Weapons", ID=543) works fine.

billko
03-23-10, 01:52 AM
OK, well, this "damage control team" problem is a strange one. It turns out it has nothing to do with the CSV files. I thought the problem wasn't appearing in stock until I remembered that I had left the stock batch file at 1024x768. When I changed it to 1440x900, it evidenced the exact same behaviour. There is a bug in the script itself for that resolution.

I don't know Perl and I don't have a runtime installed on my computer, so it's a bit hard for me to debug. Nevertheless, I have a powerful suspicion that the script is going awry in the MouseMoveAbsPix subroutine. It enters an until() loop on line 811, and I think the condition never evaluates true.

But why it's happening, why I've only seen it triggered with this one command, I have no idea. It's possible that it occurs with other commands as well. I probably haven't used every single command defined. Another command with the same co-ordinates ("Aim For Weapons", ID=543) works fine.
wow, i'm not sure why it would be resolution-related because it's all just calculating ratios for mouse movement, but there's no denying there's something amiss! i'll have to think about that one. hopefully minsc will be by soon to bring to light the solution :)

minsc_tdp
03-29-10, 02:57 AM
Ok guys this seemed like the best place to post this.

If anyone is having trouble with the new voice command system for SH5, and used my shSpeech, and you want to try it with SH5, check out this webpage as it has updated files for SH5.

http://knepfler.com/shSpeech (http://knepfler.com/shSpeech)

These were created by 7Infanterie19 not me, so please no emails! Unfortunately I have no time to support this or do really anything further on it, but 2.54 is quite stable. I haven't tested these new CSVs, so, good luck everyone!

Now, what's all this about damage control... I promise to try to look when I get a chance!

minsc_tdp
03-29-10, 03:00 AM
Problem solved. TMO does indeed transpose the dials. Using a screenshot from the stock game, I figured the TMO dial centres to be 35 pixels higher. By adjusting the values in dials.csv, I got it to work just fine. I think I'm going to enjoy sh4Speech very much once I work out all the TMO incompatibilities.

Thanks for your help Billko. :up:

If anyone is so inclined as to organize changes like this into a package, and call it something like MODIFIED CSVS FOR RFB 2.0.ZIP and PM me, I'll send you my email address and distribute them on the main page for all. I'm sorry I haven't been able to keep up but glad you guys are managing to make it work by reading the docs and digging into the CSVs. I did my best to make it community-sustainable.

minsc_tdp
03-29-10, 03:07 AM
If the ID is between 19 and 28 inclusive, a mouse move is added. Because minsc kindly included the source, I think I can fix this for myself if I download the necessary compiler; but I think a fix to the official version would benefit all. It's also possible that I'm completely missing something. Maybe there's a reason for this mouse move? I can't imagine what it is.

This is definitely a major regret of mine. It saddens me to think I have code that actually looks at specific IDs. I think according to the comment above:

# Move to center area to prevent obscuring the screen for certain commands

The idea was to move the mouse cursor to the center as leaving it at the bottom caused a tooltip or something which would then obscure part of the screen.

This may be solvable in general in the CSV. If you see ANY reference to a specific ID number in the voice.pl script, where it looks like it's handling it special and it's screwing things up, the solution may be simple: change the ID to something else in the CSV. Most of the ID numbers are arbitrary and ignored by the code, or used only for linking commands and stuff like that. Try a really crazy ID number like 94293.

Yes you could download the compiler (all you'd need is ActiveState Perl and perl2exe.exe) and tweak the Perl if you like but finding a solution in the CSVs is always preferred since everyone else can implement them more easily I would think.

minsc_tdp
03-29-10, 03:10 AM
Totally, but I'm not sure anyone has put up with the headache and done it. If they have, why is there nothing on minsc's download page or in this thread? A Google search for "sh4speech tmo 1.9" finds only my own post asking if anyone has done an update. I tried the more general "sh4speech tmo" too, but no dice. If I can get it working to my satisfaction, I'll happily make my updates available to others.

Nobody has ever bundled up an updated set of CSVs for versions of Trigger Maru past 1.6, hence there's nothing on the webpage about it. You might be the first to have bothered. PM me if you manage to get it working and have all your CSVs organized into a zip and I'm happy to post to the site.

That damage control bug is really scary. Seems like it is locking up - I'd bet voice.exe is running 100% CPU when this happens. Very ugly.

minsc_tdp
03-29-10, 03:17 AM
OK, well, this "damage control team" problem is a strange one. It turns out it has nothing to do with the CSV files. I thought the problem wasn't appearing in stock until I remembered that I had left the stock batch file at 1024x768. When I changed it to 1440x900, it evidenced the exact same behaviour. There is a bug in the script itself for that resolution.

I don't know Perl and I don't have a runtime installed on my computer, so it's a bit hard for me to debug. Nevertheless, I have a powerful suspicion that the script is going awry in the MouseMoveAbsPix subroutine. It enters an until() loop on line 811, and I think the condition never evaluates true.

But why it's happening, why I've only seen it triggered with this one command, I have no idea. It's possible that it occurs with other commands as well. I probably haven't used every single command defined. Another command with the same co-ordinates ("Aim For Weapons", ID=543) works fine.

It's very strange that it happens only for that one command. I don't recall there being anything special about damage control.

Taking a quick look, I see it has an ID of 55 in the Stock CSV set. I also see some trigger maru specific code that does a general text inspection at the CSV set name to determine if it has "trigger maru" in it, and if it does, it treats 55 special during the tube specific code, which is weird because in my set, trigger maru damage management is still 55, in other words, 55 wasn't repurposed to tubes or anything in tm. So there could be a problem there.

One fix might be to make sure your CSV set name as referenced in the launch bat file doesn't say "trigger maru" which would cause it to be treated as stock (of course if you're used to running in TM mode, that might cause a bit of a shock.) Another option might be to change all instances of ID 55 to some other obscure number as mentioned above. Whenever you suspect something weird about the ID, change it, and be sure to change it in every CSV it might be referenced in, in both the ID column and the PARENT column.

Generally speaking most testing was done in stock, and TM was kind of tacked on and was never really fully vetted as well as it could have been.

Hope that's clear enough and leads you to a solution... sorry I can't even test this as I don't have a working microphone at the moment. I do on my laptop, if I have time I will try tomorrow!

ferg
03-31-10, 02:37 AM
Sorry, I am just logging off and heading to bed or I'd write a proper reply, Erik. I'll get to that tomorrow or Thursday depending. Thanks for taking the time to post.

I just wanted to share that I installed ActivePerl and enabled the debug output you had in that until loop. This is what I found interesting:


Mouse clicking at 336,871 for Damage Control Team (id=572)
17476==15292&&59637==63423
17039==15292&&60394==63423
16602==15292&&61151==63423
16165==15292&&61909==63423
15728==15292&&62666==63423
15291==15292&&63423==63423
14855==15292&&64181==63423
...and off it goes into an endless loop...


The second to last line is where the until loop is intended to exit, but of course it doesn't because 15291 is not 15292. I only looked at it for a minute or so, but off the cuff it looks like a rounding error to me.

billko
03-31-10, 02:41 AM
Sorry, I am just logging off and heading to bed or I'd write a proper reply, Erik. I'll get to that tomorrow or Thursday depending. Thanks for taking the time to post.

I just wanted to share that I installed ActivePerl and enabled the debug output you had in that until loop. This is what I found interesting:


Mouse clicking at 336,871 for Damage Control Team (id=572)
17476==15292&&59637==63423
17039==15292&&60394==63423
16602==15292&&61151==63423
16165==15292&&61909==63423
15728==15292&&62666==63423
15291==15292&&63423==63423
14855==15292&&64181==63423
...and off it goes into an endless loop...
The second to last line is where the until loop is intended to exit, but of course it doesn't because 15291 is not 15292. I only looked at it for a minute or so, but off the cuff it looks like a rounding error to me.
hey nice catch!

kraszus
04-14-10, 12:07 PM
Hi. First, thanks for a great mod :)

I play Trigger Maru variant using 1680x1050 resolution. I have edited the main.cfg and the shspeech.bat accordongly:-


@cd dist
voice 1680x1050 "trigger maru" 1 right sh4
Everything works great except Heading Change requests and Depth Change requests. Eg. If I say 'heading left 10 degrees' it sets a heading about 60 degrees left instead of 10 degrees. Similarly with depth if asked to set a depth to 40meteres, it sets a depth to 80 or 90 metres.

I can see the mouse click on the dial and it is clicking in the wrong place.

Have I edited the files correctly?

PS. I should probably mention that I have also downloaded the SH3 variant and it works fine with the dials.

tomoose
04-16-10, 09:40 AM
OK, LOL, I'm still plugging away at this.

BACKGROUND: When using SHIV Speech no matter which sub, the forward tubes react to voice commands but not the aft tubes.

STATUS AT THE MOMENT:
I added a line in the tubes.csv file which was basically a duplicate of the 'W' key line which cycles the forward tubes except I changed the 'W' to 'Y' and the key number was IIRC 55 whereas the 'W' line had key 15. I'm going on memory here as I'm not in front of my PC.

Now none of the tubes react to voice, LOL. No biggie I guess as I can just remove the line I added. I obviously don't understand the linkage between all the .csv files so I there's obviously more to do than simply add the line into the tubes.csv but I'm not sure what.

Can someone assist please?
thanks,
:salute:

billko
04-16-10, 11:31 AM
OK, LOL, I'm still plugging away at this.

BACKGROUND: When using SHIV Speech no matter which sub, the forward tubes react to voice commands but not the aft tubes.

STATUS AT THE MOMENT:
I added a line in the tubes.csv file which was basically a duplicate of the 'W' key line which cycles the forward tubes except I changed the 'W' to 'Y' and the key number was IIRC 55 whereas the 'W' line had key 15. I'm going on memory here as I'm not in front of my PC.

Now none of the tubes react to voice, LOL. No biggie I guess as I can just remove the line I added. I obviously don't understand the linkage between all the .csv files so I there's obviously more to do than simply add the line into the tubes.csv but I'm not sure what.

Can someone assist please?
thanks,
:salute:
I am not familiar with TMO. Is the <y> key the one that cycles the aft tubes?

Also, you *did* remember to give the aft tube cycling a different command? :D (Like: "Next aft tube.")

Bill

tomoose
04-16-10, 12:09 PM
I basically duplicated the forward tubes cycling 'W' key commands/scripts etc but adjusted things accordingly for the 'Y' key which is the accepted aft tubes cycling key and is indicated as such in the commands.csv.
I've obviously missed something as I mentioned and need to look more closely at the various commands/scripts in the respective .csv files. Perhaps you're right and I missed changing something else for the 'Y' key although I'm fairly sure it was good to go.

SH4 fan
05-13-10, 02:30 PM
I think one major issue with screen sizes is the accuracy of the dials and potential changes that occured in later versions of tmo. for instance speech thinks the depth dial is at 1569x955 at 1680x1050 when it is really at 1569x920 with a radius of 72 not 60. I tried changing the values without success.

Edit: Without accurate position data some of the functions will not work or will work incorrectly.

Mescator
08-24-10, 10:59 AM
Forgive the Necro, just resurrecting this to throw out a query. Does anyone have a CSV for TMO with updated coords? If not I'll just update the CSV myself but i figure i should ask before i begin fiddling with it.

g_g_h
11-21-10, 06:54 AM
Hi guys,
I know that some of you succeeded to run it with Vista.

I read the readme but it is not so clear. It tells me to instal MS SDK - which is not requred with Vista. So I just downloaded sh4speech v. 2.54. I unpacked it in c:\shspeech folder. I ran Vista speech recogn. tool, then I ran sh4speech stock. bat as I got one. I see in the cmd window that my commands are recognized but they are not done in the game.
In some threads I'v seen some info about the perl and phyton. Do i need to install is as well? readme do not mention it.

Yamato_NF
01-22-11, 10:04 PM
hi, ive recently downloaded this awsome program for SH4.
im running vista, SH4 V1.5 and an enviornment mod,
i cant get it to work properly
P.S. i have downloaded the MS Speech SDK 5.1 and installed, still not working.. :down:

any help would be appreciated.
Yamato_NF:salute:

tomoose
01-26-11, 08:33 AM
First the good news; SH4 Speech shouldn't affect any mods you have so don't worry about that for now. Print out the list of commands sheet which comes with SH4 Speech and use those before trying to create your own.

Second, not so good news: If you look in the readme it mentions using the Windows to let it familiarize itself with your voice. I believe that's the SDK part (not sure, it's been a while and my new system doesn't have SH4 Speech yet) but essentially you read a bunch of paragraphs that Windows shows you and it highlights what you are reading to indicate that it is understanding your speech. This is a key step prior to actually using SH4 Speech.

Third: forgive me stating the obvious but you have to start SH4 speech prior to starting up SH4 itself. You'll know if SH4 Speech is working because a DOS-type box shows up and the last line in that should be "listening".

If you are not getting the DOS box at all then you have a problem not related to the game but the installation of SH4 Speech itself. Make sure SH4 Speech is installed in the appropriate folder (I can't remember offhand if it needs to be in the SH4 main folder or not).

Hope this helps.

Strawberry
04-28-11, 07:37 PM
Hello, first of all I want to say this program is truly awesome :rock:

I am translating the voice commands to Spanish, and I have almost finished, but I have a problem.

I am translating the TMO version, everithings works OK except the TMO & Stock different commands.

When I say a command which is different in TMO and Stock, like "Battle Stations" ("Estaciones de Combate" in Spanish) I get this:

http://img31.imageshack.us/img31/1317/sinttulopl.png

But in the english version works OK :06:

Someone can help me please?

Weird fact: If I translate that sentence in the english original file, It doesn't work, and if then I write the original word again, leaving the original file as it was, then... it doesn't work :o

Thank you in advance and sorry for my english.

EDIT:

After some tests, I've noticed that the bug appears even in the original english file if I only open it and save without make any changes at all.

EDIT 2:

Solved, it was a corruption made by Open Office Calc, using Microsoft Office Excel it works like it should.

Strawberry
04-30-11, 04:50 PM
Hello again :)

I've finally translated the "voice_commands.csv" for TriggerMaru Overhauled to Spanish so I can speak to my crewmen in my mother language and I whish to share it here for others who may be interested.

The file: http://www.megaupload.com/?d=RYSC9LCH

It is not fully tested yet (too many lines) but I will update it if I find any bugs.

Thank you again minsc_tcp for this fantastice software :salute:

minsc_tdp
06-16-11, 12:01 AM
You're welcome Strawberry.

Feels good to have created something lasting that people enjoy.

I hope you have all managed to fare well in my absence and I sincerely appreciate those who have stepped up to troubleshoot, improve, and tweak and help other in the community.

One day I'd like to review the thread and collect all of the improvements and fixes players have posted and release an update that works, is TMO friendly, does spanish, and fixes the various bugs.

I sometimes wonder about parts of the code that weren't done very well, especially the tube handling, and hope that people have figured out that they can edit the Perl script and recompile it with perl2exe so that the community can fully get control of this beast and wrangle it to do what they need.

SaffaSkipper
07-06-11, 09:05 AM
Ok so I'm not brilliant with coding etc, and I downloaded this today, its been a few years since I've touched Delphi.
Overall it's amazing, but the torpedo commands won't work and some silly commands do the wrong thing, eg. Saying "depth under keel" causes a dive to periscope depth?

Is it perhaps coz I'm running TMO?

denny927
01-15-12, 09:01 PM
very funny, im very looking for this after watching a lets play sh3 in youtube made by frontier359, in fact this guy used a speech command, and is very cool.

this program work with tmo2.2 too?
a step by step install instruction?
with windows7 64 no problem?

thanks:D

tomoose
01-20-12, 03:56 PM
....it's either that the software is misinterpreting your command (because it hears one sound clearer than the rest) in which case I'd suggest re-running the Windows voice-recognition tester again.

OR (more likely)

it may be the coordinates for that piece of equipment are off.
For example: Your "dive" button is at coordinate X, Y (where the virtual mouse cursor will go to activate that function) but your screen resolution is different than what is in the original SHIV Speech so your "dive" button is actually at coordinate A, B. If A, B is the coordinate for another command then it will activate instead of the "dive" command. You'll notice the mouse cursor moves when you give certain commands. Your voice command is essentially telling the mouse cursor where to go. The cursor goes to those coordinates. I hope I explained that correctly, someone more experienced can correct me where I went wrong.

jimbob126
01-20-12, 04:37 PM
hey great mod i just wanted to know how do i stop speech rocnition from opening stuff i:e i was playig sh4 and it tryed to open aoe3 tks

tomoose
01-24-12, 01:35 PM
jimbob;
SHIV Speech should NOT be activating anything other than in the game.
Are you activating speech recognition and then starting SHIV Speech?
If so, you don't have to, just start SHIV Speech and then start the game.

bbrus
01-27-12, 10:52 AM
Hello everyone,

Do you know if SH4 Speech can be used in German, or if there's any voice recognition mod to use with Operation Monsun? I've been searching for a while but I can only find voice mods in german for SH3 and SH5.

Herr Trigger
01-31-12, 04:29 PM
Hi, has anyone been able to run sh4speech under Win7 ? I'm having a great deal of grief with this, mic and everthing else works, all I get is the DOS box with the set resolution etc and 'Listening', at any verbal command - nothing.
Yes, I'm starting sh4speech first, then SH4, " I have 10 tubes", "reset tubes", "reset dials",blah blah, give command "Bridge" and nothing.
Any ideas?
Many Thanks,
H.T.

p.s.

I,ve read through this thread over and over and tried every conceivable suggestion but no one has mentioned Win7

Stargazer
04-10-12, 05:42 AM
I discovered this purely by accident yesterday and I wish I has found it earlier. This is an amazing piece of work.

I noticed the chap above me asking about Win7. Mr Trigger, run your Win7 Speech Recognition program, this may be a bit quirky but you can train it to be less useless.

Once that program is running, then launch the shSpeech batch file and you're good to go. but Windows has to be listening first otherwise the batch file has no way to interface with you.

Now, I have a question also: I have adjusted the batch file to shoe resolution 1920x1080. Things - for the most part - are working well, but there appears to be a bit of misclicking on the three dials for Speed, Heading/Rudder and Course.

Is this a side effect of using a 16x9 display rather than the more-PC-friendly 16x10? Has anyone got a TMO batch file with slightly adjusted mouse co-ordinates that makes a 1920x1080 voice commanding more accurate?

T'is also something of a Godsend, being able to bark orders inthis manner because I only installed TMO last night and all the buttons are different so instead of keybaord mashing, I can just ask for stuff and it magically appears.

Though I did burp rather audibly last night and subsequently exclaimed "Ooh, excuse me!" to which my Ex-O said, "Yes Sir, New Course: Two-Three"... that made me chuckle.

Beardmoresam
06-28-12, 04:51 AM
Hi, I really like the look of your work, however I'm having some small trouble with it.

It understands what I say perfectly as in the cmd window, the correct commands are being executed (when I check them after) but unfortunately, it is having absolutely no effect in game. Running full screen, 1366x768 on windows 7, made sure my anti-virus isn't sandboxing the program. Can't run it as administrator though as it just closes as soon as it opens. Wondering if perhaps that's the issue?

Any help is appreciated, thanks.

abel5405
06-28-12, 12:02 PM
Old play returning here, I have been play with the speach mod all morning but the Command Bar and dial locations seem to be off. The best example I have is wheen I order "Depth Under Keel" the mouse clicks on the "Pariscope Depth" button.

I have followed all the instructions for startup but still have the same problem. Is there a fix chance? Many thanks in advance for your time and help.

minsc_tdp
10-21-12, 09:31 PM
Old play returning here, I have been play with the speach mod all morning but the Command Bar and dial locations seem to be off. The best example I have is wheen I order "Depth Under Keel" the mouse clicks on the "Pariscope Depth" button.

I have followed all the instructions for startup but still have the same problem. Is there a fix chance? Many thanks in advance for your time and help.

This is most likely due to your resolution being out of match with what is set in the configuration file. I can't give specifics as I've forgotten too much, but I'm sure if you dig in you'll see what I mean.

minsc_tdp
10-21-12, 09:36 PM
I discovered this purely by accident yesterday and I wish I has found it earlier. This is an amazing piece of work.

I noticed the chap above me asking about Win7. Mr Trigger, run your Win7 Speech Recognition program, this may be a bit quirky but you can train it to be less useless.

Once that program is running, then launch the shSpeech batch file and you're good to go. but Windows has to be listening first otherwise the batch file has no way to interface with you.

Now, I have a question also: I have adjusted the batch file to shoe resolution 1920x1080. Things - for the most part - are working well, but there appears to be a bit of misclicking on the three dials for Speed, Heading/Rudder and Course.

Is this a side effect of using a 16x9 display rather than the more-PC-friendly 16x10? Has anyone got a TMO batch file with slightly adjusted mouse co-ordinates that makes a 1920x1080 voice commanding more accurate?

T'is also something of a Godsend, being able to bark orders inthis manner because I only installed TMO last night and all the buttons are different so instead of keybaord mashing, I can just ask for stuff and it magically appears.

Though I did burp rather audibly last night and subsequently exclaimed "Ooh, excuse me!" to which my Ex-O said, "Yes Sir, New Course: Two-Three"... that made me chuckle.

1920x1080 is a 16:9 aspect ratio, so the ideal screen is in fact a 16:9 display. If you had a 16:10 display and were running 1920x1080 some of the pixels would be stretched and the clicks could be off where they should be. But this could still be related somehow.

My suggestion is to launch your game and take a screenshot, then put that screenshot into a graphic editing program to determine the actual dimensions of the screen, then set your batch file to that.

What is possibly happening is you have an overscan/underscan setting on your display which is causing 1920x1080 to actualy be something like 1908x1010 or something equally weird. When this is in effect, it "lies" to the game and says it's 1920x1080, but then it alters it on the video card after the fact and that would break the locations of things making shSpeech misclick.

Summary: Don't trust your video card resolution or what the game says. Take a screenshot and measure it to determine your actual resolution and put that in the batch file.

Hope that helps.

BigWalleye
10-22-12, 07:12 AM
minsc, I found your excellent piece of work a couple of months ago. (It's really an add-on rather than a mod.) I have been using it ever since. The ability to give orders to your crew and have them execute completely changes the experience of the simulation. Nothing will make me feel that I am in a wartime environment while sitting in front of my computer, but the sense of being in a true simulation is enhanced. I would recommend that anyone who has a computer capable of speech recognition download this package, go out and buy a cheap headset (that's all you need) and try it. It's lightyears away from clicking buttons or tapping on a keyboard.

I did notice immediately that all the mouse-click commands were off. The dial-setting commands were initally unusable and the buttonbar commands work in the stock game, but not well in TMO and not at all in RFB. I have used two different monitors with two different resolutions. (1336x768 and 1920x1080). The stock settings would not work in either case. It is not just an overscan issue. I found it was necessary to adjust the mapping files, command_bar.csv and dials.csv, line by line in order to get the package to work properly. I'm sure there is a analytical way to determine the correct adjustments, but I used brute force - change a parameter, then go to SH4 and see if it worked. I eventually developed a strategy for doing this more rationally and precisely, but some of my earliest adjustments are a little rough and I never went back and refined them. (By then, all I wanted to do was play the game!)

If you are interested, I would be happy to send you my final operating files. You might be able to understand why the rework was necessary. If it's OK with you, I would also certainly be willing to make my tweaked version of your work available to anyone who wants to use it. It might save you/them a lot of twiddling. Just one caution: the key_commands.csv file is tweaked to my own custom keyboard mapping. You'll have to drop in the stock key_command.csv to use it.

BTW, I have versions which are compatible with RFB, TMO, and OM. The OM version accepts standard American English. Although my crew responds in Deutch, I'm not sufficiently fluent to give orders in a time-critical situation.

Abraxus
11-09-12, 03:07 AM
Hi everyone :)

I just try the sh4speech 2.38 to use with SH4 1.4 but it doesnt work !

When i launch sh4speech - stoch.bat , and when i'm speaking , the command is well recognized. So i launch the game and nothing happens ! Even the "surface command"' which is just a key typing !

I try with VACbuilder but it's the same. To give you an exemple, i launch the notepad and try the command "Surface" and notepad shows me "S". So i think the vocal recognition works. But when i launch the game ..nothing.

And i'm on win7 :(

Anyone have an idea ?

Thx :)

BigWalleye
11-09-12, 08:04 AM
When you launch the game with sh4speech running, does the game respond to normal key commands?

Abraxus
11-10-12, 04:22 AM
What do you mean about "normal key command"? If you're talking about the "load six tube/reset tubes/reset dials" no, it doesn't work. But even a simple "surface" command (which is the key S" doesnt work.

But eyh ! hot news : it seems that sh4speech is working when i'm in windowed mod. I think speechSDK doesn"t recognize the active window when SH4 is in fullscreen mode. no ?

[sorry for my bad english :( ]

BigWalleye
11-10-12, 08:04 AM
What do you mean about "normal key command"? If you're talking about the "load six tube/reset tubes/reset dials" no, it doesn't work. But even a simple "surface" command (which is the key S" doesnt work.

Sorry, what I meant was this: If you have SH4 running with sh4speech and physically press the "S" key, does that work normally? I was trying to determine if something was amiss with the keyboard handler.

But eyh ! hot news : it seems that sh4speech is working when i'm in windowed mod. I think speechSDK doesn"t recognize the active window when SH4 is in fullscreen mode. no ?

I have never run the game in windowed mode, only full-screen. I am running Windows 7 Home Premium SP1 and haven't seen this problem. In any case, if you are OK with running SH4 in windowed mode, then you have a work-around. I hope you enjoy playing SH4 with sh4speech. I think it adds a lot to the game.

Abraxus
11-10-12, 12:00 PM
Aaaah ok. Yes the normal key command is working ! And that's why i use it for my tests.

But i think it came from the configuration of my computer. I try with Voice Activated Command, Game Commander 2 and it's the same : voice control is recognized in windowed mode and not full screen.

So i will try to adjust the windowed mode to take the entire screen and see if it's work. It will seem like full screen huhu .

And yes, i will continue to use sh4speech :rock: . Thx you for ur help :)

minsc_tdp
01-03-13, 08:31 PM
Abraxus - the fact that it works in notepad or windowed demonstrates how it works - it issues keystroke and mouse commands to the general OS. If a window is focused or fullscreen, it gets the command. This could be an unusual keyboard driver, but that's very unlikely to affect the mouse-based command unless they're some kind of combo unit or made by the same manufacturer. You might try uninstalling your existing keyboard and mouse drivers and any software associated with them, let Windows install the normal HID drivers, and try again. The drivers might be detecting fullscreen mode and doing some tricks to disable certain keys from the OS (such as the windows key) and in so doing, interfering with shSpeech.

minsc_tdp
01-03-13, 09:29 PM
BigWalleye, send me your files and I will post them. PM me.

I took a quick look at the source code - which I haven't looked at in years btw.

How the whole thing works is as follows:

* The coordinates in the Excel are based on a 1024x768 screen 4:3 aspect, but the aspect shouldn't come into things anywhere, it's certainly not coded to change anything depending on aspect, only resolution.
* sh4, when resolutions change, simply moves, but does not stretch, the image, based on quardrants. The right quadrants move further right, the left ones move further left.
* shSpeech checks the quadrant defined in the CSV,
* And if it is lower or upper right, such as the Oxygen at 590 x 729...
* it adds your resolution to the X and then subtracts 1024, resulting in 902 for a 1336x768 scenario.
* it adds your resolution to the Y, then subtracts 768, resulting in 729 for a 1336x768 scenario (no change).
* If the quadrant is any of the left side quadrants - there is no change. Note that all but 5 of the quadrants are lowerleft (even if the object is further right, SH4 treats it as if it were lower left).

What I would suggest is taking a screenshot at 1024x768 and take another at 1336x768.

Then confirm the oxygen click point is indeed at 590 x 729 for the 1024x768 scenario.
If so, check the 1336x768 screenshot. Figure out how far off it is, then PM me with the screenshots and how far off it is, and any theories as to why.

If for any reason some stretching is occurring, that would definitely be it.

Essentially the cause must be, simply put, that increasing your resolution beyond 1024x768 does not merely "move" the entities by a relative amount, but something else is happening. I'd imagine that when you modified all of the X/Y values, you modified them all by the same amount based on each quadrant.

If you're feeling adventurous, feel free to modify voice.pl with a text editor and then compile it with perl2exe.

If you have any mods installed that, say, add a new button to the command bar, that would account for why you had to modify every single X value.

BigWalleye
01-04-13, 03:07 PM
Thanks for the explanation, minsc. I was never able to reverse-engineer the algorothm to make corrections analytically.

The Compressed Air button stays at 590 x 729 regardless of screen resolution. I have never had to change the position of any of the four consumables buttons. They all work correctly from your "stock" command_bar.csv parameters. So your coded correction for screen resolution is working. The left-side command bar button X- and Y-parameters, on the other hand, do have to be adjusted, because RFB, TMO, and OM all apparently change both the height and the width of the buttons, in addition to changing the number of buttons. The position of the button bar itself remains the same in each case. The dials and buttons for setting the torpedo parameters (upper left group) also remain correct with no changes. The TDC input dials (upper right group) and HUD dials (lower right) all require adjustment. Interesting that the consumables buttons, which are part of the lower right group, are OK, but the HUD dials in the same group are not.

I will PM you so I can send you my files. Perhaps they will give you a better idea of what is changing.

I just want to say once again how much your package adds to the SH4 game. Thanks for all the work you have put into it.

-Wayne

-Real sub skippers give orders. They don't push buttons.-

messageboy101
03-11-13, 09:49 AM
How to install this

BigWalleye
03-11-13, 01:18 PM
How to install this

Remember that shSpeech is not a mod. It's a stand-alone program that runs in the background while SH4 is running foreground. You install it by itself (nothing to do with JSGME) and start it first, then start SH4.

First, go to Start/Control Panel on your windows (I hope!) computer. Click on Speech Recognition and spend a few minutes or so training it to recognize your voice.

Then go here http://knepfler.com/shSpeech/ and download shSpeech. Unzip it into its own folder. RTFreadme and print out the reference card, so you can refer to the voice commands that come stock with the program. Select the appropriate sh4speech .bat file, click on it, and wait while it launches Speech Recognition. Turn Speech Recognition ON (By now, you should know what I am talking about. If you don't, go back to the first step, rinse, and repeat until you do.) When you can see that Speech Recognition is responding to your spoken words, launch SH4. DO go through the shSpeech setup: "I have N tubes." "Reset all tubes." Reset all dials." while the game is loading. Then start playing and watch the sub follow your orders. That's it.

in_vino_vomitus
05-16-13, 06:46 AM
First of all thanks to minsc' for the effort he's put into this. The problem I'm having is that shspeech is recognising my commands, but they're not getting through to the submarine. I'm using windows 8 on a laptop. the voice-recognition seems to be part of the operating system. I've set it up, using the built in mic, and it works fine. I did try to download speechsdk, but I suspect the file was corrupt - when I try to run it I just get an error message that says it's not a win32 application - is it essential, given that voice recognition works without it?

I have no idea if this is as good an addition as everyone says it is, but now I've read people praising it to the skies I want it!!!