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.
|