# Cloud Speech-to-Text V1p1beta1 API - Class Google::Cloud::Speech::V1p1beta1::SpeakerDiarizationConfig (v0.30.0)

0.30.0 (latest) 0.29.1 0.28.0 0.27.1 0.26.0 0.25.0 0.24.1 0.23.0 0.22.0 0.21.1 0.20.2 0.19.0 0.18.1 0.17.1 0.16.0 0.15.3 0.14.0 0.13.0 0.12.4 Reference documentation and code samples for the Cloud Speech-to-Text V1p1beta1 API class Google::Cloud::Speech::V1p1beta1::SpeakerDiarizationConfig.

Config to enable speaker diarization.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #enable_speaker_diarization

    def enable_speaker_diarization() -> ::Boolean

**Returns**

- (::Boolean) --- If 'true', enables speaker detection for each recognized word in the top alternative of the recognition result using a speaker_label provided in the WordInfo.

### #enable_speaker_diarization=

    def enable_speaker_diarization=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- If 'true', enables speaker detection for each recognized word in the top alternative of the recognition result using a speaker_label provided in the WordInfo.
**Returns**

- (::Boolean) --- If 'true', enables speaker detection for each recognized word in the top alternative of the recognition result using a speaker_label provided in the WordInfo.

### #max_speaker_count

    def max_speaker_count() -> ::Integer

**Returns**

- (::Integer) --- 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.

### #max_speaker_count=

    def max_speaker_count=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- 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**

- (::Integer) --- 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.

### #min_speaker_count

    def min_speaker_count() -> ::Integer

**Returns**

- (::Integer) --- 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.

### #min_speaker_count=

    def min_speaker_count=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- 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**

- (::Integer) --- 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.

### #speaker_tag

    def speaker_tag() -> ::Integer

**Returns**

- (::Integer) --- Output only. Unused.