DJRHails commited on
Commit
f316b2f
·
verified ·
1 Parent(s): 23ff06b

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +55 -0
README.md ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc0-1.0
3
+ task_categories:
4
+ - audio-classification
5
+ tags:
6
+ - speaker-embeddings
7
+ - speaker-recognition
8
+ - pyannote
9
+ ---
10
+
11
+ # Pre-computed speaker embeddings
12
+
13
+ Pre-computed 512-dim L2-normalized speaker embeddings extracted with
14
+ [`pyannote/embedding`](https://huggingface.co/pyannote/embedding) over
15
+ LibriSpeech train.100 + train.360 (1172 speakers via openslr/librispeech_asr). One utterance per speaker, minimum 3 s duration.
16
+
17
+ ## Contents
18
+
19
+ - `librispeech.pyannote-embedding.npz` — numpy `.npz` archive with:
20
+ - `embeddings`: `(3507, 512)` float32
21
+ - `speaker_ids`: `(3507,)` string IDs from the source corpus
22
+ - `metadata_json`: per-speaker metadata (accent / age / gender / source URL)
23
+ — populated for 1172 / 3507 speakers
24
+ - `n_speakers`, `source` for provenance
25
+
26
+ ## Loading
27
+
28
+ ```python
29
+ import numpy as np
30
+ data = np.load("librispeech.pyannote-embedding.npz", allow_pickle=True)
31
+ embeddings = data["embeddings"] # (N, 512)
32
+ speaker_ids = list(data["speaker_ids"]) # length N
33
+ ```
34
+
35
+ ## Regenerating
36
+
37
+ This file was produced by [`voxpath`](https://github.com/DJRHails/voxpath)
38
+ via:
39
+
40
+ ```bash
41
+ voxpath corpus build commonvoice --max-speakers 3507 \
42
+ --output librispeech.pyannote-embedding.npz
43
+ ```
44
+
45
+ `voxpath corpus build` streams the source audio, embeds each speaker's
46
+ first valid (≥ 3 s) utterance with `pyannote/embedding`, L2-normalises,
47
+ and writes the `.npz`.
48
+
49
+ ## Why model-specific
50
+
51
+ Speaker embeddings are not portable across embedders. A `wespeaker`
52
+ embedding and a `pyannote/embedding` embedding for the same audio lie
53
+ in different spaces and can't be compared or quantized together. This
54
+ repo is named after the embedding model so users can find the right
55
+ artifact for their pipeline at a glance.