PullAudioOutputStream Class
Represents memory backed pull audio output stream used for custom audio output.
- Inheritance
-
PullAudioOutputStream
Constructor
PullAudioOutputStream(handle: c_void_p | None = None)
Parameters
Name | Description |
---|---|
handle
|
default value: None
|
Methods
read |
Reads the audio data from stream and fill into the given buffer. The maximal number of bytes to be read is determined by the size of audio_buffer. If there is no data immediately available, ReadData() blocks until the next data becomes available. |
read
Reads the audio data from stream and fill into the given buffer. The maximal number of bytes to be read is determined by the size of audio_buffer. If there is no data immediately available, ReadData() blocks until the next data becomes available.
read(audio_buffer: bytes) -> int
Parameters
Name | Description |
---|---|
audio_buffer
Required
|
The buffer to receive the audio data. |
Returns
Type | Description |
---|---|
The number of bytes filled, or 0 in case the stream hits its end and there is no more data available. |
Azure SDK for Python
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for