AudioInputStream.CreatePushStream 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
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.