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. |
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.
Azure SDK for Python