![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
![]() |
#1 |
Seaman
![]() Join Date: Feb 2019
Location: Gallipoli Strait
Posts: 37
Downloads: 32
Uploads: 0
|
![]()
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. |
![]() |
![]() |
![]() |
#2 |
Nub
![]() Join Date: May 2016
Posts: 2
Downloads: 22
Uploads: 0
|
![]()
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 |
![]() |
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|