DialogServiceConnector.ListenOnceAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Starts a listening session as an asynchronous operation.
public System.Threading.Tasks.Task<Microsoft.CognitiveServices.Speech.SpeechRecognitionResult> ListenOnceAsync ();
member this.ListenOnceAsync : unit -> System.Threading.Tasks.Task<Microsoft.CognitiveServices.Speech.SpeechRecognitionResult>
Public Function ListenOnceAsync () As Task(Of SpeechRecognitionResult)
Returns
A task object representing the asynchronous operation.
Remarks
The end of a single utterance is determined by listening for silence at the end, or until a timeout period has elapsed. The task returns the recognized speech in SpeechRecognitionResult.Text.
See also: Integrate with a client application using Speech SDK
Applies to
Azure SDK for .NET