AudioTranscriptionTimestampGranularity Class

public final class AudioTranscriptionTimestampGranularity
extends ExpandableStringEnum<AudioTranscriptionTimestampGranularity>

Defines the timestamp granularities that can be requested on a verbose transcription response.

Field Summary

Modifier and Type Field and Description
static final AudioTranscriptionTimestampGranularity SEGMENT

Indicates that responses should include timing and other information about each transcribed audio segment.

static final AudioTranscriptionTimestampGranularity WORD

Indicates that responses should include timing information about each transcribed word.

Constructor Summary

Constructor Description
AudioTranscriptionTimestampGranularity()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of AudioTranscriptionTimestampGranularity value.

Method Summary

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

Creates or finds a AudioTranscriptionTimestampGranularity from its string representation.

static Collection<AudioTranscriptionTimestampGranularity> values()

Gets known AudioTranscriptionTimestampGranularity values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

SEGMENT

public static final AudioTranscriptionTimestampGranularity SEGMENT

Indicates that responses should include timing and other information about each transcribed audio segment. Audio segment timestamp information does not incur any additional latency.

WORD

public static final AudioTranscriptionTimestampGranularity WORD

Indicates that responses should include timing information about each transcribed word. Note that generating word timestamp information will incur additional response latency.

Constructor Details

AudioTranscriptionTimestampGranularity

@Deprecated
public AudioTranscriptionTimestampGranularity()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of AudioTranscriptionTimestampGranularity value.

Method Details

fromString

public static AudioTranscriptionTimestampGranularity fromString(String name)

Creates or finds a AudioTranscriptionTimestampGranularity from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding AudioTranscriptionTimestampGranularity.

values

public static Collection values()

Gets known AudioTranscriptionTimestampGranularity values.

Returns:

known AudioTranscriptionTimestampGranularity values.

Applies to