Share via


AudioOutputStream.CreatePushStream(PushAudioOutputStreamCallback) Method

Definition

Creates a PushAudioOutputStream that delegates to the specified callback interface for write() and close() methods.

public static Microsoft.CognitiveServices.Speech.Audio.PushAudioOutputStream CreatePushStream (Microsoft.CognitiveServices.Speech.Audio.PushAudioOutputStreamCallback callback);
static member CreatePushStream : Microsoft.CognitiveServices.Speech.Audio.PushAudioOutputStreamCallback -> Microsoft.CognitiveServices.Speech.Audio.PushAudioOutputStream
Public Shared Function CreatePushStream (callback As PushAudioOutputStreamCallback) As PushAudioOutputStream

Parameters

callback
PushAudioOutputStreamCallback

The custom audio output object, derived from PushAudioOutputStreamCallback

Returns

The push audio output stream being created.

Remarks

See also: Recognize from in-memory stream

Applies to