mp.tasks.components.containers.AudioData

MediaPipe Tasks' audio container.

buffer_length the length of the audio buffer.
audio_format the audio format metadata.

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

View source

Clears the internal buffer and fill it with zeros.

create_from_array

View source