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 > SH5 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 03-14-10, 09:40 PM   #1
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,547
Downloads: 26
Uploads: 3
Default [REL] Speech Recognition for SH5

Speech Recognition for SH5 – v1.4 - by skwas

Developed in 2010 by skwas, a game enthusiast and ubergeek )
http://sh4.skwas.net
_______________________________________________

DESCRIPTION

This mod enables speech recognition to SH5 allowing you to use a microphone to dictate your crew what to do… Happy sailing!

English vocabulary only! Suggestions, bugs, please post. Also note, English is not my native language so any corrections on spoken phrases/orders are welcome.


CREDITS
VERSION HISTORY




v1.4 – 29-03-2010
  • Renamed Page Voice Recognition.ini to Speech Recognition.ini
  • Renamed Page Voice Recognition.py to Speech Recognition.py
  • Moved XML-files to game data folder Data\Sound\Speech
  • Added XSLT-stylesheet so you can view all supported commands by opening SHSpeech_Commands.xml in a browser.
  • Lowered default confidence level to 0.87
  • Added Microphone-icon to test application
  • Added support for floating point values (max. one decimal), f.ex. 3.6 meters
  • Fixed: when ordering ‘set pistol to magnetic’ you’d get a confirmation, but the pistol setting did not actually change.
  • Added numerous commands. See ‘Supported Voice Commands’-shortcut for a complete overview.
  • Included source code
v1.1 – 1.3
  • Updated test application only.

v1.0
  • Initial release

SYSTEM REQUIREMENTS
  • Windows Vista
  • Windows 7
  • English language pack must be installed!!!
See Windows Update to install a language pack. Alternatively, check these links:

http://windows7center.com/news/windo...indows-update/
http://keznews.com/6149_Download_Win...Download_Links
http://support.microsoft.com/kb/934377

And if you can't install a language, check out this important post by Ernesto78 (it worked for several guys!):

http://www.subsim.com/radioroom/show...1&postcount=47

IMPORTANT: Any older platform may likely NOT work and cause CTD’s.


INSTALLATION INSTRUCTIONS

Install as any other mod using JSGME, and simply run the game.

NOTE: Likely NOT compatible with UI mods...!


SUPPORTED COMMANDS

Open the file Data\Sound\Speech\SHSpeech_Commands.xml in a browser, or view online:

http://sh4.skwas.net/redist/shspeech_commands.xml


HOW DOES IT WORK?

My mod is using a custom written DLL and some Python script-files. The entire speech recognition configuration can be controlled using two XML files, which contain the grammar for the accepted spoken words, and a commands file which controls the translation to a game command. Optionally you can capture any command and alter it’s behavior form the .py files I included.

See the readme for more details.


PERMISSIONS

Do not redistribute or reuse this mod without my permission.


SOURCE CODE

Source code is included in the Documentation\Source code folder. You will need Visual Studio 2008 (C#).


DOWNLOAD

http://sh4.skwas.net/download.aspx?i...d-47cce8e36be8

Miton's improved editions:
English: http://www.subsim.com/radioroom/down...o=file&id=3085

German: http://www.subsim.com/radioroom/down...o=file&id=3057


Have fun, and let me know!


Assistence needed to further improve the commands, and in the future for localization (once the mod has proven to be stable and functional enough)!

Last edited by skwasjer; 04-16-11 at 06:02 PM. Reason: Updated to 1.4
skwasjer is offline   Reply With Quote
Old 03-14-10, 09:46 PM   #2
rsvette12
Lieutenant
 
Join Date: Mar 2007
Posts: 263
Downloads: 132
Uploads: 0
Default

Looks great, so this would not work on xp ? thank you.

Rich
rsvette12 is offline   Reply With Quote
Old 03-14-10, 09:48 PM   #3
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,547
Downloads: 26
Uploads: 3
Default

I have no idea, but I don't think so, not out of the box anyway. You will need SAPI 5.1 or 5.3 and .NET Framework 3.5 installed. Vista and Windows 7 have this out of the box. On top of that the SRGS specification (used for grammar dictionary) may not be supported on XP. Only one way to find out
skwasjer is offline   Reply With Quote
Old 03-15-10, 12:34 AM   #4
krupp_88mm
Mate
 
Join Date: Mar 2010
Location: away from ......
Posts: 51
Downloads: 5
Uploads: 0
Default

damn you ubisoft i want to say "bow planes down 15, aft planes up 10" why why WHY capt simulation!???
krupp_88mm is offline   Reply With Quote
Old 03-15-10, 01:07 AM   #5
gutted
The Old Man
 
Join Date: Apr 2005
Location: New Orleans, LA.
Posts: 1,353
Downloads: 470
Uploads: 10
Default

boooo to no XP support.
__________________

Solution Solver 2.3.2 - Visual Targeting Tools & Aids
gutted is offline   Reply With Quote
Old 03-15-10, 01:11 AM   #6
gutted
The Old Man
 
Join Date: Apr 2005
Location: New Orleans, LA.
Posts: 1,353
Downloads: 470
Uploads: 10
Default

I checked, my XP version has .NET 3.5 and the speech SDK 5.1 ( i use speech rec for Falcon).

what else do i need?

and how to make this work? you give hardly any instructions.

I installed it as a mod, went in game and said a few things and nothing happened.
__________________

Solution Solver 2.3.2 - Visual Targeting Tools & Aids
gutted is offline   Reply With Quote
Old 01-08-14, 10:51 PM   #7
Raven_2012
Commander
 
Join Date: Jan 2010
Location: Elmira, NY
Posts: 445
Downloads: 129
Uploads: 0
Default

It is also have to enable the Speech in game. There is going to be a new icon on your NewUI on the right hand side. Its either after the journal icon, you will see it. The icon looks like a mic. When you click on it, game will kind of freeze for a second or two. Don't worry let it finish. The Icon will now be lit up and ready to receive commands.

Look in Documents folder for this:
original Version - Supported Voicecommands (englische Version)

It will show you the many speech to say for one function.
Raven_2012 is offline   Reply With Quote
Old 03-14-10, 09:47 PM   #8
Will-Rommel
Chief
 
Join Date: Jan 2008
Posts: 320
Downloads: 81
Uploads: 0
Default

The Olympian strikes back.

Sad that i still run on XP.
__________________
-Fighting is a lifestyle-
Will-Rommel is offline   Reply With Quote
Old 03-15-10, 05:15 AM   #9
BBWilly
Bilge Rat
 
Join Date: Mar 2010
Posts: 1
Downloads: 14
Uploads: 0
Default I use Dragon NaturallySpeaking

works perfect, even with german commands
BBWilly is offline   Reply With Quote
Old 03-16-10, 10:11 AM   #10
Ernesto78
Watch
 
Join Date: Mar 2010
Posts: 20
Downloads: 12
Uploads: 0
Default How did you do that?

Quote:
Originally Posted by BBWilly View Post
works perfect, even with german commands
Hi,

how do you use this with german laguage? Did you simply edit the command-File?

Wie hast du das mit deutschen befehlen Angestellt? Einfach die Commands-Datei editiert? Undwie genau???
Ernesto78 is offline   Reply With Quote
Old 03-16-10, 10:48 AM   #11
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,547
Downloads: 26
Uploads: 3
Default

A german version will be provided at a later date... Editting the files is not yet recommended.
skwasjer is offline   Reply With Quote
Old 03-16-10, 12:20 PM   #12
Ernesto78
Watch
 
Join Date: Mar 2010
Posts: 20
Downloads: 12
Uploads: 0
Oh cool

Quote:
Originally Posted by skwasjer View Post
A german version will be provided at a later date... Editting the files is not yet recommended.
but BBWilly did it, i think.

great, a few day ago, i played T C Endwar and i thought:" F**ck, i want to give cammands in that way in SH5"



So Thank YOU!
Ernesto78 is offline   Reply With Quote
Old 03-18-10, 11:02 AM   #13
Ernesto78
Watch
 
Join Date: Mar 2010
Posts: 20
Downloads: 12
Uploads: 0
Default

Quote:
Originally Posted by skwasjer View Post
A german version will be provided at a later date... Editting the files is not yet recommended.
I could support the "german-version-team" if needed, I'm german, too.
Ernesto78 is offline   Reply With Quote
Old 03-18-10, 11:24 AM   #14
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,547
Downloads: 26
Uploads: 3
Default

Quote:
Originally Posted by Ernesto78 View Post
I could support the "german-version-team" if needed, I'm german, too.
Perfect, talk to KarlKoch. He will be the 'chef' of the german version
skwasjer is offline   Reply With Quote
Old 03-17-10, 04:12 PM   #15
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,547
Downloads: 26
Uploads: 3
Default

Updated first post with v1.2. This version does not contain any additional commands or improved commands, but the core code has been improved (more stable) and the test application is now more informative, and less likely to CTD. This way I hope those that have issues can provide feedback back to me.

I've also added an explanation of the .py file in the readme.rtf for those that are interested in the inner workings. More info will follow (I take it a step at a time)
skwasjer is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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

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

Forum Jump


All times are GMT -5. The time now is 02:50 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.