Udostępnij za pośrednictwem


DialogServiceConnector.ListenOnceAsync Method

Definition

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