yinruiqing / pyannote-whisper

457 stars 72 forks source link

why diarize_text method take such a long time? #17

Closed Simon-chai closed 9 months ago

Simon-chai commented 9 months ago

image image

as i see the method is just doing some str merging job ,but it take much longer than i expected. i.e a 7-minutes long audio file which take 30s to be processed with whisper and pyannote models, but i take 70s to processed by diarize_text method! i have no idea why this happen. actually the variable diarization allready contain all the infomation we need, all we need to do is to concate it,right?

Simon-chai commented 9 months ago

forgive me(fresh man in python), i didn't notice that the asr operation is asynchronous. the time actually spent on asr