public static void End() { if(gSpeechReg != null) { gSpeechReg.Stop(); gSpeechReg.Dispose(); gSpeechReg = null; }//if }
public static SpeechEngine Instance() { if (gSpeechReg == null) { gSpeechReg = new SpeechEngine(); } return(gSpeechReg); } //func
} //func public static void End() { if (gSpeechReg != null) { gSpeechReg.Stop(); gSpeechReg.Dispose(); gSpeechReg = null; } //if } //func
public static SpeechEngine Instance() { if(gSpeechReg == null) gSpeechReg = new SpeechEngine(); return gSpeechReg; }