PushAudioInputStream Class
Represents memory backed push audio input stream used for custom audio input configurations.
- Inheritance
-
PushAudioInputStream
Constructor
PushAudioInputStream(stream_format: AudioStreamFormat | None = None)
Parameters
Name | Description |
---|---|
stream_format
|
The AudioStreamFormat the stream uses for audio data. Default value: None
|
Methods
close |
Closes the stream. |
set_property | |
write |
Writes the audio data specified by making an internal copy of the data. The buffer should not contain any audio header. |
close
Closes the stream.
close()
set_property
set_property(name: str, value: str)
Parameters
Name | Description |
---|---|
name
Required
|
|
value
Required
|
|
write
Writes the audio data specified by making an internal copy of the data. The buffer should not contain any audio header.
write(buffer: bytes)
Parameters
Name | Description |
---|---|
buffer
Required
|
The audio data. |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Python