Compartir a través de


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.