PushAudioOutputStreamCallback Class
An interface that defines callback methods for an audio output stream.
Derive from this class and implement its function to provide your own data as an audio output stream.
Constructor
PushAudioOutputStreamCallback()
Methods
close |
The callback that is called when the stream is closed. |
write |
This function is called to synchronously write data to the audio stream. |
close
The callback that is called when the stream is closed.
close() -> None
write
This function is called to synchronously write data to the audio stream.
write(audio_buffer: memoryview) -> int
Parameters
Name | Description |
---|---|
audio_buffer
Required
|
the buffer that audio data should be passed in. |
Returns
Type | Description |
---|---|
The number of bytes passed into the stream. |
Совместная работа с нами на GitHub
Источник этого содержимого можно найти на GitHub, где также можно создавать и просматривать проблемы и запросы на вытягивание. Дополнительные сведения см. в нашем руководстве для участников.
Azure SDK for Python