Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

PushAudioInputStream Class

Definition

Namespace:
Microsoft.CognitiveServices.Speech.Audio
Assembly:
Microsoft.CognitiveServices.Speech.csharp.dll
Package:
Microsoft.CognitiveServices.Speech v1.50.0

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
PushAudioInputStream

Constructors

Name Description
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

Name Description
isDisposing

Indicates whether the object is currently being disposed.

(Inherited from AudioInputStream)

Methods

Name Description
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


Feedback

Was this page helpful?