first commit

main
Gasper Spagnolo 2022-09-18 20:51:37 +02:00
commit 04df3e80bf
3 changed files with 10 additions and 0 deletions

10
main.py Normal file
View File

@ -0,0 +1,10 @@
# load the pipeline from Hugginface Hub
from pyannote.audio import Pipeline
pipeline = Pipeline.from_pretrained("pyannote/speaker-diarization@2022.07")
# apply the pipeline to an audio file
diarization = pipeline("f24122a7f35de434d996.ogg", min_speakers=3, max_speakers=9)
# dump the diarization output to disk using RTTM format
with open("audio.rttm", "w") as rttm:
diarization.write_rttm(rttm)

Binary file not shown.

BIN
samples/mini.ogg Normal file

Binary file not shown.