locked
Continuous Recognition Async using mic RRS feed

  • Question

  • Hi, I am looking at the sample programs for Speech to text using AZURE speech, using the mic    

    I am trying to figure out how to to the results, 

    When in recognizerRecognizing,  I am trying to figure out when it completes and starts a new section.  

    IF it is short phrase everything works fine, it is when I the text is long that e.Result.Text starts a new section,  I am trying to figure out when it starts a new section 

    try
                {
                    
                    await recognizer.StartContinuousRecognitionAsync();

                    recognizer.Recognizing += (s, e) =>
                    {
                        speechTempString +=  e.Result.Text;
                        speechString = e.Result.Text;
                    };

                    recognizer.Recognized += (s, e) =>
                    {
                        if (e.Result.Reason == ResultReason.RecognizedSpeech)
                        {
                            speechString = e.Result.Text;
                            speechTempString +=  e.Result.Text;
                        }
                        else if (e.Result.Reason == ResultReason.NoMatch)
                        {
                            Console.WriteLine($"NOMATCH: Speech could not be recognized.");
                        }
                        stringList.Add("nothing");  
                    };

                    recognizer.SessionStopped += (s, e) =>
                    {

    thanks

    Sunday, November 1, 2020 2:11 PM

All replies

  • Hello,

    For Azure related questions use the following forum, this forum is for C# topics only while the other forum does not have a specific C# forum.


    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    StackOverFlow
    profile for Karen Payne on Stack Exchange

    Sunday, November 1, 2020 2:33 PM