PushAudioInputStream Class
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.
Represents memory backed push audio input stream used for custom audio input configurations.
public sealed class PushAudioInputStream : Microsoft.CognitiveServices.Speech.Audio.AudioInputStream
type PushAudioInputStream = class
inherit AudioInputStream
Public NotInheritable Class PushAudioInputStream
Inherits AudioInputStream
- Inheritance
Constructors
PushAudioInputStream() |
Creates a memory backed PushAudioInputStream using the default format (16 kHz, 16 bit, mono PCM). |
PushAudioInputStream(AudioStreamFormat) |
Creates a memory backed PushAudioInputStream with the specified audio format. |
Fields
isDisposing |
Indicates whether the object is currently being disposed. (Inherited from AudioInputStream) |
Methods
Close() |
Closes the stream. |
Dispose() |
Dispose of associated resources. (Inherited from AudioInputStream) |
Dispose(Boolean) |
This method performs cleanup of resources.
The Boolean parameter |
SetProperty(PropertyId, String) |
Set value of a property associated to data buffer. The properties of the audio data must be set before writing the audio data. Added in 1.5.0 |
SetProperty(String, String) |
Set value of a property associated to data buffer. The properties of the audio data mustt be set before writing the audio data. Added in 1.5.0 |
Write(Byte[], Int32) |
Writes the audio data specified by making an internal copy of the data. |
Write(Byte[]) |
Writes the audio data specified by making an internal copy of the data. Note: The dataBuffer must not contain an audio header. |