public TalkingHead() { SpeechLib.ISpeechObjectTokens token = voice.GetVoices("", ""); voice.Voice = voice.GetVoices("gender=female").Item(2); voice.Word += wordListener; voice.Volume = 0; server = new Thread(StartServer); server.Start(); InitializeComponent(); }
public Form1() { InitializeComponent(); voice = new SpeechLib.SpVoiceClass(); tokens = voice.GetVoices("", ""); }
private void frmProfileChange_Load(object sender, System.EventArgs e) { //get objRecoContext from this.Tag objRecoContext=(SpeechLib.SpSharedRecoContext)this.Tag; //write all profiles to checkBoxList string str10="",str11=""; objTokens=objRecoContext.Recognizer.GetProfiles(str10,str11); for (int i=0;i<objTokens.Count;i++) { checkedListBox1.Items.Add(objTokens.Item(i).GetDescription(0)); if (objRecoContext.Recognizer.Profile.GetDescription(0)==objTokens.Item(i).GetDescription(0)) checkedListBox1.SetItemChecked(i,true); } }