Class: Google::Cloud::Speech::V1::SpeakerDiarizationConfig
- Inherits:
-
Object
- Object
- Google::Cloud::Speech::V1::SpeakerDiarizationConfig
- 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
-
#enable_speaker_diarization ⇒ ::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.
-
#max_speaker_count ⇒ ::Integer
Maximum number of speakers in the conversation.
-
#min_speaker_count ⇒ ::Integer
Minimum number of speakers in the conversation.
-
#speaker_tag ⇒ ::Integer
readonly
Output only.
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_tag provided in the WordInfo.
444 445 446 447 |
# File 'proto_docs/google/cloud/speech/v1/cloud_speech.rb', line 444 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.
444 445 446 447 |
# File 'proto_docs/google/cloud/speech/v1/cloud_speech.rb', line 444 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.
444 445 446 447 |
# File 'proto_docs/google/cloud/speech/v1/cloud_speech.rb', line 444 class SpeakerDiarizationConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#speaker_tag ⇒ ::Integer (readonly)
Returns Output only. Unused.
444 445 446 447 |
# File 'proto_docs/google/cloud/speech/v1/cloud_speech.rb', line 444 class SpeakerDiarizationConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |