class Google::Apis::SpeechV1p1beta1::SpeakerDiarizationConfig

Config to enable speaker diarization.

Attributes

enable_speaker_diarization[RW]

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` @return [Boolean]

enable_speaker_diarization?[RW]

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` @return [Boolean]

max_speaker_count[RW]

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` @return [Fixnum]

min_speaker_count[RW]

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` @return [Fixnum]

speaker_tag[RW]

Output only. Unused. Corresponds to the JSON property `speakerTag` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/speech_v1p1beta1/classes.rb, line 969
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/speech_v1p1beta1/classes.rb, line 974
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)
  @speaker_tag = args[:speaker_tag] if args.key?(:speaker_tag)
end