Sdílet prostřednictvím


AudioDataStream.FromResult Method

Definition

Overloads

FromResult(KeywordRecognitionResult)

Gets the memory-backed audio data stream associated with a given keyword recognition result, set to the moment before the keyword was spoken.

FromResult(SpeechSynthesisResult)

Creates a memory-backed audio data stream using the specified synthesized speech.

FromResult(KeywordRecognitionResult)

Gets the memory-backed audio data stream associated with a given keyword recognition result, set to the moment before the keyword was spoken.

public static Microsoft.CognitiveServices.Speech.AudioDataStream FromResult (Microsoft.CognitiveServices.Speech.KeywordRecognitionResult result);
static member FromResult : Microsoft.CognitiveServices.Speech.KeywordRecognitionResult -> Microsoft.CognitiveServices.Speech.AudioDataStream
Public Shared Function FromResult (result As KeywordRecognitionResult) As AudioDataStream

Parameters

result
KeywordRecognitionResult

The keyword recognition result.

Returns

An audio stream of speech positioned to the moment before the keyword utterance.

Applies to

FromResult(SpeechSynthesisResult)

Creates a memory-backed audio data stream using the specified synthesized speech.

public static Microsoft.CognitiveServices.Speech.AudioDataStream FromResult (Microsoft.CognitiveServices.Speech.SpeechSynthesisResult result);
static member FromResult : Microsoft.CognitiveServices.Speech.SpeechSynthesisResult -> Microsoft.CognitiveServices.Speech.AudioDataStream
Public Shared Function FromResult (result As SpeechSynthesisResult) As AudioDataStream

Parameters

result
SpeechSynthesisResult

The speech synthesis result.

Returns

An audio data stream.

Remarks

See also: Get result as an in-memory stream

Applies to