AudioDataStream Class

Definition

Represents audio data stream used for operating audio data as a stream. Added in version 1.4.0

public class AudioDataStream : IDisposable
type AudioDataStream = class
    interface IDisposable
Public Class AudioDataStream
Implements IDisposable
Inheritance
AudioDataStream
Implements

Properties

Properties

Contains properties of the audio data stream.

Methods

CanReadData(UInt32)

Check whether the stream has enough data to be read.

CanReadData(UInt32, UInt32)

Check whether the stream has enough data to be read, starting from the specified position.

DetachInput()

Stops any more data from getting to the stream.

Dispose()

Dispose of associated resources.

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.

FromResult(KeywordRecognitionResult)

Obtains the memory backed AudioDataStream associated with a given KeywordRecognition result.

FromResult(SpeechSynthesisResult)

Creates a memory backed AudioDataStream from given speech synthesis result.

GetPosition()

Get current position of the audio data stream.

GetStatus()

Get current status of the audio data stream.

ReadData(Byte[])

Reads the audio data from the audio data stream. The maximal number of bytes to be read is determined by the size of buffer. If there is no data immediately available, ReadData() blocks until the next data becomes available.

ReadData(UInt32, Byte[])

Reads the audio data from the audio data stream, starting from the specified position. The maximal number of bytes to be read is determined by the size of buffer. If there is no data immediately available, ReadData() blocks until the next data becomes available.

SaveToWaveFileAsync(String)

Save the audio data to a file, asynchronously.

SetPosition(UInt32)

Set current position of the audio data stream.

Applies to