PullAudioInputStream Constructors
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
PullAudioInputStream(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). |
PullAudioInputStream(PullAudioInputStreamCallback, AudioStreamFormat) |
Creates a PullAudioInputStream that delegates to the specified callback interface for read() and close() methods. |
PullAudioInputStream(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 PullAudioInputStream(Microsoft.CognitiveServices.Speech.Audio.PullAudioInputStreamCallback callback);
new Microsoft.CognitiveServices.Speech.Audio.PullAudioInputStream : Microsoft.CognitiveServices.Speech.Audio.PullAudioInputStreamCallback -> Microsoft.CognitiveServices.Speech.Audio.PullAudioInputStream
Public Sub New (callback As PullAudioInputStreamCallback)
Parameters
- callback
- PullAudioInputStreamCallback
The custom audio input object, derived from PullAudioInputStreamCallback.
Applies to
PullAudioInputStream(PullAudioInputStreamCallback, AudioStreamFormat)
Creates a PullAudioInputStream that delegates to the specified callback interface for read() and close() methods.
public PullAudioInputStream(Microsoft.CognitiveServices.Speech.Audio.PullAudioInputStreamCallback callback, Microsoft.CognitiveServices.Speech.Audio.AudioStreamFormat format);
new Microsoft.CognitiveServices.Speech.Audio.PullAudioInputStream : Microsoft.CognitiveServices.Speech.Audio.PullAudioInputStreamCallback * Microsoft.CognitiveServices.Speech.Audio.AudioStreamFormat -> Microsoft.CognitiveServices.Speech.Audio.PullAudioInputStream
Public Sub New (callback As PullAudioInputStreamCallback, format As AudioStreamFormat)
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.
Remarks
See also: About the Speech SDK audio input stream API