Esempio n. 1
0
        /// <summary>
        /// build for Embedding voice chat are used in MainForm
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MainForm_Load(object sender, EventArgs e)
        {
            //backGround_sound.controls.play();
            Choices commands = new Choices();

            WinApI.AnimateWindow(this.Handle, 1500, WinApI.BLEND);

            commands.Add(new string[] { "say hello", "print my name", "kill", "vote",
                                        "player0", "player1", "player2", "player3", "player4", "player5", "player6", "player7", "player8", "player9",
                                        "player10", "player11", "player12", "player13", "player14", "player15", "I am wolf", "I am villager", "wolf is " });

            GrammarBuilder gBuilder = new GrammarBuilder();

            gBuilder.Append(commands);

            Grammar grammar = new Grammar(gBuilder);



            recEngine.LoadGrammarAsync(grammar);

            recEngine.SetInputToDefaultAudioDevice();

            recEngine.SpeechRecognized += recEngine_SpeechRecognized;
        }
Esempio n. 2
0
 private void HTP_Load(object sender, EventArgs e)
 {
     WinApI.AnimateWindow(this.Handle, 1500, WinApI.BLEND);
 }
Esempio n. 3
0
 private void register_Load_1(object sender, EventArgs e)
 {
     WinApI.AnimateWindow(this.Handle, 2000, WinApI.BLEND);
 }