MEscriva commited on
Commit
d183dab
·
verified ·
1 Parent(s): 7d3f53d

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +102 -0
README.md ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ tags:
4
+ - audio
5
+ - speaker-diarization
6
+ - pyannote
7
+ - diarization
8
+ - speech
9
+ library_name: pyannote
10
+ pipeline_tag: audio-classification
11
+ ---
12
+
13
+ # Gilbert - Modèle pyannote Diarisation
14
+
15
+ Modèle de diarisation de locuteurs basé sur pyannote.audio pour le projet Gilbert.
16
+
17
+ ## Description
18
+
19
+ Ce modèle utilise pyannote.audio pour la diarisation de locuteurs (identification et segmentation des locuteurs dans un audio).
20
+
21
+ ## Modèles supportés
22
+
23
+ - `pyannote/speaker-diarization-3.1` (par défaut)
24
+ - `pyannote/speaker-diarization-community-1`
25
+ - `pyannote/speaker-diarization-precision-2` (nécessite API key pyannoteAI)
26
+
27
+ ## Utilisation
28
+
29
+ ### Avec Python
30
+
31
+ ```python
32
+ from pyannote.audio import Pipeline
33
+ import torch
34
+
35
+ # Charger le pipeline
36
+ pipeline = Pipeline.from_pretrained(
37
+ "pyannote/speaker-diarization-3.1",
38
+ use_auth_token="YOUR_HF_TOKEN"
39
+ )
40
+
41
+ # Diariser un fichier audio
42
+ diarization = pipeline("audio.wav")
43
+
44
+ # Parcourir les segments
45
+ for turn, _, speaker in diarization.itertracks(yield_label=True):
46
+ print(f"Speaker {speaker}: {turn.start:.2f}s - {turn.end:.2f}s")
47
+ ```
48
+
49
+ ### Avec le script fourni
50
+
51
+ ```bash
52
+ python diarization_pyannote_demo.py audio.wav --model pyannote/speaker-diarization-3.1
53
+ ```
54
+
55
+ ## Paramètres
56
+
57
+ - `num_speakers`: Nombre exact de locuteurs (si connu)
58
+ - `min_speakers`: Nombre minimum de locuteurs
59
+ - `max_speakers`: Nombre maximum de locuteurs
60
+ - `exclusive`: Utiliser exclusive_speaker_diarization (Community-1+)
61
+
62
+ ## Format de sortie
63
+
64
+ Le modèle génère des fichiers au format :
65
+ - **RTTM** : Format standard Rich Transcription Time Marked
66
+ - **JSON** : Segments avec `{"speaker": "SPEAKER_00", "start": 0.0, "end": 3.25}`
67
+
68
+ ## Performance
69
+
70
+ Les modèles pyannote offrent d'excellentes performances pour la diarisation :
71
+ - **Community-1** : Meilleures performances générales
72
+ - **3.1** : Version stable et éprouvée
73
+ - **Precision-2** : Haute précision (nécessite API key)
74
+
75
+ ## Installation
76
+
77
+ ```bash
78
+ pip install pyannote.audio pyannote.core
79
+ ```
80
+
81
+ ## Configuration
82
+
83
+ Pour utiliser les modèles pyannote, vous devez :
84
+ 1. Créer un compte Hugging Face
85
+ 2. Accepter les conditions d'utilisation des modèles
86
+ 3. Générer un token d'accès
87
+ 4. Configurer le token : `export HF_TOKEN="votre_token"`
88
+
89
+ ## Projet Gilbert
90
+
91
+ Ce modèle fait partie du projet **Gilbert**, un assistant de réunions qui génère des rapports structurés à partir de transcriptions audio.
92
+
93
+ ## Licence
94
+
95
+ MIT
96
+
97
+ ## Références
98
+
99
+ - [pyannote.audio](https://github.com/pyannote/pyannote-audio)
100
+ - [Documentation pyannote](https://pyannote.github.io/pyannote-audio/)
101
+ - [Modèles Hugging Face](https://huggingface.co/pyannote)
102
+