File size: 2,029 Bytes
5d2c0a9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Replication guide (Phase 1)
===========================

Environment
-----------
```bash
cd /Users/mathisescriva/Dataset-Education/FrenchEducationSpeech
python3 -m pip install -U yt-dlp tqdm pandas numpy soundfile webrtcvad pydub librosa orjson xxhash
```

IPU speech-only (recommended)
-----------------------------
```bash
python scripts/import_summre.py \
  --summre-root "/Users/mathisescriva/Downloads/summ-re-asru/1/SUMM-RE-sm" \
  --out-audio "audio/ipu_conferences" \
  --out-transcripts "transcripts_ipu" \
  --train-ratio 0.95
```
Output: audio/ipu_conferences/*.wav, transcripts_ipu/train.jsonl, valid.jsonl

VAD baseline (optional)
-----------------------
```bash
mkdir -p audio/source_copy
cp /Users/mathisescriva/Downloads/summ-re-asru/1/SUMM-RE-sm/audio_anonymized/*.wav audio/source_copy/
bash scripts/normalize.sh audio/source_copy
python scripts/segment_vad.py --indir audio/source_copy --outdir audio/source_copy --max-seconds 30
python scripts/build_metadata.py --audioroot audio/source_copy --outdir transcripts --train-ratio 0.95
```

Open sources ingestion (per URL with open license)
--------------------------------------------------
1) Add to sources.csv:
```
url,category,domain,expected_role,license,license_url,notes
https://.../video,conferences,education,teacher,CC-BY,https://...,Page shows CC-BY
```
2) Process:
```bash
python scripts/download.py --catalog sources.csv --outdir audio
bash scripts/normalize.sh audio
python scripts/segment_vad.py --indir audio --outdir audio --max-seconds 30
python scripts/build_metadata.py --audioroot audio --outdir transcripts --train-ratio 0.95
```

Balance check
-------------
```bash
python scripts/check_balance.py --jsonl transcripts/train.jsonl --targets conferences=0.4 podcasts=0.2 meetings=0.2 interviews=0.1
```

Merging splits (example)
------------------------
```bash
cat transcripts/train.jsonl transcripts_ipu/train.jsonl > transcripts/train_all.jsonl
cat transcripts/valid.jsonl transcripts_ipu/valid.jsonl > transcripts/valid_all.jsonl
```