Interface InlineResultOrBuilder (4.32.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
TypeDescription
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
TypeDescription
ByteString

The bytes for srtCaptions.

getTranscript()

public abstract BatchRecognizeResults getTranscript()

The transcript for the audio file.

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

Returns
TypeDescription
BatchRecognizeResults

The transcript.

getTranscriptOrBuilder()

public abstract BatchRecognizeResultsOrBuilder getTranscriptOrBuilder()

The transcript for the audio file.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for vttCaptions.

hasTranscript()

public abstract boolean hasTranscript()

The transcript for the audio file.

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

Returns
TypeDescription
boolean

Whether the transcript field is set.