Reference documentation and code samples for the Cloud Speech-to-Text V2 API class Google::Cloud::Speech::V2::SpeakerDiarizationConfig.
Configuration to enable speaker diarization.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#max_speaker_count
defmax_speaker_count()->::Integer
Returns
(::Integer) — Required. Maximum number of speakers in the conversation. Valid values are:
1-6. Must be >= min_speaker_count. This range gives you more flexibility
by allowing the system to automatically determine the correct number of
speakers.
#max_speaker_count=
defmax_speaker_count=(value)->::Integer
Parameter
value (::Integer) — Required. Maximum number of speakers in the conversation. Valid values are:
1-6. Must be >= min_speaker_count. This range gives you more flexibility
by allowing the system to automatically determine the correct number of
speakers.
Returns
(::Integer) — Required. Maximum number of speakers in the conversation. Valid values are:
1-6. Must be >= min_speaker_count. This range gives you more flexibility
by allowing the system to automatically determine the correct number of
speakers.
#min_speaker_count
defmin_speaker_count()->::Integer
Returns
(::Integer) — Required. 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.
To fix the number of speakers detected in the audio, set
min_speaker_count = max_speaker_count.
#min_speaker_count=
defmin_speaker_count=(value)->::Integer
Parameter
value (::Integer) — Required. 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.
To fix the number of speakers detected in the audio, set
min_speaker_count = max_speaker_count.
Returns
(::Integer) — Required. 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.
To fix the number of speakers detected in the audio, set
min_speaker_count = max_speaker_count.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud Speech-to-Text V2 API - Class Google::Cloud::Speech::V2::SpeakerDiarizationConfig (v1.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.1 (latest)](/ruby/docs/reference/google-cloud-speech-v2/latest/Google-Cloud-Speech-V2-SpeakerDiarizationConfig)\n- [1.2.0](/ruby/docs/reference/google-cloud-speech-v2/1.2.0/Google-Cloud-Speech-V2-SpeakerDiarizationConfig)\n- [1.1.0](/ruby/docs/reference/google-cloud-speech-v2/1.1.0/Google-Cloud-Speech-V2-SpeakerDiarizationConfig)\n- [1.0.1](/ruby/docs/reference/google-cloud-speech-v2/1.0.1/Google-Cloud-Speech-V2-SpeakerDiarizationConfig)\n- [0.16.0](/ruby/docs/reference/google-cloud-speech-v2/0.16.0/Google-Cloud-Speech-V2-SpeakerDiarizationConfig)\n- [0.15.0](/ruby/docs/reference/google-cloud-speech-v2/0.15.0/Google-Cloud-Speech-V2-SpeakerDiarizationConfig)\n- [0.14.0](/ruby/docs/reference/google-cloud-speech-v2/0.14.0/Google-Cloud-Speech-V2-SpeakerDiarizationConfig)\n- [0.13.1](/ruby/docs/reference/google-cloud-speech-v2/0.13.1/Google-Cloud-Speech-V2-SpeakerDiarizationConfig)\n- [0.12.0](/ruby/docs/reference/google-cloud-speech-v2/0.12.0/Google-Cloud-Speech-V2-SpeakerDiarizationConfig)\n- [0.11.0](/ruby/docs/reference/google-cloud-speech-v2/0.11.0/Google-Cloud-Speech-V2-SpeakerDiarizationConfig)\n- [0.10.0](/ruby/docs/reference/google-cloud-speech-v2/0.10.0/Google-Cloud-Speech-V2-SpeakerDiarizationConfig)\n- [0.9.2](/ruby/docs/reference/google-cloud-speech-v2/0.9.2/Google-Cloud-Speech-V2-SpeakerDiarizationConfig)\n- [0.8.0](/ruby/docs/reference/google-cloud-speech-v2/0.8.0/Google-Cloud-Speech-V2-SpeakerDiarizationConfig)\n- [0.7.0](/ruby/docs/reference/google-cloud-speech-v2/0.7.0/Google-Cloud-Speech-V2-SpeakerDiarizationConfig)\n- [0.6.0](/ruby/docs/reference/google-cloud-speech-v2/0.6.0/Google-Cloud-Speech-V2-SpeakerDiarizationConfig)\n- [0.5.1](/ruby/docs/reference/google-cloud-speech-v2/0.5.1/Google-Cloud-Speech-V2-SpeakerDiarizationConfig)\n- [0.4.0](/ruby/docs/reference/google-cloud-speech-v2/0.4.0/Google-Cloud-Speech-V2-SpeakerDiarizationConfig)\n- [0.3.0](/ruby/docs/reference/google-cloud-speech-v2/0.3.0/Google-Cloud-Speech-V2-SpeakerDiarizationConfig)\n- [0.2.0](/ruby/docs/reference/google-cloud-speech-v2/0.2.0/Google-Cloud-Speech-V2-SpeakerDiarizationConfig)\n- [0.1.0](/ruby/docs/reference/google-cloud-speech-v2/0.1.0/Google-Cloud-Speech-V2-SpeakerDiarizationConfig) \nReference documentation and code samples for the Cloud Speech-to-Text V2 API class Google::Cloud::Speech::V2::SpeakerDiarizationConfig.\n\nConfiguration to enable speaker diarization. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #max_speaker_count\n\n def max_speaker_count() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Required. Maximum number of speakers in the conversation. Valid values are: 1-6. Must be \\\u003e= `min_speaker_count`. This range gives you more flexibility by allowing the system to automatically determine the correct number of speakers.\n\n### #max_speaker_count=\n\n def max_speaker_count=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- Required. Maximum number of speakers in the conversation. Valid values are: 1-6. Must be \\\u003e= `min_speaker_count`. This range gives you more flexibility by allowing the system to automatically determine the correct number of speakers. \n**Returns**\n\n- (::Integer) --- Required. Maximum number of speakers in the conversation. Valid values are: 1-6. Must be \\\u003e= `min_speaker_count`. This range gives you more flexibility by allowing the system to automatically determine the correct number of speakers.\n\n### #min_speaker_count\n\n def min_speaker_count() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Required. 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.\n\n To fix the number of speakers detected in the audio, set\n `min_speaker_count` = `max_speaker_count`.\n\n### #min_speaker_count=\n\n def min_speaker_count=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- Required. 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.\n\n\n To fix the number of speakers detected in the audio, set\n`min_speaker_count` = `max_speaker_count`. \n**Returns**\n\n- (::Integer) --- Required. 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.\n\n To fix the number of speakers detected in the audio, set\n `min_speaker_count` = `max_speaker_count`."]]