SUBSIM Radio Room Forums



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

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

Reply
 
Thread Tools Display Modes
Old 09-15-07, 09:57 AM   #226
Digital_Trucker
Silent Hunter
 
Join Date: Jul 2007
Location: The Peach State
Posts: 4,171
Downloads: 141
Uploads: 10
Default All is well that ends well

@ billko As minsc says in the above post, it actually put quotes around all text, not just the negative sign. However, nothing would surprise me when it comes to software differences. Standardization seems to be a bad thing because it implies a monoploy of sorts.

@NefariousKoel :rotfl: Yes, how dare they?

@minsc Yep, it was my bad all around. Not looking at the original file, not noticing the lack of negativity in the debug output and not noticing that there is a choice in OpenOfficeCalc for the text delimiter (either single or double quotes, not that it would have made any difference). I'm usually pretty good at troubleshooting, but what threw me off was that everything else worked fine so I wasn't even thinking file discrepancies. Lesson learned, from now on I'll remember to strip the quotes out after I use Calc on it (better yet, just don't use Calc on it).

I think the idea of reducing the debug output in the command window and creating a log file is a good one. Much easier to deal with questions and troubleshooting that way, I think.
__________________

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

Digital_Trucker is offline   Reply With Quote
Old 09-17-07, 08:39 PM   #227
minsc_tdp
XO
 
Join Date: Mar 2007
Posts: 411
Downloads: 1
Uploads: 0
Default

Howdy all, I just got back from my camping/hiking trip to Mt. Whitney. Unlike the 13 other fools that did the 18 hour death march 22 miles, I did a liesurely 8 mile hike to the lake where I relaxed reading a book. I actually bought the Dangerous Waters manual hoping to dig into that, but didn't have time to even crack it.

I'm glad to come back to see no major problems developing. I didn't put much thought into sh4speech while I was gone, so no Revelations From The Mountain so to speak. I think the only immediate goals I have are to clean up the debug output, and do some general cleanup that would enable better support of SH3. But I have no idea how interested those players might be as I've posted nothing about this in the SH3 forums.
__________________
June 29 2016 - shSpeech v2.55 - Voice Command for Silent Hunter 4! View Thread
minsc_tdp is offline   Reply With Quote
Old 09-18-07, 12:02 AM   #228
panthercules
The Old Man
 
Join Date: Apr 2005
Posts: 1,336
Downloads: 6
Uploads: 0
Default

Quote:
Originally Posted by minsc_tdp
... and do some general cleanup that would enable better support of SH3. But I have no idea how interested those players might be as I've posted nothing about this in the SH3 forums.
Welcome back - sounds like you had a good trip - I'm sure it was nice to get away from all this for a while.

Been gone a few days myself, but was thinking about going back to SH3 for a bit (while waiting for Leo et al. to wrap up and release all the new graphics mods) and thinking about whether it would be worth trying to adapt SH4Speech to use it for that. I'd love to have the depth and course/mouse capability, but the problem I was getting stuck on was the language thing - with Shoot (what I've been using for SH3 voice command) it was really easy to add my German commands into the custom dictionary function, because that program doesn't seem to care or rely on any sort of English language recognition. Since SH4Speech relies on the Microsoft speech engine thingy, is it going to be able to recognize the German commands, or will you have to switch to a German version of the Microsoft speech engine or something? How hard do you think it would be to issue commands in German and have them work with SH4Speech?
__________________
panthercules is offline   Reply With Quote
Old 09-18-07, 02:10 AM   #229
mountainmanUK
Sparky
 
Join Date: Jun 2006
Location: Blackburn, Lancashire, ENGLAND
Posts: 154
Downloads: 23
Uploads: 0
Default

Quote:
I think the only immediate goals I have are to clean up the debug output, and do some general cleanup that would enable better support of SH3. But I have no idea how interested those players might be as I've posted nothing about this in the SH3 forums
Welcome back......and glad to hear you had a good time in the mountains!

So far as support for SH3 is concerned, I am 100% SURE that there are a heck of a lot of people that would really appreciate it, if you could come up with a couple of "basic" SH3Speech configurations......say, one for standard SH3 1.4b (patched Vanilla), and also a GWX v1.03 version.

As a dedicated SH3 user, and active in the Wolves at War Campaign, to be able to do almost everything in SH3 by voice alone would really make for possibly THE greatest aid to realism possible!!

