Thx for sharing your knowledge TDW!
It's realy appreciated!
Sorry for these dumb questions! Have been awake for over 30 hours, so concentration dropped quite low
But I think I'm making slow but steady progress understanding Python and SH5 internals
I may be misunderstanding, but since SpeechRecognition is started by the initScript it should be initialized from start, cause I can use it "out of the box".
See here:
Code:
def InitializeScript():
if SHSpeechEngine.IsSupported:
global speech
Game.SubmarineCommands.CommandWasGiven += test_CommandGiven
Game.SubmarineCommands.DelayedCommandWasGiven += test_DelayedCommandGiven
try:
if speech == None:
speech = SHSpeechEngine("de-DE")
speech.Confidence = 0.70
speech.OrderReceived += speech_OrderReceived
speech.Start()
except:
pass
Ok. Open like this:
Code:
from SpeechRecognition import SpeechRecognition
SpeechRecognition.Visible = True
"MakeSureIsLoaded".
The name sounds promissing, already.
Will give it a try!
I have an other question related to the MenuEditor!
Under "Item text" you can find a dropdow list for localized strings, which seems to read menu.txt. I added my strings there but they don't show up in the dropdownlist?
Is there an other place to define those strings or do I have to set them through
Code:
SpeechRecognition_SpeechRecognitionSettings_ConfidenceLevelText.Text = "TEST"
?
Could be a strange bug since I'm having an other issue, as you can read in my post to NewUI:
http://www.subsim.com/radioroom/show...postcount=6956
Thx again!