tyiannak / pyAudioAnalysis

Python Audio Analysis Library: Feature Extraction, Classification, Segmentation and Applications
Apache License 2.0
5.83k stars 1.19k forks source link

how to get offsettime of speakers in speakerDiarization #369

Open zefaridator opened 2 years ago

zefaridator commented 2 years ago

Hello How is it possible to retrieve the offset of speakers change detection from the call to audioSegmentation.py with speaker_diarization ?

def speakerDiarizationWrapper(inputFile, numSpeakers, useLDA):
    if useLDA:
       aS.speaker_diarization(inputFile, numSpeakers, lda_dim=5, plot_res=True)

    else:
       aS.speaker_diarization(inputFile, numSpeakers, lda_dim=0, plot_res=True)

Thank you !