Class: Google::Cloud::Speech::V1::SpeakerDiarizationConfig

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/speech/v1/cloud_speech.rb

Overview

Config to enable speaker diarization.

Instance Attribute Summary collapse

Instance Attribute Details

#enable_speaker_diarization::Boolean

Returns 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.



457
458
459
460
# File 'proto_docs/google/cloud/speech/v1/cloud_speech.rb', line 457

class SpeakerDiarizationConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#max_speaker_count::Integer

Returns 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.



457
458
459
460
# File 'proto_docs/google/cloud/speech/v1/cloud_speech.rb', line 457

class SpeakerDiarizationConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#min_speaker_count::Integer

Returns 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.



457
458
459
460
# File 'proto_docs/google/cloud/speech/v1/cloud_speech.rb', line 457

class SpeakerDiarizationConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#speaker_tag::Integer (readonly)

Deprecated.

This field is deprecated and may be removed in the next major version update.

Returns Output only. Unused.

Returns:

  • (::Integer)

    Output only. Unused.



457
458
459
460
# File 'proto_docs/google/cloud/speech/v1/cloud_speech.rb', line 457

class SpeakerDiarizationConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end