I have a github repo that i opened in jupyter lab.
The main file .py needs other files, it gives me error when i run it in jupyter cell.
# %load ML-SpeakerDiarization/speaker/demo/demo_diarization.py
from speaker.model.speaker_diarization import speaker_diarization
from speaker.utils.utils import read_wav
def todiarize(input):
fs, signal = read_wav(input)
n, cls, sp, z = speaker_diarization(fs, signal)
return {
'filename': z,
'nspeaker': n,
'sp': sp
}
if __name__=="__main__":
todiarize("C:\\Users\\OUKAJA\\Desktop\\oishi-master\\uploads\\1.wav")
The error is:
ModuleNotFoundError: No module named 'speaker'
but speaker is a dir with 3 nested folders and some py files in them, not 1 file.