StudioSound

public final class StudioSound


Entry point for creating StudioSoundClient instances.

The Studio Sound API provides on-device machine learning capabilities to isolate and separate individual audio components (such as speech, background noise, crowd noise, and music) from raw PCM audio streams.

Summary

Public methods

static StudioSoundClient

Creates a new instance of StudioSoundClient scoped to the given activity.

static StudioSoundClient

Creates a new instance of StudioSoundClient scoped to the given context.

Public methods

getClient

@RequiresApi(value = VERSION_CODES.O_MR1)
public static StudioSoundClient getClient(Activity activity)

Creates a new instance of StudioSoundClient scoped to the given activity.

If Google Play services needs to be installed or updated, a user-resolvable error dialog may be automatically presented to the user while this activity is in the foreground.

Parameters
Activity activity

the foreground Activity used to access Google Play services and display resolution dialogs

Returns
StudioSoundClient

a new StudioSoundClient instance

getClient

@RequiresApi(value = VERSION_CODES.O_MR1)
public static StudioSoundClient getClient(Context context)

Creates a new instance of StudioSoundClient scoped to the given context.

Parameters
Context context

the application or activity Context used to access Google Play services

Returns
StudioSoundClient

a new StudioSoundClient instance