View source on GitHub |
MediaPipe Tasks' audio container.
mp.tasks.components.containers.AudioData(
buffer_length: int,
audio_format: mp.tasks.components.containers.AudioDataFormat
= AudioDataFormat()
) -> None
Args | |
---|---|
buffer_length
|
the length of the audio buffer. |
audio_format
|
the audio format metadata. |
Attributes | |
---|---|
audio_format
|
Gets the audio format of the audio. |
buffer
|
Gets the internal buffer. |
buffer_length
|
Gets the sample count of the audio. |
Methods
clear
clear()
Clears the internal buffer and fill it with zeros.
create_from_array