Class: Google::Cloud::Speech::V2::SpeakerDiarizationConfig
- Inherits:
-
Object
- Object
- Google::Cloud::Speech::V2::SpeakerDiarizationConfig
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/speech/v2/cloud_speech.rb
Overview
Configuration to enable speaker diarization.
Instance Attribute Summary collapse
-
#max_speaker_count ⇒ ::Integer
Required.
-
#min_speaker_count ⇒ ::Integer
Required.
Instance Attribute Details
#max_speaker_count ⇒ ::Integer
Returns 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.
466 467 468 469 |
# File 'proto_docs/google/cloud/speech/v2/cloud_speech.rb', line 466 class SpeakerDiarizationConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#min_speaker_count ⇒ ::Integer
Returns 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
.
466 467 468 469 |
# File 'proto_docs/google/cloud/speech/v2/cloud_speech.rb', line 466 class SpeakerDiarizationConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |