AudioInputStream.CreatePullStream Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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