bnosac / audio.whisper

Transcribe audio files using the "Whisper" Automatic Speech Recognition model from R
Other
118 stars 13 forks source link

Add diarization #28

Closed jwijffels closed 8 months ago

jwijffels commented 8 months ago

Code as

if (params.diarize && pcmf32s.size() == 2) {
            speaker = estimate_diarization_speaker(pcmf32s, t0, t1, true);
        }else{
            speaker = "";
        }     
        transcriptions_speaker[i] = speaker;  
jwijffels commented 8 months ago

Included in commit https://github.com/bnosac/audio.whisper/commit/b819432aa891a1092fc73819f5a1d557461dbb83