![]() SpeechRecognizer(EmbeddedSpeechConfig, AutoDetectSourceLanguageConfig, AudioConfig)Ĭreates a new instance of SpeechRecognizer using HybridSpeechConfig, configured to receive speech from the default microphone. SpeechRecognizer(EmbeddedSpeechConfig, AutoDetectSourceLanguageConfig)Ĭreates a new instance of SpeechRecognizer, using EmbeddedSpeechConfig, that determines the source language from a list of options. SpeechRecognizer(EmbeddedSpeechConfig, AudioConfig)Ĭreates a new instance of SpeechRecognizer using EmbeddedSpeechConfig, configured to receive speech from an audio source specified in an AudioConfig object. See also: Get started with speech-to-textĬreates a new instance of SpeechRecognizer using EmbeddedSpeechConfig, configured to receive speech from the default microphone. Using (var recognizer = new SpeechRecognizer(config))Ĭonsole.WriteLine($"RECOGNIZING: Text= while (Console.ReadKey().Key != ConsoleKey.Enter) Īwait recognizer.StopContinuousRecognitionAsync().ConfigureAwait(false) Creates a speech recognizer from microphone. Var config = SpeechConfig.FromSubscription("YourSubscriptionKey", "YourServiceRegion") ![]() ![]() Replace with your own subscription key and service region (e.g., "westus"). Creates an instance of a speech config with specified subscription key and region. public async Task SpeechContinuousRecognitionAsync() This example uses the speech recognizer from a microphone and listens to events generated by the recognizer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |