Using var audioConfig = AudioConfig.FromDefaultMicrophoneInput() Var speechConfig = SpeechConfig.FromSubscription(YourSubscriptionKey, YourServiceRegion) Static void OutputSpeechRecognitionResult(SpeechRecognitionResult speechRecognitionResult)Ĭonsole.WriteLine($"RECOGNIZED: Text=") Ĭonsole.WriteLine($"CANCELED: Did you set the speech resource key and region values?") Static string YourServiceRegion = "YourServiceRegion" Static string YourSubscriptionKey = "YourSubscriptionKey" Replace the contents of Program.cs with the following code. Install the Speech SDK in your new project with the. Open a command prompt where you want the new project, and create a console application with the. You install the Speech SDK in the next section of this article, but first check the SDK installation guide for any more requirements Recognize speech from a microphoneįollow these steps to create a new console application and install the Speech SDK. The Speech SDK is available as a NuGet package and implements. For more information about Cognitive Services resources, see Get the keys for your resource. After your Speech resource is deployed, select Go to resource to view and manage keys. ![]() ![]() Create a Speech resource in the Azure portal.Azure subscription - Create one for free.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |