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 04-13-11, 02:50 PM   #331
MiTon
Sparky
 
Join Date: Apr 2010
Location: Germany
Posts: 157
Downloads: 270
Uploads: 2
Default

Quote:
Originally Posted by stoianm View Post
I think that if the french language is in the Language Pack from microsoft than should be also an speech recognition for this language too


Not necessarily, but a there is a speech recognition for french!

EDIT:

If you can believe Wikipedia:
"Speech recognition support for 8 languages at release time: U.S. English, U.K. English, traditional Chinese, simplified Chinese, Japanese, German, French and Spanish, with more language to be released later."

So a translation for these languages should be possible.
MiTon is offline   Reply With Quote
Old 04-13-11, 04:12 PM   #332
MiTon
Sparky
 
Join Date: Apr 2010
Location: Germany
Posts: 157
Downloads: 270
Uploads: 2
Default

Great news!

I was checking the tubes controls for my german version when I got this great idea!

How about a command to flood tubes from x to y??

"flood tubes from 1 to 3" for example.

It's working!!!!

Will release a hotfix when I'm launching german version 0.3!

Including commands to flood all, bow or sterntubes!

Will check if it's possible to select tubes form x to y, too!
Shouldn't be a problem!

regards

MiTon
MiTon is offline   Reply With Quote
Old 04-13-11, 04:13 PM   #333
stoianm
Ocean Warrior
 
Join Date: Dec 2010
Location: Montreal, Canada
Posts: 2,776
Downloads: 833
Uploads: 11
Default

Quote:
Originally Posted by MiTon View Post
Great news!

I was checking the tubes controls for my german version when I got this great idea!

How about a command to flood tubes from x to y??

"flood tubes from 1 to 3" for example.

It's working!!!!

Will release a hotfix when I'm launching german version 0.3!

Including commands to flood all, bow or sterntubes!

Will check if it's possible to select tubes form x to y, too!

regards

MiTon
awsome... i knew you will fix this one day
stoianm is offline   Reply With Quote
Old 04-13-11, 04:15 PM   #334
MiTon
Sparky
 
Join Date: Apr 2010
Location: Germany
Posts: 157
Downloads: 270
Uploads: 2
Default

Quote:
Originally Posted by stoianm View Post
awsome... i knew you will fix this one day
If you had this idea, why didn't you tell me earlier???
MiTon is offline   Reply With Quote
Old 04-13-11, 04:17 PM   #335
stoianm
Ocean Warrior
 
Join Date: Dec 2010
Location: Montreal, Canada
Posts: 2,776
Downloads: 833
Uploads: 11
Default

Quote:
Originally Posted by MiTon View Post
If you had this idea, why didn't you tell me earlier???
i did not had the ideea... i told you that i not liked that i can not flood the tubes - remember?... but i was sure that you will find a solution one day - this i wanted to say... i knew that you will find the solution... not that i knew the solution
stoianm is offline   Reply With Quote
Old 04-13-11, 04:21 PM   #336
MiTon
Sparky
 
Join Date: Apr 2010
Location: Germany
Posts: 157
Downloads: 270
Uploads: 2
Default

Flooding the tubes should be fixed with version 0.3, but these commands are way better!
MiTon is offline   Reply With Quote
Old 04-14-11, 12:17 AM   #337
jwilliams
Ace of the Deep
 
Join Date: Nov 2009
Location: New Zealand
Posts: 1,013
Downloads: 124
Uploads: 0
Default

Quote:
Originally Posted by kalijav View Post
I've recently installed this mod, and I am having trouble with the " set course " command for courses starting by 2, like 285 for example, very often it only takes 085 as a command.

I was wondering, could it be a problem with the recognition of 2 and to ?
Or maybe a conflict with the "set course to" command ?

Maybe it's just my accent, but I thought I should give a try here Maybe I'm saying the command too fast/slow. Any advice welcome, thanks.

Subsidiary question, does it help to "train" the win7 speech recognition ?

I also had problems with any course starting with 2 hundred.

It take a little getting used to but you have to say two twice.
Once for the word TO and again for TWO.

E.G.
"set new course two two four three"

The speech rec. still get it wrong and take a few tries, but it mostly gets it right now.



@ MiTon

The starboard and port are the wrong way.

I ask for 5 degrees to port and it comes up with 5 degrees to starboard.

It's an easy fix in the Speech Recognition.py file. Just though I point it out so it can be fixed in future releases.

Line 122
Quote:
elif cmd == "Set_rudder":
if ( param1 > 35 ): return
param1 /= Menu.GuiDials.mps_kt / 2
# if param2 is 1, then 'port' was said instead of 'starboard', so we invert the number of degrees.
if param2 == 1: param1 *= -1
param1 = Utility.FloatMemoryAsDWORD( param1 )
Just change the 1 (highlighted yellow) to a 0.

__________________
Windows 7, 64bit. Phenom II 965BE (OC 4cores @ 3.8 Ghz).
Radeon HD4870 (1gb gddr5). 6gb Ram.
jwilliams is offline   Reply With Quote
Old 04-14-11, 12:45 AM   #338
MiTon
Sparky
 
Join Date: Apr 2010
Location: Germany
Posts: 157
Downloads: 270
Uploads: 2
Default

Quote:
Originally Posted by jwilliams View Post
I also had problems with any course starting with 2 hundred.

It take a little getting used to but you have to say two twice.
Once for the word TO and again for TWO.

E.G.
"set new course two two four three"

