ISpeechClientRecognizeAsync Method |
Streams audio asynchronously to the speech service for recognition.
Namespace:
Microsoft.Bing.Speech
Assembly:
Microsoft.Bing.Speech (in Microsoft.Bing.Speech.dll) Version: 2.0.1.0 (2.0.1)
Syntax Task RecognizeAsync(
SpeechInput speechInput,
CancellationToken token
)
Function RecognizeAsync (
speechInput As SpeechInput,
token As CancellationToken
) As Task
Task^ RecognizeAsync(
SpeechInput^ speechInput,
CancellationToken token
)
abstract RecognizeAsync :
speechInput : SpeechInput *
token : CancellationToken -> Task
Parameters
- speechInput
- Type: Microsoft.Bing.SpeechSpeechInput
The speech service input parameters. - token
- Type: System.ThreadingCancellationToken
The cancellation token used to cancel your request at any time, or to set a request time out.
Return Value
Type:
Task
A task that completes once the request completes. In ShortPhrase mode, the task completes after getting the
RecognitionResult.
In LongDictation mode, the task completes after the final
RecognitionResult.
See Also