Class: Google::Apis::SpeechV1p1beta1::SpeakerDiarizationConfig
- Inherits:
-
Object
- Object
- Google::Apis::SpeechV1p1beta1::SpeakerDiarizationConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/speech_v1p1beta1/classes.rb,
generated/google/apis/speech_v1p1beta1/representations.rb,
generated/google/apis/speech_v1p1beta1/representations.rb
Instance Attribute Summary collapse
-
#enable_speaker_diarization ⇒ Boolean
(also: #enable_speaker_diarization?)
Optional If 'true', enables speaker detection for each recognized word in the top alternative of the recognition result using a speaker_tag provided in the WordInfo.
-
#max_speaker_count ⇒ Fixnum
Optional Only used if diarization_speaker_count is not set.
-
#min_speaker_count ⇒ Fixnum
Optional Only used if diarization_speaker_count is not set.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SpeakerDiarizationConfig
constructor
A new instance of SpeakerDiarizationConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SpeakerDiarizationConfig
Returns a new instance of SpeakerDiarizationConfig
638 639 640 |
# File 'generated/google/apis/speech_v1p1beta1/classes.rb', line 638 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enable_speaker_diarization ⇒ Boolean Also known as: enable_speaker_diarization?
Optional If 'true', enables speaker detection for each recognized word in
the top alternative of the recognition result using a speaker_tag provided
in the WordInfo.
Corresponds to the JSON property enableSpeakerDiarization
619 620 621 |
# File 'generated/google/apis/speech_v1p1beta1/classes.rb', line 619 def enable_speaker_diarization @enable_speaker_diarization end |
#max_speaker_count ⇒ Fixnum
Optional Only used if diarization_speaker_count is not set.
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.
Corresponds to the JSON property maxSpeakerCount
628 629 630 |
# File 'generated/google/apis/speech_v1p1beta1/classes.rb', line 628 def max_speaker_count @max_speaker_count end |
#min_speaker_count ⇒ Fixnum
Optional Only used if diarization_speaker_count is not set.
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.
Corresponds to the JSON property minSpeakerCount
636 637 638 |
# File 'generated/google/apis/speech_v1p1beta1/classes.rb', line 636 def min_speaker_count @min_speaker_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
643 644 645 646 647 |
# File 'generated/google/apis/speech_v1p1beta1/classes.rb', line 643 def update!(**args) @enable_speaker_diarization = args[:enable_speaker_diarization] if args.key?(:enable_speaker_diarization) @max_speaker_count = args[:max_speaker_count] if args.key?(:max_speaker_count) @min_speaker_count = args[:min_speaker_count] if args.key?(:min_speaker_count) end |