C# 在语音识别程序中添加谷歌搜索

C# 在语音识别程序中添加谷歌搜索,c#,speech-recognition,C#,Speech Recognition,我试图建立一个程序来识别我的命令和工作。我能够做到,但现在我想在这个程序中添加一个谷歌搜索。它将识别我的命令并在internet上搜索它 private void Main_Load(object sender, EventArgs e) { cmds.Add(new String[] { "Hello", "Good Morning", "Time please"}); /*here are the commands */ Grammar gRmr =

我试图建立一个程序来识别我的命令和工作。我能够做到,但现在我想在这个程序中添加一个谷歌搜索。它将识别我的命令并在internet上搜索它

private void Main_Load(object sender, EventArgs e)
    {
        cmds.Add(new String[] { "Hello", "Good Morning", "Time please"}); /*here are the commands */
        Grammar gRmr = new Grammar(new GrammarBuilder(cmds));

        try
        {
            recEng.RequestRecognizerUpdate();
            recEng.LoadGrammar(gRmr);
            recEng.SpeechRecognized += recEng_SpeechRecognized;
            recEng.SetInputToDefaultAudioDevice();

        }
        catch (Exception ex)
        {
            MessageBox.Show(ex.Message, "Error");
        }

    }


    private void btnStartSpkr_Click(object sender, EventArgs e)
    {
        recEng.RecognizeAsync(RecognizeMode.Multiple);
        btnStpSpkr.Enabled = true;
        btnStartSpkr.Enabled = false;
    }
    void recEng_SpeechRecognized(object sender, SpeechRecognizedEventArgs e)
    {
        switch (e.Result.Text.ToString())
        {
            case "Hello":
                synth.SpeakAsync("Hello. How are you doing?"); 
                break;
            case "Time please" :
                synth.SpeakAsync("Current time is " + DateTime.Now.ToLongTimeString()); /*Says current time*/
                break;
            case "Good Morning" :
                synth.SpeakAsync("Good Morning, Have a good day ahead"); /*It says good morning */
                break;
            default :

             /**Here I want to add Google search. I mean if I say America it will search America in Google. Can't understand how to do it.**/

我想问题不是实现搜索,而是让语音识别器识别出你想说的一切?这是一套固定的东西,还是你想要一般的听写?.NET语音识别器能做到吗?@Rup我不能掌控一切。。就像一些我可能不知道的英语单词的意思。。我想让这个程序搜索它。