/// <summary>
        /// Speech Recognition with Language Detection feature enabled
        /// </summary>
        private static void SpeechRecognitionWithLanguageDetectionEnabled()
        {
            Console.WriteLine("Please choose the following samples (with Language detection enabled)");
            var prompt = "Your choice (0: Stop): ";

            Console.WriteLine("1. Speech recognition with microphone input.");
            Console.WriteLine("2. Speech continuous recognition with multi-lingual audio input.");

            Console.Write(prompt);

            ConsoleKeyInfo x;

            x = Console.ReadKey();
            Console.WriteLine("");
            switch (x.Key)
            {
            case ConsoleKey.D1:
                SpeechRecognitionWithLanguageIdSamples.RecognitionWithMicrophoneAsync().Wait();
                break;

            case ConsoleKey.D2:
                SpeechRecognitionWithLanguageIdSamples.MultiLingualRecognitionWithUniversalV2Endpiont().Wait();
                break;

            case ConsoleKey.D0:
                Console.WriteLine("Exiting...");
                break;

            default:
                Console.WriteLine("Invalid input.");
                break;
            }
            Console.WriteLine("\nExecution done. " + prompt);
        }
        //
        // Speech Recognition with Language Detection feature enabled
        //
        private static void SpeechRecognitionWithLanguageDetectionEnabled()
        {
            ConsoleKeyInfo x;

            do
            {
                Console.WriteLine("");
                Console.WriteLine(" Speech SDK - Speech Recognition With Spoken Language Detection Samples");
                Console.WriteLine("");
                Console.WriteLine(choose);
                Console.WriteLine("");
                Console.WriteLine(" 1. Speech recognition with microphone input.");
                Console.WriteLine(" 2. Speech continuous recognition with multi-lingual audio input.");
                Console.WriteLine("");
                Console.Write(prompt);

                x = Console.ReadKey();
                Console.WriteLine("\n");
                bool sampleWasRun = true;

                switch (x.Key)
                {
                case ConsoleKey.D1:
                case ConsoleKey.NumPad1:
                    SpeechRecognitionWithLanguageIdSamples.RecognitionWithMicrophoneAsync().Wait();
                    break;

                case ConsoleKey.D2:
                case ConsoleKey.NumPad2:
                    SpeechRecognitionWithLanguageIdSamples.MultiLingualRecognitionWithUniversalV2Endpiont().Wait();
                    break;

                case ConsoleKey.D0:
                case ConsoleKey.NumPad0:
                    Console.WriteLine(back);
                    sampleWasRun = false;
                    break;

                default:
                    Console.WriteLine(invalid);
                    sampleWasRun = false;
                    break;
                }

                if (sampleWasRun)
                {
                    Console.WriteLine(done);
                }
            } while (x.Key != ConsoleKey.D0);
        }