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 05-16-20, 09:06 AM   #1
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
Old 05-17-20, 01:18 AM   #2
MSchutze
Nub
 
Join Date: May 2016
Posts: 2
Downloads: 22
Uploads: 0
Default

Hi Hartroff,

Thanks for your advice. Unfortunately it is still not working for me.

I did as you suggested. My language packs have speech recognition installed, and I also selected the option to recognise non-native accents. I am using the English (UK) language pack.

When I test my microphone in Windows Settings, it registers ok - and when I talk to people online (e.g., Discord) it all works fine. But when I load up either the game, or even 'SHSpeechEngineTest', nothing registers. When 'SHSpeechEngineTest' is loaded, it has English UK showing, and I try lots of commands (engines stop, dive, etc) and nothing is registered. It just keeps saying 'listening' at the bottom of the window, but it does not detect anything.

It is really strange, as it looks like I have everything activated, and my microphone does work, but for some reason the voice recognition mod does not detect me speaking, even when I change the confidence levels.

It is quite the mystery.

Thank again for your help.

M
MSchutze 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 08:28 PM.


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.