다음을 통해 공유


AudioDataStream Class

Definition

Provides audio data as a stream. Added in 1.4.0

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

Remarks

See also: Get result as an in-memory stream

Properties

Properties

Contains properties of the audio data stream.

Methods

CanReadData(UInt32, UInt32)

Indicates whether the audio data stream can read the specified number of bytes, starting from a position offset from the first byte.

CanReadData(UInt32)

Indicates whether the audio data stream can read the specified number of bytes, starting from the current position of the stream.

DetachInput()

Stops any more data from reaching 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)

Gets the memory-backed audio data stream associated with a given keyword recognition result, set to the moment before the keyword was spoken.

FromResult(SpeechSynthesisResult)

Creates a memory-backed audio data stream using the specified synthesized speech.

FromWavFileInput(String)

Creates a memory-backed audio data stream using the specified audio file.

GetPosition()

Get current position of the audio data stream.

GetStatus()

Get current status of the audio data stream.

ReadData(Byte[])

Reads audio data from the current position in the audio data stream. Waits if no data is available.

ReadData(UInt32, Byte[])

Reads audio data from a specified position in the audio data stream. Waits if no data is available.

SaveToWaveFileAsync(String)

Saves the audio data to a file as an asynchronous operation.

SetPosition(UInt32)

Sets current position of the audio data stream.

Applies to