Interface InlineResultOrBuilder (4.38.0)

public interface InlineResultOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getSrtCaptions()

public abstract String getSrtCaptions()

The transcript for the audio file as SRT formatted captions. This is populated only when SRT output is requested.

string srt_captions = 3;

Returns
Type Description
String

The srtCaptions.

getSrtCaptionsBytes()

public abstract ByteString getSrtCaptionsBytes()

The transcript for the audio file as SRT formatted captions. This is populated only when SRT output is requested.

string srt_captions = 3;

Returns
Type Description
ByteString

The bytes for srtCaptions.

getTranscript()

public abstract BatchRecognizeResults getTranscript()

The transcript for the audio file.

.google.cloud.speech.v2.BatchRecognizeResults transcript = 1;

Returns
Type Description
BatchRecognizeResults

The transcript.

getTranscriptOrBuilder()

public abstract BatchRecognizeResultsOrBuilder getTranscriptOrBuilder()

The transcript for the audio file.

.google.cloud.speech.v2.BatchRecognizeResults transcript = 1;

Returns
Type Description
BatchRecognizeResultsOrBuilder

getVttCaptions()

public abstract String getVttCaptions()

The transcript for the audio file as VTT formatted captions. This is populated only when VTT output is requested.

string vtt_captions = 2;

Returns
Type Description
String

The vttCaptions.

getVttCaptionsBytes()

public abstract ByteString getVttCaptionsBytes()

The transcript for the audio file as VTT formatted captions. This is populated only when VTT output is requested.

string vtt_captions = 2;

Returns
Type Description
ByteString

The bytes for vttCaptions.

hasTranscript()

public abstract boolean hasTranscript()

The transcript for the audio file.

.google.cloud.speech.v2.BatchRecognizeResults transcript = 1;

Returns
Type Description
boolean

Whether the transcript field is set.