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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 05-16-20, 09:06 AM   #3
Hartroff
Seaman
 
Join Date: Feb 2019
Location: Gallipoli Strait
Posts: 37
Downloads: 32
Uploads: 0
Default

I have the solution now! I hope.

Actually the solution is inside the mod's documentation folder: pdf - SpeechRecognition_CustomizingTutorial_english

1- Activate mod via JSGME (I activated Speech Recognition_MiTons_NewUI_Editon_v0.4.1_english).
2- test it via SHSpeechEngineTest application. Look to Confidence value: 0.87
3- Be sure that test app does completely understand you (say and try 10-15 different phrases at least like "raise periscope", "back emergency", "new depth 20 meters" and more.
4- If it does not understand you perfectly try to change confidence value (for me 0.60 is best. So find your best value). Now, let's suppose that 0.67 is your best. Close the test app.
5- I assume that you activated: Speech Recognition_MiTons_NewUI_Editon_v0.4.1_english.
6- Go to directory (inside SH5): TWoS_Parts => Speech Recognition_MiTons_NewUI_Editon_v0.4.1_english => data => Scripts => Menu.
7- Open Speech Recognition.py with notepad and find this:
if SHSpeechEngine.IsSupported:
currentDecksAwashDepth = 7.5
newConfidenceLevel = 0.70
currentConfidenceLevel = 0.70
#speech = SHSpeechEngine("en-US")
#speech.Confidence = newConfidenceLevel
#speech.OrderReceived += speech_OrderReceived
#speech.Start()
8- Change both 0.70s to your best value that you tested in SHSpeechEngineTest application and save.
9- Open the game and test it. If it works, enjoy.
Hartroff is offline   Reply With Quote
 


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 01:47 AM.


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