共用方式為


AudioTaskLabel Class

public final class AudioTaskLabel
extends ExpandableStringEnum<AudioTaskLabel>

Defines the possible descriptors for available audio operation responses.

Field Summary

Modifier and Type Field and Description
static final AudioTaskLabel TRANSCRIBE

Accompanying response data resulted from an audio transcription task.

static final AudioTaskLabel TRANSLATE

Accompanying response data resulted from an audio translation task.

Constructor Summary

Constructor Description
AudioTaskLabel()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of AudioTaskLabel value.

Method Summary

Modifier and Type Method and Description
static AudioTaskLabel fromString(String name)

Creates or finds a AudioTaskLabel from its string representation.

static Collection<AudioTaskLabel> values()

Gets known AudioTaskLabel values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

TRANSCRIBE

public static final AudioTaskLabel TRANSCRIBE

Accompanying response data resulted from an audio transcription task.

TRANSLATE

public static final AudioTaskLabel TRANSLATE

Accompanying response data resulted from an audio translation task.

Constructor Details

AudioTaskLabel

@Deprecated
public AudioTaskLabel()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of AudioTaskLabel value.

Method Details

fromString

public static AudioTaskLabel fromString(String name)

Creates or finds a AudioTaskLabel from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding AudioTaskLabel.

values

public static Collection values()

Gets known AudioTaskLabel values.

Returns:

known AudioTaskLabel values.

Applies to