Cloud Speech-to-Text V1p1beta1 API - Class Google::Cloud::Speech::V1p1beta1::SpeakerDiarizationConfig (v0.17.1)

Reference documentation and code samples for the Cloud Speech-to-Text V1p1beta1 API class Google::Cloud::Speech::V1p1beta1::SpeakerDiarizationConfig.

Config to enable speaker diarization.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#enable_speaker_diarization

def enable_speaker_diarization() -> ::Boolean
Returns
  • (::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.

#enable_speaker_diarization=

def enable_speaker_diarization=(value) -> ::Boolean
Parameter
  • value (::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.
Returns
  • (::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

def max_speaker_count() -> ::Integer
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.

#max_speaker_count=

def max_speaker_count=(value) -> ::Integer
Parameter
  • value (::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.
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.

#min_speaker_count

def min_speaker_count() -> ::Integer
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.

#min_speaker_count=

def min_speaker_count=(value) -> ::Integer
Parameter
  • value (::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.
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.

#speaker_tag

def speaker_tag() -> ::Integer
Returns
  • (::Integer) — Output only. Unused.