File size: 401 Bytes
4ba35bc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
"""
Abstract class for diarization
"""

import matplotlib.pyplot as plt

from abc import ABC, abstractmethod


class Diarizer(ABC):
    """
    Diarizer base class
    """

    @abstractmethod
    def get_diarization_figure(self) -> plt.gcf:
        """
        Function that returns the audio plot with diarization segmentations
        Returns:
            plt.gcf: the diarization plot
        """