private void nudMaxAlternates_ValueChanged(object sender, EventArgs e) { SpeechRecognizer53 reco53 = this.reco as SpeechRecognizer53; if ((reco53 == null) || (reco53.MaxAlternates == (int)nudMaxAlternates.Value)) { return; } reco53.MaxAlternates = (int)nudMaxAlternates.Value; }
private void nudInitialSilenceTimeout_ValueChanged(object sender, EventArgs e) { SpeechRecognizer53 reco53 = this.reco as SpeechRecognizer53; int cv = (int)(nudInitialSilenceTimeout.Value * 1000); if ((reco53 == null) || (reco53.InitialSilenceTimeout == cv)) { return; } reco53.InitialSilenceTimeout = cv; }
private void nudEndSilenceTimeoutAmbiguous_ValueChanged(object sender, EventArgs e) { SpeechRecognizer53 reco53 = this.reco as SpeechRecognizer53; int cv = (int)(nudEndSilenceTimeoutAmbiguous.Value * 1000); if ((reco53 == null) || (reco53.EndSilenceTimeoutAmbiguous == cv)) { return; } reco53.EndSilenceTimeoutAmbiguous = cv; }
private void InitializeSapi53Components() { SpeechRecognizer53 reco53 = reco as SpeechRecognizer53; if (reco53 != null) { rbAutoSaveNone.Checked = true; nudMaxAlternates.Value = reco53.MaxAlternates; nudInitialSilenceTimeout.Value = reco53.InitialSilenceTimeout / 1000.0M; nudEndSilenceTimeout.Value = reco53.EndSilenceTimeout / 1000.0M; nudEndSilenceTimeoutAmbiguous.Value = reco53.EndSilenceTimeoutAmbiguous / 1000.0M; } else { rbAutoSaveNone.Checked = true; gbAutoSave.Enabled = false; lblMaxAlternates.Visible = false; nudMaxAlternates.Visible = false; nudMaxAlternates.Enabled = false; gbSilenceTimeouts.Enabled = false; } }