I appreciate that all this takes time, and I'm pretty sure that you, like the rest of us, has a real life outside of SubSimming.....so it would be OK whenever you want to get into it!!!

When I do play SHIV these days (a lot less nowadays, since Wolves at War 3 started), I always use your SH4Speech setup. It is something that I really miss now, when I fire up my SH3!

cheers,

Dave
mountainmanUK is offline   Reply With Quote
Old 09-18-07, 08:10 AM   #230
Digital_Trucker
Silent Hunter
 
Join Date: Jul 2007
Location: The Peach State
Posts: 4,171
Downloads: 141
Uploads: 10
Default

Panthercules, if I am not mistaken, you can spell the German words phonetically in the command files and the speech engine should recognize them. For instance, to use my redneck dialect as an example, I had extreme difficulty getting the word "fire" recognized. But as soon as I changed the spelling to fierr it recognized my hillbilly pronunciation every time.

I would think that the same could be applied to the German language. I.E. Deutsch (forgive spelling if I got it wrong, it's been 30 years since I used the language) would become doitsh, Mein Herr would become mine hair (even though I don't have much :rotfl: ). I don't think a German speech engine would be necessary, just some creativity in spelling.
__________________

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

Digital_Trucker is offline   Reply With Quote
Old 09-18-07, 03:16 PM   #231
minsc_tdp
XO
 
Join Date: Mar 2007
Posts: 411
Downloads: 1
Uploads: 0
Default

I believe getting proper german support in is two parts: First is to install and configure the MS Speech control panel settings appropriately to use a german language recognizer. While phonetic spellings might work I don't think that takes into account certain idiosyncracies of the language that the alternate Recognizers are designed to handle better.

Next would be figuring out why umlauts and any other german language specific character issues are properly supported in the files and scripts. As it stands, I believe that an umlaut in the file gets mangled by the time it passes through hear.exe and ultimately down to voice.exe and as a result the character just becomes a standard a instead of ä and this causes an inability to match. It'll take some work to sort it all out.

By far, the hardest work in supporting SH3 is defining the replacement entires for dials.csv. But perhaps it would be enough to get the three main dials in and not bother with the TDC and torpedo settings dial stuff until later.
__________________
June 29 2016 - shSpeech v2.55 - Voice Command for Silent Hunter 4! View Thread
minsc_tdp is offline   Reply With Quote
Old 09-19-07, 01:51 AM   #232
panthercules
The Old Man
 
Join Date: Apr 2005
Posts: 1,336
Downloads: 6
Uploads: 0
Default

Quote:
Originally Posted by minsc_tdp
I believe getting proper german support in is two parts: First is to install and configure the MS Speech control panel settings appropriately to use a german language recognizer. While phonetic spellings might work I don't think that takes into account certain idiosyncracies of the language that the alternate Recognizers are designed to handle better.

Next would be figuring out why umlauts and any other german language specific character issues are properly supported in the files and scripts. As it stands, I believe that an umlaut in the file gets mangled by the time it passes through hear.exe and ultimately down to voice.exe and as a result the character just becomes a standard a instead of ä and this causes an inability to match. It'll take some work to sort it all out.

By far, the hardest work in supporting SH3 is defining the replacement entires for dials.csv. But perhaps it would be enough to get the three main dials in and not bother with the TDC and torpedo settings dial stuff until later.
Yeah - I would think that it would be enough to get the main 3 dials working (course/rudder, speed and depth) - that would already put you light-years ahead of the plain keystroke jobs like Shoot. I'll have to play around with the German version of the MS speech thingy (assuming there is one) and see - would SH4Speech work with the German version (or the English version tweaked to handle German, or however it works) of the MS speech thingy without you having to mess with it, or does it tie into the MS speech thingy in a way that would get broken if I tried to substitute the German version for the English one? Do you know whether the MS speech thingy has a custom dictionary function like Shoot does? That worked great for getting the Shoot engine to recognize German words, and I know some of the other (commercial) speech programs I've played with before had such a function - I think it was so you could add some technical jargon terms and stuff that the "mainstream" dictionary the programs used wouldn't normally have in it. I wonder how the MS speech thingy is setup in this regard - guess it's readme time
__________________
panthercules is offline   Reply With Quote
Old 09-19-07, 10:26 PM   #233
panthercules
The Old Man
 
Join Date: Apr 2005
Posts: 1,336
Downloads: 6
Uploads: 0
Default

