Cloud Speech V2 Client - Class OutputFormatConfig (1.18.2)

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
Name Description
data array

Optional. Data for populating the Message object.

↳ native Google\Cloud\Speech\V2\NativeOutputFileFormatConfig

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.

↳ vtt Google\Cloud\Speech\V2\VttOutputFileFormatConfig

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

↳ srt Google\Cloud\Speech\V2\SrtOutputFileFormatConfig

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
Type Description
Google\Cloud\Speech\V2\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
Name Description
var Google\Cloud\Speech\V2\NativeOutputFileFormatConfig
Returns
Type Description
$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
Type Description
Google\Cloud\Speech\V2\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
Name Description
var Google\Cloud\Speech\V2\VttOutputFileFormatConfig
Returns
Type Description
$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
Type Description
Google\Cloud\Speech\V2\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
Name Description
var Google\Cloud\Speech\V2\SrtOutputFileFormatConfig
Returns
Type Description
$this