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.
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. If not set, the default value is 2. 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. If not set, the default value is 2.
To fix the number of speakers detected in the audio, set min_speaker_count
= max_speaker_count
.
Generated from protobuf field int32 min_speaker_count = 2 [(.google.api.field_behavior) = REQUIRED];
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. If not set, the default value is 2.
To fix the number of speakers detected in the audio, set min_speaker_count
= max_speaker_count
.
Generated from protobuf field int32 min_speaker_count = 2 [(.google.api.field_behavior) = REQUIRED];
var
int
$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.
Generated from protobuf field int32 max_speaker_count = 3 [(.google.api.field_behavior) = REQUIRED];
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.
Generated from protobuf field int32 max_speaker_count = 3 [(.google.api.field_behavior) = REQUIRED];
var
int
$this