PullAudioInputStreamCallback Class
An interface that defines callback methods for an audio input stream.
Derive from this class and implement its function to provide your own data as an audio input stream.
- Inheritance
-
builtins.objectPullAudioInputStreamCallback
Constructor
PullAudioInputStreamCallback()
Methods
close |
The callback that is called when the stream is closed. |
get_property | |
read |
This function is called to synchronously get data from the audio stream. The buffer returned by read() should not contain any audio header. |
close
The callback that is called when the stream is closed.
close() -> None
get_property
get_property(id: PropertyId) -> str
Parameters
Name | Description |
---|---|
id
Required
|
|
read
This function is called to synchronously get data from the audio stream. The buffer returned by read() should not contain any audio header.
read(buffer: memoryview) -> int
Parameters
Name | Description |
---|---|
buffer
Required
|
the buffer that audio data should be passed in. |
Returns
Type | Description |
---|---|
The number of bytes passed into the stream. |
Azure SDK for Python