Cloud Speech V1p1beta1 Client - Class SpeakerDiarizationConfig (1.10.0)

Reference documentation and code samples for the Cloud Speech V1p1beta1 Client class SpeakerDiarizationConfig.

Config to enable speaker diarization.

Generated from protobuf message google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ enable_speaker_diarization bool

If 'true', enables speaker detection for each recognized word in the top alternative of the recognition result using a speaker_tag provided in the WordInfo.

↳ min_speaker_count int

Minimum number of speakers in the conversation. This range gives you more flexibility by allowing the system to automatically determine the correct number of speakers. If not set, the default value is 2.

↳ max_speaker_count int

Maximum number of speakers in the conversation. This range gives you more flexibility by allowing the system to automatically determine the correct number of speakers. If not set, the default value is 6.

↳ speaker_tag int

Output only. Unused.

getEnableSpeakerDiarization

If 'true', enables speaker detection for each recognized word in the top alternative of the recognition result using a speaker_tag provided in the WordInfo.

Returns
TypeDescription
bool

setEnableSpeakerDiarization

If 'true', enables speaker detection for each recognized word in the top alternative of the recognition result using a speaker_tag provided in the WordInfo.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getMinSpeakerCount

Minimum number of speakers in the conversation. This range gives you more flexibility by allowing the system to automatically determine the correct number of speakers. If not set, the default value is 2.

Returns
TypeDescription
int

setMinSpeakerCount

Minimum number of speakers in the conversation. This range gives you more flexibility by allowing the system to automatically determine the correct number of speakers. If not set, the default value is 2.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getMaxSpeakerCount

Maximum number of speakers in the conversation. This range gives you more flexibility by allowing the system to automatically determine the correct number of speakers. If not set, the default value is 6.

Returns
TypeDescription
int

setMaxSpeakerCount

Maximum number of speakers in the conversation. This range gives you more flexibility by allowing the system to automatically determine the correct number of speakers. If not set, the default value is 6.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getSpeakerTag

Output only. Unused.

Returns
TypeDescription
int

setSpeakerTag

Output only. Unused.

Parameter
NameDescription
var int
Returns
TypeDescription
$this