class Google::Apis::SpeechV1p1beta1::SpeakerDiarizationConfig
Config to enable speaker diarization.
Attributes
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]
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]
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]
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]
Output only. Unused. Corresponds to the JSON property `speakerTag` @return [Fixnum]
Public Class Methods
# File lib/google/apis/speech_v1p1beta1/classes.rb, line 969 def initialize(**args) update!(**args) end
Public Instance Methods
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