AudioDataStream Class
Definition
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.
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) |
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. |
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
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기