File size: 2,524 Bytes
a537997
 
 
 
 
 
 
 
 
 
45ce357
 
a537997
ccf829c
 
 
 
 
 
 
 
d552819
 
ccf829c
 
93dc43e
 
 
 
 
 
 
 
 
 
 
 
 
 
05cac32
93dc43e
05cac32
 
93dc43e
 
 
 
 
 
 
 
 
d552819
93dc43e
 
d552819
93dc43e
 
d552819
 
93dc43e
 
 
 
 
 
 
 
 
 
 
 
 
1d42547
93dc43e
 
470957d
93dc43e
 
 
 
 
 
 
 
 
 
 
1d42547
93dc43e
 
478bca7
93dc43e
 
 
 
 
 
 
 
 
 
 
ceb5ed3
 
 
b96f6b8
 
 
 
 
 
ceb5ed3
a537997
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
---
license: mit
task_categories:
- automatic-speech-recognition
- voice-activity-detection
language:
- en
pretty_name: TurnMaster
size_categories:
- 100K<n<1M
tags:
- endpointing
---
# Download
```bash
# Install huggingface_hub if needed
pip install huggingface_hub


# Download dataset
hf download turnmaster/TurnMaster --repo-type dataset --local-dir ./TurnMaster

cd TurnMaster
```

# Installation

```bash
pip install -r requirements.txt
```


# Project structure

```text
TurnMaster/
├── audio/
├── metadata/
├── processing/
│   ├── augment_taskmaster.py
│   ├── extract_shards.py
│   ├── curate_dataset.py
├── requirements.txt
└── README.md
```


# Extract shards


```bash
# Extract to custom directory
python TurnMaster_processing/extract_shards.py --sharded-dir ./ --output-dir Turnmaster_raw
```

# OPTIONAL: remove shards

```bash
Remove extracted shards (unecessary for the latter pre-processing)
rm -rf audio/
```

### OPTIONAL: create a curated version of the dataset. You can also skip this step and reuse the standart curated version of TurnMaster

```bash
# Extract from cached download
python extract_shards.py --sharded-dir ~/.cache/huggingface/hub/datasets--turnmaster--TurnMaster/snapshots/main --output-dir extracted
```

# Build dataset

### Base (no silence)
```bash
python TurnMaster_processing/augment_taskmaster.py \
 --aug-dataset-save-dir YOUR/SAVE/DIR \
 --taskmaster-root-dir DIR/TO/EXTRACTED/DATASET \
 --manifest-dir DIR/TO/EXTRACTED/DATASET \
 --silence-max-start 0.0 \
 --silence-min-end 0.2 \
 --silence-max-end 2.0 \
 --normalize-text \
 --custom-dollar-normalisation \
 --keep-punct \
 --lam 0.0 \
 ```

### Base silence insertion
```bash
python TurnMaster_processing/augment_taskmaster.py \
 --aug-dataset-save-dir YOUR/SAVE/DIR \
 --taskmaster-root-dir DIR/TO/EXTRACTED/DATASET \
 --manifest-dir DIR/TO/MANIFEST/EXTRACTED/DATASET \
 --silence-max-start 0.0 \
 --silence-min-end 0.2 \
 --silence-max-end 2.0 \
 --normalize-text \
 --custom-dollar-normalisation \
 --keep-punct \
 --silence-insertion \
 --lam 0.0 \
 --max-initial-silence-duration 1.5 \
 --silence-insertion-max-s 2.0 \
 --pause-per-second-ratio 1000.0
 ```

 ```bibtex
@misc{turnmaster2026,
  title        = {TurnMaster: A Synthetic Spoken Dialogue Benchmark for Voicebot End-Of-Turn Detection},
  author       = {Anonymous},
  year         = {2026},
  publisher    = {Hugging Face},
  url          = {https://huggingface.co/datasets/turnmaster/TurnMaster}
}
 ```