File size: 370 Bytes
f1ef7e2
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
class ProductionDiarizer:
    def __init__(self, auth_token: str = ""):
        self.auth_token = auth_token

    def separate_speakers(self, audio_path: str):
        # Wraps production pyannote clusters processing
        return [
            {"speaker": "Speaker 0", "start": 0.0, "end": 2.5},
            {"speaker": "Speaker 1", "start": 2.5, "end": 6.8}
        ]