Cloud Speech V2 Client - Class OutputFormatConfig (2.0.0)

Reference documentation and code samples for the Cloud Speech V2 Client class OutputFormatConfig.

Configuration for the format of the results stored to output.

Generated from protobuf message google.cloud.speech.v2.OutputFormatConfig

Namespace

Google \ Cloud \ Speech \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ nativeNativeOutputFileFormatConfig

Configuration for the native output format. If this field is set or if no other output format field is set, then transcripts will be written to the sink in the native format.

↳ vttVttOutputFileFormatConfig

Configuration for the VTT output format. If this field is set, then transcripts will be written to the sink in the VTT format.

↳ srtSrtOutputFileFormatConfig

Configuration for the SRT output format. If this field is set, then transcripts will be written to the sink in the SRT format.

getNative

Configuration for the native output format. If this field is set or if no other output format field is set, then transcripts will be written to the sink in the native format.

Returns
TypeDescription
NativeOutputFileFormatConfig|null

hasNative

clearNative

setNative

Configuration for the native output format. If this field is set or if no other output format field is set, then transcripts will be written to the sink in the native format.

Parameter
NameDescription
varNativeOutputFileFormatConfig
Returns
TypeDescription
$this

getVtt

Configuration for the VTT output format. If this field is set, then transcripts will be written to the sink in the VTT format.

Returns
TypeDescription
VttOutputFileFormatConfig|null

hasVtt

clearVtt

setVtt

Configuration for the VTT output format. If this field is set, then transcripts will be written to the sink in the VTT format.

Parameter
NameDescription
varVttOutputFileFormatConfig
Returns
TypeDescription
$this

getSrt

Configuration for the SRT output format. If this field is set, then transcripts will be written to the sink in the SRT format.

Returns
TypeDescription
SrtOutputFileFormatConfig|null

hasSrt

clearSrt

setSrt

Configuration for the SRT output format. If this field is set, then transcripts will be written to the sink in the SRT format.

Parameter
NameDescription
varSrtOutputFileFormatConfig
Returns
TypeDescription
$this