Quote:
Originally Posted by Digital_Trucker
Panthercules, if I am not mistaken, you can spell the German words phonetically in the command files and the speech engine should recognize them. For instance, to use my redneck dialect as an example, I had extreme difficulty getting the word "fire" recognized. But as soon as I changed the spelling to fierr it recognized my hillbilly pronunciation every time.

I would think that the same could be applied to the German language. I.E. Deutsch (forgive spelling if I got it wrong, it's been 30 years since I used the language) would become doitsh, Mein Herr would become mine hair (even though I don't have much :rotfl: ). I don't think a German speech engine would be necessary, just some creativity in spelling.
Well, I tried this and it does work, sort of, to some extent. For example, you can use "cline a fart for ows" as a reasonable facsimile for "kleine fahrt voraus", and "buy duh machine in stop" substitutes reasonably well for "beide machinen stopp" and it seems to recognize these ersatz German phrases most of the time. However, some of the German commands are just not that easy to simulate with English words/sounds, and even with these reasonably close matches recognition performance suffers quite noticeably.

I think you'd have to either (1) figure out how to use a German-based recognition engine (the readme for the MS speech thingy hinted that this might be possible but it didn't explain how to do that, and it appears that the application programmer (i.e., minsc_tdp) would probably have to build that capability into the Speech program); or (2) figure out how to add the capability Shoot has to be able to basically define your own words. Many speech programs allow you to do this, and they don't care whether you're adding some obscure English words (for legal or technical jargon terms, for example) or, in this case, some German words. In short, you just "train" the speech program so it knows when it hears "buy duh" you're actually saying "beide", and then it performs whatever key stroke or other command you told it to perform when it hears you say "beide" - it doesn't have to know or care that "beide" is German and not English.

