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. |
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.
Azure SDK for Python