AudioDataStream Class
Definition
Provides 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
Remarks
See also: Get result as an in-memory stream
Properties
Properties |
Contains properties of the audio data stream. |
Methods
CanReadData(UInt32) |
Indicates whether the audio data stream can read the specified number of bytes, starting from the current position of the stream. |
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. |
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 |
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. Added in version 1.14.0 |
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. |