다음을 통해 공유


AudioInputStream.CreatePullStream Method

Definition

Overloads

CreatePullStream(PullAudioInputStreamCallback)

Creates a PullAudioInputStream that delegates to the specified callback interface for read() and close() methods, using the default format (16 kHz, 16 bit, mono PCM).

CreatePullStream(PullAudioInputStreamCallback, AudioStreamFormat)

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

CreatePullStream(PullAudioInputStreamCallback)

Creates a PullAudioInputStream that delegates to the specified callback interface for read() and close() methods, using the default format (16 kHz, 16 bit, mono PCM).

public static Microsoft.CognitiveServices.Speech.Audio.PullAudioInputStream CreatePullStream (Microsoft.CognitiveServices.Speech.Audio.PullAudioInputStreamCallback callback);
static member CreatePullStream : Microsoft.CognitiveServices.Speech.Audio.PullAudioInputStreamCallback -> Microsoft.CognitiveServices.Speech.Audio.PullAudioInputStream
Public Shared Function CreatePullStream (callback As PullAudioInputStreamCallback) As PullAudioInputStream

Parameters

callback
PullAudioInputStreamCallback

The custom audio input object, derived from PullAudioInputStreamCallback

Returns

The pull audio input stream being created.

Remarks

See also: About the Speech SDK audio input stream API

Applies to

CreatePullStream(PullAudioInputStreamCallback, AudioStreamFormat)

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

public static Microsoft.CognitiveServices.Speech.Audio.PullAudioInputStream CreatePullStream (Microsoft.CognitiveServices.Speech.Audio.PullAudioInputStreamCallback callback, Microsoft.CognitiveServices.Speech.Audio.AudioStreamFormat format);
static member CreatePullStream : Microsoft.CognitiveServices.Speech.Audio.PullAudioInputStreamCallback * Microsoft.CognitiveServices.Speech.Audio.AudioStreamFormat -> Microsoft.CognitiveServices.Speech.Audio.PullAudioInputStream
Public Shared Function CreatePullStream (callback As PullAudioInputStreamCallback, format As AudioStreamFormat) As PullAudioInputStream

Parameters

callback
PullAudioInputStreamCallback

The custom audio input object, derived from PullAudioInputStreamCallback.

format
AudioStreamFormat

The data format of the audio returned from the callback's read() method.

Returns

The pull audio input stream being created.

Remarks

See also: Asynchronous Conversation Transcription

Applies to