Diarization

class oci.ai_speech.models.Diarization(**kwargs)

Bases: object

Speaker diarization is a combination of speaker segmentation and speaker clustering. Provide diarization details to enable this feature.

Methods:

__init__(**kwargs)

Initializes a new Diarization object with values from keyword arguments.

Attributes:

is_diarization_enabled

Gets the is_diarization_enabled of this Diarization.

number_of_speakers

Gets the number_of_speakers of this Diarization.

__init__(**kwargs)

Initializes a new Diarization object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • is_diarization_enabled (bool) – The value to assign to the is_diarization_enabled property of this Diarization.

  • number_of_speakers (int) – The value to assign to the number_of_speakers property of this Diarization.

property is_diarization_enabled

Gets the is_diarization_enabled of this Diarization. Set true to enable Speaker diarization and tag transcription with speaker tags. By default this is disabled.

Returns

The is_diarization_enabled of this Diarization.

Return type

bool

property number_of_speakers

Gets the number_of_speakers of this Diarization. Number of speakers in the audio provided. By default service will auto detect all speakers in audio file

Returns

The number_of_speakers of this Diarization.

Return type

int