Delen via


AudioInputStream.CreatePushStream Method

Definition

Overloads

CreatePushStream()

Creates a memory backed PushAudioInputStream using the default format (16 kHz, 16 bit, mono PCM).

CreatePushStream(AudioStreamFormat)

Creates a memory backed PushAudioInputStream with the specified audio format.

CreatePushStream()

Creates a memory backed PushAudioInputStream using the default format (16 kHz, 16 bit, mono PCM).

public static Microsoft.CognitiveServices.Speech.Audio.PushAudioInputStream CreatePushStream ();
static member CreatePushStream : unit -> Microsoft.CognitiveServices.Speech.Audio.PushAudioInputStream
Public Shared Function CreatePushStream () As PushAudioInputStream

Returns

The push audio input stream being created.

Applies to

CreatePushStream(AudioStreamFormat)

Creates a memory backed PushAudioInputStream with the specified audio format.

public static Microsoft.CognitiveServices.Speech.Audio.PushAudioInputStream CreatePushStream (Microsoft.CognitiveServices.Speech.Audio.AudioStreamFormat format);
static member CreatePushStream : Microsoft.CognitiveServices.Speech.Audio.AudioStreamFormat -> Microsoft.CognitiveServices.Speech.Audio.PushAudioInputStream
Public Shared Function CreatePushStream (format As AudioStreamFormat) As PushAudioInputStream

Parameters

format
AudioStreamFormat

The data format of the audio to be written to the push audio stream's write() method.

Returns

The push audio input stream being created.

Applies to