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 \ V2Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ native |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
SrtOutputFileFormatConfig
|
Returns | |
---|---|
Type | Description |
$this |