I have audio clips of people being interviewed and am trying to split the audio clips using python such that all speech segments of the interviewee are outputted in one audio file (eg .wav format) & that of the interviewer in another audio file. Speaker recognition needs to be performed using unsupervised learning.

So far I have found a few libraries that perform the speaker diarization task (pyAudioAnalysis, aalto-speech) but none that combine the different speaker segments and output it in separate audio files. How do I segment the audio files & combine them based on the speaker?

  • $\begingroup$ I did by detecting silence and splitting on silence.. library used was pydub . What was your solution? $\endgroup$ – Sandeep Bhutani Jan 17 at 13:25

Initially I did using silence detection but later moved to pyAudioAnalsis which is better.

Check "Speaker Diarization" section in Segmentation in pyAudioAnalysis

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.