Attention: This MediaPipe Solutions Preview is an early release. Learn more.

BaseAudioTaskApi

Stay organized with collections Save and categorize content based on your preferences.
public class BaseAudioTaskApi
Known Direct Subclasses

The base class of MediaPipe audio tasks.

Public Constructors

BaseAudioTaskApi(TaskRunner runner, RunningMode runningMode, String audioStreamName, String sampleRateStreamName)
Constructor to initialize a BaseAudioTaskApi.

Public Methods

void
close()
Closes and cleans up the MediaPipe audio task.

Inherited Methods

Public Constructors

public BaseAudioTaskApi (TaskRunner runner, RunningMode runningMode, String audioStreamName, String sampleRateStreamName)

Constructor to initialize a BaseAudioTaskApi.

Parameters
runner a TaskRunner.
runningMode a mediapipe audio task RunningMode.
audioStreamName the name of the input audio stream.
sampleRateStreamName the name of the audio sample rate stream.

Public Methods

public void close ()

Closes and cleans up the MediaPipe audio task.