Cloud Speech V2 Client - Class SpeakerDiarizationConfig (1.12.0)

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

Configuration to enable speaker diarization.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ min_speaker_count int

Required. 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. To fix the number of speakers detected in the audio, set min_speaker_count = max_speaker_count.

↳ max_speaker_count int

Required. Maximum number of speakers in the conversation. Valid values are: 1-6. Must be >= min_speaker_count. This range gives you more flexibility by allowing the system to automatically determine the correct number of speakers.

getMinSpeakerCount

Required. 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.

To fix the number of speakers detected in the audio, set min_speaker_count = max_speaker_count.

Returns
TypeDescription
int

setMinSpeakerCount

Required. 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.

To fix the number of speakers detected in the audio, set min_speaker_count = max_speaker_count.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getMaxSpeakerCount

Required. Maximum number of speakers in the conversation. Valid values are: 1-6. Must be >= min_speaker_count. This range gives you more flexibility by allowing the system to automatically determine the correct number of speakers.

Returns
TypeDescription
int

setMaxSpeakerCount

Required. Maximum number of speakers in the conversation. Valid values are: 1-6. Must be >= min_speaker_count. This range gives you more flexibility by allowing the system to automatically determine the correct number of speakers.

Parameter
NameDescription
var int
Returns
TypeDescription
$this