Attend the Women in ML Symposium on December 7 Register now

TfLiteAudio

public class TfLiteAudio

Entry point for the TensorFlow Lite (TFLite) Tasks Audio API provided by Google Play services.

Public Methods

static
initialize(Context context)
Initializes the TFLite Tasks Audio API.
static
initialize(Context context, TfLiteInitializationOptions options)
Initializes the TFLite Tasks Audio API with the specified options.
static boolean
isInitialized()
Returns whether the TFLite Tasks Audio API has already been successfully initialized.

Inherited Methods

Public Methods

public static initialize (Context context)

Initializes the TFLite Tasks Audio API. TFLite Tasks Audio API methods should only be called after the task returned by this method has successfully completed.

This method returns a Task<Void>, so you should wait for the task to be completed, but the return value of the Task is irrelevant.

Parameters
context

public static initialize (Context context, TfLiteInitializationOptions options)

Initializes the TFLite Tasks Audio API with the specified options. TFLite Tasks Audio API methods should only be called after the task returned by this method has successfully completed.

This method returns a Task<Void>, so you should wait for the task to be completed, but the return value of the Task is irrelevant.

Parameters
context
options

public static boolean isInitialized ()

Returns whether the TFLite Tasks Audio API has already been successfully initialized.