Cloud Speech V2 Client - Class SpeakerDiarizationConfig (1.18.3)

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

Namespace

Google \ Cloud \ Speech \ V2

Methods

__construct

Constructor.

Parameters
Name Description
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
Type Description
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
Name Description
var int
Returns
Type Description
$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
Type Description
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
Name Description
var int
Returns
Type Description
$this