Udostępnij za pośrednictwem


PushAudioInputStream Class

Definition

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
PushAudioInputStream

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 disposing indicates whether the method is called from Dispose() (if disposing is true) or from the finalizer (if disposing is false). Derived classes should override this method to dispose resource if needed.

(Inherited from AudioInputStream)
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.

Applies to