The speech rec. still get it wrong and take a few tries, but it mostly gets it right now.



@ MiTon

The starboard and port are the wrong way.

I ask for 5 degrees to port and it comes up with 5 degrees to starboard.

It's an easy fix in the Speech Recognition.py file. Just though I point it out so it can be fixed in future releases.

Line 122


Just change the 1 (highlighted yellow) to a 0.


You should not change this, if you do, the script can't know if port or starbord is selected, it takes param2 to decide this. And if it's always 0 ...

If it's wrong change the SHSpeech_Commands.xml

Code:
<order><!-- set rudder x degrees to port -->
            ...
            
            <commandText param2="1">Set_rudder</commandText>

to

Code:
<order><!-- set rudder x degrees to port -->
            ...
            
            <commandText>Set_rudder</commandText>
and

Code:
<order><!-- set rudder x degrees to starboard -->
           ...
            <commandText>Set_rudder</commandText>
        </order>
to

Code:
<order><!-- set rudder x degrees to starboard -->
           ...
            <commandText param2="1">Set_rudder</commandText>
        </order>

Will fix it asap!

Last edited by MiTon; 04-14-11 at 02:11 AM.
MiTon is offline   Reply With Quote
Old 04-14-11, 02:15 AM   #339
KarlKoch
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by MiTon View Post
Will check if it's possible to select tubes form x to y, too!
Command is Select_salvo_tube_index, with param1 from 1 to 7 for different tube-selections.
You can find how i handled that in my files. Link via pm.
  Reply With Quote
Old 04-14-11, 03:04 AM   #340
kalijav
Seaman
 
Join Date: Mar 2010
Posts: 37
Downloads: 117
Uploads: 0
Default

Quote:
Originally Posted by MiTon View Post
If you wan't to make a french version, I could help and tell you what you got to translate!

EDIT:

Is there a french speech recognition from Microsoft anyway??

regards
I've looked at the files a while ago, it looked a bit overwhelming, and I'm sure some modificiation to the python files would be necessary, and I have no clue how python works. Besides, I just switched my windows to english so I can use the english version XD.
Not sure if i'll have the motivation to get through this ^^

And yes, there is a french speech recognition, I had it installed.

I've noticed that, for the 2's issue, when I try 260 in the test software, it works almost fine, but in game it's worse.
I have noticed however, that if you say "to" pretty fast, it seems to recognize it a bit better, but it's not really easy to say it everytime in the good way :p
kalijav is offline   Reply With Quote
Old 04-14-11, 03:29 AM   #341
MiTon
Sparky
 
Join Date: Apr 2010
Location: Germany
Posts: 157
Downloads: 270
Uploads: 2
Default

Quote:
Originally Posted by kalijav View Post
I've looked at the files a while ago, it looked a bit overwhelming, and I'm sure some modificiation to the python files would be necessary, and I have no clue how python works. Besides, I just switched my windows to english so I can use the english version XD.
Not sure if i'll have the motivation to get through this ^^

And yes, there is a french speech recognition, I had it installed.

I've noticed that, for the 2's issue, when I try 260 in the test software, it works almost fine, but in game it's worse.
I have noticed however, that if you say "to" pretty fast, it seems to recognize it a bit better, but it's not really easy to say it everytime in the good way :p
For translation, in Speech Recognition.py you only have to change

Code:
speech = SHSpeechEngine("en-US")
to your language.

The rest of the tranlation happens in the XML files.
MiTon is offline   Reply With Quote
Old 04-14-11, 03:29 AM   #342
MiTon
Sparky
 
Join Date: Apr 2010
Location: Germany
Posts: 157
Downloads: 270
Uploads: 2
Default

Quote:
Originally Posted by KarlKoch View Post
Command is Select_salvo_tube_index, with param1 from 1 to 7 for different tube-selections.
You can find how i handled that in my files. Link via pm.

Thx,

will have a look at it!!
MiTon is offline   Reply With Quote
Old 04-14-11, 05:42 AM   #343
d3vnu11
Bosun
 
Join Date: Feb 2011
Posts: 66
Downloads: 95
Uploads: 0
Default

Is there a confirmation in the log when you set a new confidence level ?

Great update btw
Regards,
Kev
d3vnu11 is offline   Reply With Quote
Old 04-14-11, 06:22 AM   #344
MiTon
Sparky
 
Join Date: Apr 2010
Location: Germany
Posts: 157
Downloads: 270
Uploads: 2
Default

Quote:
Originally Posted by d3vnu11 View Post
Is there a confirmation in the log when you set a new confidence level ?

Great update btw
Regards,
Kev
You mean, you set a new confidence level in the .py file ingame?
As I droped the GUI for this release, setting conf level via speech would be to risky, so I droped this feature.
If you set it and restart the game, there is no confirmation.
But it's using the value you put into the .py file.

regards

MiTon
MiTon is offline   Reply With Quote
Old 04-14-11, 07:46 AM   #345
d3vnu11
Bosun
 
Join Date: Feb 2011
Posts: 66
Downloads: 95
Uploads: 0
Default

Quote:
Originally Posted by MiTon View Post
You mean, you set a new confidence level in the .py file ingame?
As I droped the GUI for this release, setting conf level via speech would be to risky, so I droped this feature.
If you set it and restart the game, there is no confirmation.
But it's using the value you put into the .py file.

regards

MiTon
Ok I see. Yeah I realized you had the code there but didn't implment it yet I set it manually.
Thanks,
Kev
d3vnu11 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 11:11 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.