At least, that's the way Shoot seems to do it, and it seems like it's probably the best way to approach this problem for making SH4Speech work with SH3 (easy for me to say - I don't have to program it ) Based on my experience with Shoot/SH3, you don't really have to add all that many German words to the program's lexicon/dictionary through "training" to be able to create the commands you need to speak, so I hope something like this could be done - I'd love to use this with SH3 too.
__________________
panthercules is offline   Reply With Quote
Old 09-20-07, 12:04 AM   #234
minsc_tdp
XO
 
Join Date: Mar 2007
Posts: 411
Downloads: 1
Uploads: 0
Default

Nein! I would strongly recommend that nobody pursue the route of phonetic equivalents unless they're really desperate. It is very likely a dead end.

sh4speech should use whatever recognizer (aka, an MS SAPI compatible speech engine) you have currently selected in Control Panel > Speech. Mine is "Microsoft English Recognizer 5.1". Presumably there's a way to install a "German Recognizer"!!?

According to the internet tubes (sorry lost the link!), it says:

"The speech recognition engine may be installed with the operating system or at a later time with other software. During the installation process, speech-enabled packages such as word processors and web browsers, may install their own engines or they may use existing engines. Additional engines are also available through third-party manufacturers. These engines often use a certain jargon or vocabulary; for example, they may use a vocabulary that specializes in medical or legal terminology. They can also use different voices allowing for regional accents such as British English, or use a different language altogether such as German, French, or Russian."

So you may have to buy a Microsoft SAPI compatible German recognizer. You probably want this:
http://www.nuance.de/naturallyspeaking/
__________________
June 29 2016 - shSpeech v2.55 - Voice Command for Silent Hunter 4! View Thread
minsc_tdp is offline   Reply With Quote
Old 09-20-07, 01:23 AM   #235
frenzied
Watch
 
Join Date: May 2005
Posts: 30
Downloads: 25
Uploads: 0
Default

I've been having a fairly strange, but minor, problem with this - whenever the program opens, or resets itself, it turns my microphone volume down to 0.
Any ideas on what could be causing this?
frenzied is offline   Reply With Quote
Old 09-20-07, 04:27 PM   #236
minsc_tdp
XO
 
Join Date: Mar 2007
Posts: 411
Downloads: 1
Uploads: 0
Default

Quote:
Originally Posted by frenzied
I've been having a fairly strange, but minor, problem with this - whenever the program opens, or resets itself, it turns my microphone volume down to 0.
Any ideas on what could be causing this?
Have you been through the Microphone Tuning Wizard in Control Panel > Speech? That might be governing the mic volume and it's resetting to that each time SAPI gets instantiated (which is when sh4speech starts or restarts each 10 minutes) and it is by design.
__________________
June 29 2016 - shSpeech v2.55 - Voice Command for Silent Hunter 4! View Thread
minsc_tdp is offline   Reply With Quote
Old 09-23-07, 11:56 AM   #237
panthercules
The Old Man
 
Join Date: Apr 2005
Posts: 1,336
Downloads: 6
Uploads: 0
Default Wahoo! Fix for stupid stopwatch at high TC

After getting tired of having to speak the command to "secure the stopwatch" every time I called for TC 512 or higher, it finally dawned on me that the same macro string I created to order the TC 512 in the first place could be easily adapted to include the command key to remove the stopwatch, and Voila! - no more stopwatch

Minsc_tdp - gotta hand it to you - the power of what you've done here just keeps revealing itself the more one plays around with it. Now you've made possible a fix for what has to be one of the most annoying little stupidities in the game - Way to go man

For those interested, adding these commands is really easy - for ordering TC 512, you use the macro capability built into SH4Speech to add the following line in the "keys" column (column E, I believe) to your key_commands.csv file (use whatever ID # you want/have available and call it whatever you want - I call it simply "TC 512" in mine):
SHIFT-Numpad -&Numpad +&Numpad +&Numpad +&Numpad +&Numpad +&Numpad +&Numpad +&Numpad +&Numpad +&X

You'll also need to add the key code for "SHIFT-Numpad -" (which is the key for setting TC=1, which is used at the start of the sequence to make sure the macro is increasing TC by the right number of times to get to 512) to your key_codes.csv file - it's easy to do, and the code is "0x10+0x6D"

Then you just add a line to your voice_commands.csv file so you can speak whatever you want to say for TC 512 (I just use "T C five twelve") and voila! The time compression goes to 512, the stopwatch pops up and immediately goes away

You can do basically the same thing for the higher TC settings, just by stringing together longer series of "&Numpad +" and making sure that the "&X" is the last thing in the string, and the stopwatch will always disappear when you order TC of 512 or higher.

Enjoy!
__________________
panthercules is offline   Reply With Quote
Old 10-24-07, 05:58 PM   #238
minsc_tdp
XO
 
Join Date: Mar 2007
Posts: 411
Downloads: 1
Uploads: 0
Default E for All

I recently attended E for All, a mini-E3 video game conference in Los Angeles. I tossed around my idea of modifying sh4speech to work with any game, to have a generic SDK and I got some really good feedback. I got some interesting ideas as to other types of software this might be applicable to. I'm still skeptical that there's any value here and I still need to follow up with the contacts I made, but there might be more in store for sh4speech yet. It might become a sort of generic "GameVoice" app that can be licensed by game developers for inclusion with their software, or a generic app that the communities use to tune for each game.

One of the most interesting problems is that in games like flight sims, the HUD is not static like sh4, it moves around, so the location of dials and buttons tends to change in realtime. Locating them would require a datastream from the game so that their location can be pinned down, or even better, a strong API that would allow me to set their values without worrying about where they are and not having to take over the mouse. So there's a lot of think about. This post was really just a weak excuse to bump this thread I love so much back into the main page.
__________________
June 29 2016 - shSpeech v2.55 - Voice Command for Silent Hunter 4! View Thread
minsc_tdp is offline   Reply With Quote
Old 10-24-07, 07:32 PM   #239
minsc_tdp
XO
 
Join Date: Mar 2007
Posts: 411
Downloads: 1
Uploads: 0
Default linkedin

Hey I'm messing around with this LinkedIn site. Here's my public profile:
http://www.linkedin.com/pub/5/984/45a

I'd apprecate if anyone who has used sh4speech, likes it, and has an account there (or is willing to create one) would add me as a friend/connection/whatever and put in a recommendation with glowing reviews of my work. Thanks!
__________________
June 29 2016 - shSpeech v2.55 - Voice Command for Silent Hunter 4! View Thread
minsc_tdp is offline   Reply With Quote
Old 12-09-07, 11:48 AM   #240
Hawk_345
Medic
 
Join Date: May 2007
Posts: 160
Downloads: 3
Uploads: 0
Default

I think i might give this thing a go, but first i need to know if its 1.4 cmpatible, and if you need to be a computer genius to install it and make it work. also on a side note, if i do manage to install this thing, will it afect the use of the Teamspeak program, and if i want to uninstall it, will i have to reinstall the whole game.
__________________
Hawk_345 is offline   Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 02:30 AM.


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