kxxia commited on
Commit
6eb13b5
·
verified ·
1 Parent(s): bcad527

Upload folder using huggingface_hub

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. README.md +217 -1
  2. test.ipynb +234 -0
  3. test_wavs/en/00879_00880_00879_610.wav +3 -0
  4. test_wavs/en/00879_00880_00879_677.wav +3 -0
  5. test_wavs/en/00879_00880_00880_263.wav +3 -0
  6. test_wavs/en/00883_00884_00883_180.wav +3 -0
  7. test_wavs/en/00883_00884_00883_190.wav +3 -0
  8. test_wavs/en/00883_00884_00883_200.wav +3 -0
  9. test_wavs/en/00883_00884_00883_403.wav +3 -0
  10. test_wavs/en/00883_00884_00883_614.wav +3 -0
  11. test_wavs/en/00883_00884_00884_161.wav +3 -0
  12. test_wavs/en/00883_00884_00884_299.wav +3 -0
  13. test_wavs/en/00883_00884_00884_308.wav +3 -0
  14. test_wavs/en/00883_00884_00884_422.wav +3 -0
  15. test_wavs/en/00883_00884_00884_428.wav +3 -0
  16. test_wavs/en/00883_00884_00884_622.wav +3 -0
  17. test_wavs/en/00883_00884_00884_673.wav +3 -0
  18. test_wavs/en/00883_00884_00884_719.wav +3 -0
  19. test_wavs/en/00885_00886_00885_240.wav +3 -0
  20. test_wavs/en/00885_00886_00885_262.wav +3 -0
  21. test_wavs/en/00885_00886_00885_276.wav +3 -0
  22. test_wavs/en/00885_00886_00885_292.wav +3 -0
  23. test_wavs/en/00885_00886_00885_362.wav +3 -0
  24. test_wavs/en/00885_00886_00885_392.wav +3 -0
  25. test_wavs/en/00885_00886_00885_441.wav +3 -0
  26. test_wavs/en/00885_00886_00885_540.wav +3 -0
  27. test_wavs/en/00885_00886_00885_597.wav +3 -0
  28. test_wavs/en/CTS-CN-F2F-2018-11-19_248_clipped_61.wav +3 -0
  29. test_wavs/en/CTS-CN-F2F-2018-11-19_251_clipped_9.wav +3 -0
  30. test_wavs/en/CTS-CN-F2F-2018-11-19_256_clipped_266.wav +3 -0
  31. test_wavs/en/CTS-CN-F2F-2018-11-19_256_clipped_77.wav +3 -0
  32. test_wavs/en/CTS-CN-F2F-2018-11-19_259_clipped_1.wav +3 -0
  33. test_wavs/en/CTS-CN-F2F-2018-11-19_259_clipped_97.wav +3 -0
  34. test_wavs/en/MDT_ASR_AF069A_A0006_S011_0_G0164_0714376-0716218.wav +3 -0
  35. test_wavs/en/MDT_ASR_AF069A_A0006_S011_0_G0164_0869873-0870746.wav +3 -0
  36. test_wavs/en/MDT_ASR_AF069A_A0006_S011_0_G0165_0027830-0035380.wav +3 -0
  37. test_wavs/en/MDT_ASR_AF069A_A0006_S011_0_G0165_0403085-0405688.wav +3 -0
  38. test_wavs/en/MDT_ASR_AF069A_A0006_S011_0_G0165_0511073-0513812.wav +3 -0
  39. test_wavs/en/MDT_ASR_AF069A_A0006_S011_0_G0165_0549120-0550672.wav +3 -0
  40. test_wavs/en/MDT_ASR_AF069A_A0006_S011_0_G0165_0672072-0672518.wav +3 -0
  41. test_wavs/en/MDT_ASR_AF069A_A0006_S011_0_G0165_0761730-0768140.wav +3 -0
  42. test_wavs/en/MDT_ASR_AF069A_A0006_S011_0_G0165_0795750-0798710.wav +3 -0
  43. test_wavs/en/MDT_ASR_AF069A_A0006_S013_0_G0164_0077690-0078702.wav +3 -0
  44. test_wavs/en/MDT_ASR_AF069A_A0006_S013_0_G0164_0192562-0193377.wav +3 -0
  45. test_wavs/en/MDT_ASR_AF069A_A0006_S013_0_G0164_0205010-0210417.wav +3 -0
  46. test_wavs/en/MDT_ASR_AF069A_A0006_S013_0_G0164_0237502-0238124.wav +3 -0
  47. test_wavs/en/MDT_ASR_AF069A_A0030_S005_0_G0029_341940-342770.wav +3 -0
  48. test_wavs/en/MDT_ASR_AF069A_A0030_S007_0_G0024_653730-656780.wav +3 -0
  49. test_wavs/en/MDT_ASR_AF069A_A0030_S007_0_G0024_783330-785120.wav +3 -0
  50. test_wavs/en/MDT_ASR_AF069A_A0030_S007_0_G0024_860490-861890.wav +3 -0
README.md CHANGED
@@ -1,3 +1,219 @@
 
 
 
 
1
  ---
2
- license: cc-by-4.0
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Semantic Interruption Detection Benchmark
2
+
3
+ A multilingual benchmark for evaluating **semantic interruption detection** in conversational speech. The dataset contains annotated audio recordings in English and Mandarin Chinese, along with a silence/noise negative set, designed to test models that decide *when* (and *whether*) to interrupt a speaker.
4
+
5
  ---
6
+
7
+ ## Overview
8
+
9
+ In spoken dialogue systems and voice assistants, knowing when to interrupt a speaker — and detecting interruption signals in real time — is a critical yet under-studied task. This benchmark provides:
10
+
11
+ - **3,700 audio clips** with frame-level interruption timestamps
12
+ - **Bilingual coverage**: English and Mandarin Chinese conversational speech
13
+ - **Negative samples**: 500 silence and environmental noise clips for robustness evaluation
14
+ - **Three standardized metrics**: FIR, IRL, and APT (defined below)
15
+
16
  ---
17
+
18
+ ## Dataset Statistics
19
+
20
+ | Split | Language | Total Samples | With Interruption | Without Interruption |
21
+ |-------|----------|:-------------:|:-----------------:|:--------------------:|
22
+ | `en_test_lines.jsonl` | English | 1,600 | 1,100 (68.8%) | 500 (31.3%) |
23
+ | `zh_test_lines.jsonl` | Chinese | 1,600 | 1,100 (68.8%) | 500 (31.3%) |
24
+ | `silence_noise_test.jsonl` | — | 500 | 0 (0%) | 500 (100%) |
25
+ | **Total** | | **3,700** | **2,200** | **1,500** |
26
+
27
+ **Audio duration:**
28
+ - English: 0.36s – 22.0s (avg 3.74s)
29
+ - Chinese: similar range (avg 3.85s)
30
+ - Silence/noise: 0.09s – 182.0s (avg 13.0s)
31
+
32
+ ---
33
+
34
+ ## Directory Structure
35
+
36
+ ```
37
+ Semantic_Interaption/
38
+ ├── README.md
39
+ ├── test.ipynb # Evaluation notebook
40
+ └── test_wavs/
41
+ ├── en_test_lines.jsonl # English ground-truth annotations
42
+ ├── zh_test_lines.jsonl # Chinese ground-truth annotations
43
+ ├── silence_noise_test.jsonl # Silence / noise annotations
44
+ ├── en/ # English WAV files (1,600)
45
+ ├── zh/ # Chinese WAV files (1,600)
46
+ └── silence_or_noise/ # Silence / noise WAV files (500)
47
+ ```
48
+
49
+ ---
50
+
51
+ ## Annotation Format
52
+
53
+ Each `.jsonl` file contains one JSON object per line.
54
+
55
+ ### Speech splits (`en_test_lines.jsonl`, `zh_test_lines.jsonl`)
56
+
57
+ ```json
58
+ {
59
+ "audio": "MDT_ASR_AI106_A0016_S0005_0_G3265_0318890-0324670.wav",
60
+ "total_nonbreak": false,
61
+ "duration": 5.78,
62
+ "break_time": 0.125,
63
+ "text_with_break": "<break> Experiencing different cultures, learning new languages, ..."
64
+ }
65
+ ```
66
+
67
+ | Field | Type | Description |
68
+ |-------|------|-------------|
69
+ | `audio` | `str` | Filename of the corresponding WAV file |
70
+ | `total_nonbreak` | `bool` | `true` if no interruption occurs in the entire clip |
71
+ | `duration` | `float` | Total audio duration in seconds |
72
+ | `break_time` | `float` | Timestamp (seconds) of the first interruption signal; `-1` when `total_nonbreak=true` |
73
+ | `text_with_break` | `str` | Transcript with `<break>` token inserted at the interruption point |
74
+
75
+ ### Silence / noise split (`silence_noise_test.jsonl`)
76
+
77
+ All samples have `total_nonbreak=true` and `text_with_break=null`. These clips contain no speech and serve as a robustness / false-alarm test.
78
+
79
+ ```json
80
+ {
81
+ "audio": "wind_wind_heavy_clean_stdy_air.wav",
82
+ "total_nonbreak": true,
83
+ "duration": 152.52,
84
+ "break_time": 152.52,
85
+ "text_with_break": null
86
+ }
87
+ ```
88
+
89
+ ---
90
+
91
+ ## Evaluation Metrics
92
+
93
+ The benchmark defines three complementary metrics. Reference implementation is in `test.ipynb`.
94
+
95
+ ### FIR — False Interruption Rate
96
+
97
+ The fraction of non-interruption samples for which the model incorrectly predicts an interruption.
98
+
99
+ ```
100
+ FIR = |false positives| / |total_nonbreak samples|
101
+ ```
102
+
103
+ Lower is better.
104
+
105
+ ### IRL — Interruption Response Latency
106
+
107
+ Average absolute timing error (in seconds) over true-positive detections (model correctly identifies a break and the timestamp is within 50 ms of ground truth).
108
+
109
+ ```
110
+ IRL = mean(|predicted_break_time - gt_break_time|) [over true positives]
111
+ ```
112
+
113
+ Lower is better.
114
+
115
+ ### APT — Average Penalty Time
116
+
117
+ A unified penalty that captures both detection errors and timing inaccuracies:
118
+
119
+ | Prediction vs. Ground Truth | Penalty |
120
+ |-----------------------------|---------|
121
+ | Both predict no break | 0 |
122
+ | Predicted time within ±50 ms of ground truth | 0 |
123
+ | False alarm (predict break, no GT break) | Full clip duration |
124
+ | Missed detection (no prediction, GT has break) | `duration − break_time` |
125
+ | Late detection | `predicted_time − break_time` |
126
+
127
+ ```
128
+ APT = mean(penalty) [over all samples]
129
+ ```
130
+
131
+ Lower is better.
132
+
133
+ ---
134
+
135
+ ## Download
136
+
137
+ The full dataset (audio + annotations) is hosted on Hugging Face:
138
+
139
+ **[https://huggingface.co/datasets/kxxia/SID-bench](https://huggingface.co/datasets/kxxia/SID-bench)**
140
+
141
+ ```bash
142
+ # Option 1: huggingface_hub CLI
143
+ huggingface-cli download kxxia/SID-bench --repo-type dataset --local-dir ./SID-bench
144
+
145
+ # Option 2: Python
146
+ from huggingface_hub import snapshot_download
147
+ snapshot_download(repo_id="kxxia/SID-bench", repo_type="dataset", local_dir="./SID-bench")
148
+ ```
149
+
150
+ ---
151
+
152
+ ## Quick Start
153
+
154
+ ```python
155
+ import json
156
+
157
+ # Load ground-truth annotations
158
+ with open("test_wavs/en_test_lines.jsonl") as f:
159
+ en_samples = [json.loads(line) for line in f]
160
+
161
+ # Each sample
162
+ sample = en_samples[0]
163
+ print(sample["audio"]) # WAV filename
164
+ print(sample["total_nonbreak"]) # bool
165
+ print(sample["break_time"]) # float (seconds)
166
+ print(sample["text_with_break"]) # transcript with <break> marker
167
+ ```
168
+
169
+ Run `test.ipynb` to reproduce the evaluation pipeline and compute FIR / IRL / APT against your own model predictions.
170
+
171
+ ### Prediction format
172
+
173
+ Your model should produce a JSONL file with one prediction per line:
174
+
175
+ ```json
176
+ {"audio": "MDT_ASR_AI106_A0016_S0005_0_G3265_0318890-0324670.wav", "total_nonbreak": false, "break_time": 0.13}
177
+ ```
178
+
179
+ ---
180
+
181
+ ## Use Cases
182
+
183
+ - **Conversational AI / dialogue systems**: training models to detect natural turn-taking signals
184
+ - **Voice assistants**: knowing when a user intends to interrupt or be interrupted
185
+ - **Speech-to-speech translation**: preserving interruption timing across languages
186
+ - **Contact center analytics**: segmenting overlapping speech
187
+
188
+ ---
189
+
190
+ ## License
191
+
192
+ Please check the `LICENSE` file for usage terms. The audio data may originate from multiple source corpora; refer to their respective licenses before use in commercial applications.
193
+
194
+ ---
195
+
196
+ ## Acknowledgement
197
+
198
+ The English conversational speech data used in this benchmark were derived from the **English Duplex Conversation Training Dataset** provided by MagicData.
199
+
200
+ > MagicData. (2025). *MDT-AF069 English Duplex Conversation Training Dataset*.
201
+ >https://www.magicdatatech.com/datasets/asr/mdt-af069-multi-stream-spontaneous-conversation-training-datasets-english-1733294791
202
+
203
+ ---
204
+
205
+ ## Citation
206
+
207
+ If you use this benchmark in your research, please cite:
208
+
209
+ ```bibtex
210
+ @misc{semantic_interruption_benchmark,
211
+ title={Semantic-Aware Interruption Detection in Spoken Dialogue Systems: Benchmark, Metric, and Model},
212
+ author={Kangxiang Xia and Bingshen Mu and Xian Shi and Jin Xu and Lei Xie},
213
+ year={2026},
214
+ eprint={2603.24144},
215
+ archivePrefix={arXiv},
216
+ primaryClass={cs.SD},
217
+ url={https://arxiv.org/abs/2603.24144},
218
+ }
219
+ ```
test.ipynb ADDED
@@ -0,0 +1,234 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "code",
5
+ "execution_count": 3,
6
+ "metadata": {},
7
+ "outputs": [],
8
+ "source": [
9
+ "from tqdm import tqdm\n",
10
+ "from json_repair import repair_json\n",
11
+ "import os\n",
12
+ "import json\n",
13
+ "import random\n",
14
+ "import re\n",
15
+ "\n",
16
+ "def readListFromFile(path: str) -> list:\n",
17
+ " \"\"\"从文件中逐行读取内容到列表\"\"\"\n",
18
+ " lines = []\n",
19
+ " try:\n",
20
+ " with open(path, 'r', encoding='utf-8') as f:\n",
21
+ " lines = [line.strip() for line in f]\n",
22
+ " except UnicodeDecodeError:\n",
23
+ " print(f\"{path} utf-8 打开失败,尝试使用gbk\")\n",
24
+ " try:\n",
25
+ " with open(path, 'r', encoding='gbk') as f:\n",
26
+ " lines = [line.strip() for line in f]\n",
27
+ " except Exception as e:\n",
28
+ " print(f\"读取文件失败: {e}\")\n",
29
+ " except FileNotFoundError:\n",
30
+ " print(f\"错误: 文件未找到 - {path}\")\n",
31
+ " \n",
32
+ " if path.endswith('.jsonl'):\n",
33
+ " try:\n",
34
+ " json_lines = [json.loads(line) for line in lines]\n",
35
+ " return json_lines\n",
36
+ " except Exception as e:\n",
37
+ " print(f\"JSON 解析失败: {e}\")\n",
38
+ " \n",
39
+ " return lines\n",
40
+ "\n",
41
+ "def saveLstAsFile(data_list: list, path: str, overwrite: bool = False):\n",
42
+ " \"\"\"将列表内容逐行写入文件\"\"\"\n",
43
+ " if len(data_list) == 0:\n",
44
+ " print(\"列表为空,无法写入文件\")\n",
45
+ " return\n",
46
+ " \n",
47
+ " if isinstance(data_list[0],dict):\n",
48
+ " data_list = [json.dumps(item, ensure_ascii=False) for item in data_list]\n",
49
+ "\n",
50
+ " if os.path.exists(path) and not overwrite:\n",
51
+ " new_path = f'{path}_{int(time.time())}.bak'\n",
52
+ " print(f'{path} 已存在,内容将写入到 {new_path}')\n",
53
+ " path = new_path\n",
54
+ " with open(path, 'w', encoding='utf-8') as f:\n",
55
+ " for item in data_list:\n",
56
+ " f.write(str(item).strip() + '\\n')"
57
+ ]
58
+ },
59
+ {
60
+ "cell_type": "code",
61
+ "execution_count": 7,
62
+ "metadata": {},
63
+ "outputs": [],
64
+ "source": [
65
+ "zh_gt_labs_lines = readListFromFile('./test_wavs/zh_test_lines.jsonl')\n",
66
+ "en_gt_labs_lines = readListFromFile('./test_wavs/en_test_lines.jsonl')\n",
67
+ "ns_gt_labs_lines = readListFromFile('./test_wavs/silence_noise_test.jsonl')\n",
68
+ "\n",
69
+ "audio2lines = {\n",
70
+ " line['audio']: line\n",
71
+ " for line in zh_gt_labs_lines + en_gt_labs_lines + ns_gt_labs_lines\n",
72
+ "}"
73
+ ]
74
+ },
75
+ {
76
+ "cell_type": "markdown",
77
+ "metadata": {},
78
+ "source": [
79
+ "`./zh_our_res.jsonl` 文件中,每一行都是一个 JSON 对象,例如:\n",
80
+ "\n",
81
+ "```jsonl\n",
82
+ "{\"audio\": \"00885_00886_00885_701.wav\", \"total_nonbreak\": true, \"break_time\": -1}\n",
83
+ "{\"audio\": \"00883_00884_00883_172.wav\", \"total_nonbreak\": false, \"break_time\": 0.64}\n",
84
+ "```\n",
85
+ "\n",
86
+ "### 字段说明\n",
87
+ "\n",
88
+ "```json\n",
89
+ "{\n",
90
+ " \"audio\": \"音频文件名\",\n",
91
+ " \"total_nonbreak\": \"是否整段音频都未触发打断信号\",\n",
92
+ " \"break_time\": \"触发打断信号的时间点(单位:秒)\"\n",
93
+ "}\n",
94
+ "```\n",
95
+ "\n",
96
+ "### 规则说明\n",
97
+ "\n",
98
+ "- `audio`:音频文件名。\n",
99
+ "- `total_nonbreak`:\n",
100
+ " - `true` 表示整段音频没有触发打断信号;\n",
101
+ " - `false` 表示音频中触发了打断信号。\n",
102
+ "- `break_time`:\n",
103
+ " - 当 `total_nonbreak = true` 时,`break_time` 通常为 `-1`;\n",
104
+ " - 当 `total_nonbreak = false` 时,`break_time` 表示首次触发打断信号的时间点,单位为秒。\n",
105
+ "\n",
106
+ "---\n",
107
+ "\n",
108
+ "Each line in `./zh_our_res.jsonl` is a JSON object, for example:\n",
109
+ "\n",
110
+ "```jsonl\n",
111
+ "{\"audio\": \"00885_00886_00885_701.wav\", \"total_nonbreak\": true, \"break_time\": -1}\n",
112
+ "{\"audio\": \"00883_00884_00883_172.wav\", \"total_nonbreak\": false, \"break_time\": 0.64}\n",
113
+ "```\n",
114
+ "\n",
115
+ "### Field Description\n",
116
+ "\n",
117
+ "```json\n",
118
+ "{\n",
119
+ " \"audio\": \"Audio filename\",\n",
120
+ " \"total_nonbreak\": \"Whether the entire audio contains no interruption signal\",\n",
121
+ " \"break_time\": \"Timestamp of the interruption signal (in seconds)\"\n",
122
+ "}\n",
123
+ "```\n",
124
+ "\n",
125
+ "### Rules\n",
126
+ "\n",
127
+ "- `audio`: the audio filename.\n",
128
+ "- `total_nonbreak`:\n",
129
+ " - `true` means no interruption signal was triggered throughout the entire audio;\n",
130
+ " - `false` means an interruption signal was triggered in the audio.\n",
131
+ "- `break_time`:\n",
132
+ " - When `total_nonbreak = true`, `break_time` is usually `-1`;\n",
133
+ " - When `total_nonbreak = false`, `break_time` indicates the timestamp of the first interruption signal, in seconds.\n"
134
+ ]
135
+ },
136
+ {
137
+ "cell_type": "code",
138
+ "execution_count": 8,
139
+ "metadata": {},
140
+ "outputs": [],
141
+ "source": [
142
+ "test_result_file = './zh_our_res.jsonl'\n",
143
+ "test_result_lines = readListFromFile(test_result_file)\n",
144
+ "\n",
145
+ "false_alarm_num = 0\n",
146
+ "for line in test_result_lines:\n",
147
+ " audio = line['audio']\n",
148
+ " labs = audio2lines[audio]\n",
149
+ "\n",
150
+ " test_break_time = line['break_time']\n",
151
+ " test_nonbreak = line['total_nonbreak']\n",
152
+ "\n",
153
+ " gt_break_time = labs['break_time']\n",
154
+ " gt_nonbreak = labs['total_nonbreak']\n",
155
+ " duration = labs['duration']\n",
156
+ "\n",
157
+ " line['duration'] = duration\n",
158
+ " line['gt_break_time'] = gt_break_time\n",
159
+ " line['gt_nonbreak'] = gt_nonbreak\n",
160
+ "\n",
161
+ " if test_break_time <= gt_break_time + 0.05 and test_break_time >= gt_break_time - 0.05: #结果打断时间和真实打断时间相近\n",
162
+ " line['advance_time'] = 0\n",
163
+ " line['delay_time'] = 0\n",
164
+ " line['penalty_time'] = 0\n",
165
+ " continue\n",
166
+ " elif gt_nonbreak and test_nonbreak: #真实不打断,结果不打断\n",
167
+ " line['advance_time'] = 0\n",
168
+ " line['delay_time'] = 0\n",
169
+ " line['penalty_time'] = 0\n",
170
+ " continue\n",
171
+ " elif gt_nonbreak and not test_nonbreak: #真实不打断,结果打断\n",
172
+ " false_alarm_num += 1\n",
173
+ " line['advance_time'] = 0\n",
174
+ " line['delay_time'] = 0\n",
175
+ " line['penalty_time'] = duration\n",
176
+ " elif not gt_nonbreak and test_nonbreak: #真实打断,结果不打断\n",
177
+ " line['advance_time'] = 0\n",
178
+ " line['delay_time'] = 0\n",
179
+ " line['penalty_time'] = (duration-gt_break_time)\n",
180
+ " elif not gt_nonbreak and not test_nonbreak: #真实打断,结果打断\n",
181
+ " if test_break_time >= gt_break_time:\n",
182
+ " line['advance_time'] = 0\n",
183
+ " line['delay_time'] = (test_break_time - gt_break_time)\n",
184
+ " line['penalty_time'] = (test_break_time - gt_break_time)\n",
185
+ " elif test_break_time < gt_break_time:\n",
186
+ " false_alarm_num += 1\n",
187
+ " line['advance_time'] = 0\n",
188
+ " line['delay_time'] = 0\n",
189
+ " line['penalty_time'] = duration\n"
190
+ ]
191
+ },
192
+ {
193
+ "cell_type": "code",
194
+ "execution_count": 9,
195
+ "metadata": {},
196
+ "outputs": [
197
+ {
198
+ "name": "stdout",
199
+ "output_type": "stream",
200
+ "text": [
201
+ "FIR: 0.1375 IRL: 0.33837436932391457 APT: 0.6561522135416662\n"
202
+ ]
203
+ }
204
+ ],
205
+ "source": [
206
+ "delay_items = [line['delay_time'] for line in test_result_lines if line['delay_time'] > 0]\n",
207
+ "penalty_time_items = [line['penalty_time'] for line in test_result_lines]\n",
208
+ "\n",
209
+ "print(\"FIR:\",false_alarm_num/len(test_result_lines), \"IRL:\", sum(delay_items)/len(delay_items), \"APT:\", sum(penalty_time_items)/len(penalty_time_items))"
210
+ ]
211
+ }
212
+ ],
213
+ "metadata": {
214
+ "kernelspec": {
215
+ "display_name": "Python 3",
216
+ "language": "python",
217
+ "name": "python3"
218
+ },
219
+ "language_info": {
220
+ "codemirror_mode": {
221
+ "name": "ipython",
222
+ "version": 3
223
+ },
224
+ "file_extension": ".py",
225
+ "mimetype": "text/x-python",
226
+ "name": "python",
227
+ "nbconvert_exporter": "python",
228
+ "pygments_lexer": "ipython3",
229
+ "version": "3.9.23"
230
+ }
231
+ },
232
+ "nbformat": 4,
233
+ "nbformat_minor": 2
234
+ }
test_wavs/en/00879_00880_00879_610.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3af8c4079776fb3cfe1ed76b1caec4146b6c27adf85b1757ab34b345eaf24056
3
+ size 2111372
test_wavs/en/00879_00880_00879_677.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a19118d05dd5f5db97b13fa360ebd9a281b2d1d2db9e1da6633ae95753873e3b
3
+ size 499436
test_wavs/en/00879_00880_00880_263.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6a1c15d6ac73a115c04cba19fc8286c907955621e007f7600ecb3d28894847b4
3
+ size 231884
test_wavs/en/00883_00884_00883_180.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ec745a545135fdb428f94dcc63680f0c37609c1afc5e3f2e94de193cfd1ea346
3
+ size 1283372
test_wavs/en/00883_00884_00883_190.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:78d72c38283e1be5a08a2deb3e31e99c509aeeda58e50b35d17bc33d4733d131
3
+ size 935660
test_wavs/en/00883_00884_00883_200.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4730f650f14f17c400653d7bc8357ff6523be666f1633f360908a0e13d608e2f
3
+ size 1047308
test_wavs/en/00883_00884_00883_403.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89f72334c21853348c09a3ff647ffb4db85e0b0f84362cf6e5fc2d9e64ea10b4
3
+ size 1370924
test_wavs/en/00883_00884_00883_614.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4727679698d0e675ab695d980fb3503a7cc9111d64701a892c750a950802cbf5
3
+ size 150476
test_wavs/en/00883_00884_00884_161.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e4d7b6c0115cc70396e464ec72c9ab83c9bfb83a685cedf8bd3d52b903e21dba
3
+ size 844172
test_wavs/en/00883_00884_00884_299.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a0d5d9c5913bbd96e857ae4881f5068aebf3023d996bdeb5549f3538dbb04c73
3
+ size 689230
test_wavs/en/00883_00884_00884_308.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:83791a2c0c6bed3d3a82b88d9ec55b8ab739de8749b0e290663e8110b56b10c1
3
+ size 953228
test_wavs/en/00883_00884_00884_422.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1a2c5c1d1419c34631097d231850a665ab5dcfc82a97ee36ce3dfc3f240246cd
3
+ size 611468
test_wavs/en/00883_00884_00884_428.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7658b486271c8069f8b0a67896f66619143283501c1aa4597ba75187b8f47d56
3
+ size 124652
test_wavs/en/00883_00884_00884_622.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a996163883ffc949f24851e16cbba2ddb0d3a378335f71208d31bf6fe1e673b6
3
+ size 399500
test_wavs/en/00883_00884_00884_673.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:959b04df7d438a7c4008946f34e470936732a34683f76592408c5ad22ab22ac3
3
+ size 384620
test_wavs/en/00883_00884_00884_719.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:48c6d0e529071c8aab7c90f7a27575ecf0af821a14e125054bf11ab5a10da769
3
+ size 234092
test_wavs/en/00885_00886_00885_240.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a631910c276f96dfceb987605f08d16897fb3d9098e5c2356bcc653e54b229e
3
+ size 708138
test_wavs/en/00885_00886_00885_262.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:420bcc7258db34753790d65e209822031be0f8b35a2e54345866f71a5998e8c9
3
+ size 269516
test_wavs/en/00885_00886_00885_276.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b8ddf19f81aefd5ad945c3f8b69ca1e3335a4512bd5fced662642519e4a6b661
3
+ size 293612
test_wavs/en/00885_00886_00885_292.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7e28687608951afd6a301ec5471fce031a5663aed89020fd550cfc97b2180826
3
+ size 654188
test_wavs/en/00885_00886_00885_362.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:225d45cc6ca8f8bbaf58b7d8a0f422be9195171c45a12f251286d9dab03dd18d
3
+ size 419276
test_wavs/en/00885_00886_00885_392.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:45b13e4d5c3f07d1218c518b6fce6005a5c8f5d979e75ca2b04a84599435b8db
3
+ size 187820
test_wavs/en/00885_00886_00885_441.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f0a52772891c44ef9b2fa6a72af601d6fb13a39a23785beed466aefe23d293e6
3
+ size 580556
test_wavs/en/00885_00886_00885_540.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6bfa9d1f7faf983f0be9114902f666fde6c26454e852543f936dfd7fd549ee76
3
+ size 251468
test_wavs/en/00885_00886_00885_597.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:872ec828a4b0084407050939eb51b578991f51759e226e93b290cb7421f412e2
3
+ size 561836
test_wavs/en/CTS-CN-F2F-2018-11-19_248_clipped_61.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da08d4c882c9d024b9964d4135e5ab9e4d76092b58b6edd748c9de853de6b37b
3
+ size 48140
test_wavs/en/CTS-CN-F2F-2018-11-19_251_clipped_9.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f471a743528c0e2c1f4b5eb9d5a50371a4dca572c733b893cddee1e5961e64dc
3
+ size 31692
test_wavs/en/CTS-CN-F2F-2018-11-19_256_clipped_266.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:76846973371610b649708606a50078b9e737e831ddf2fb847e8a83d467f75e15
3
+ size 342924
test_wavs/en/CTS-CN-F2F-2018-11-19_256_clipped_77.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:61ed1ff38e5763ec12f8fe8136f590497189e67318779148879134ef6ef9cf1f
3
+ size 40076
test_wavs/en/CTS-CN-F2F-2018-11-19_259_clipped_1.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f29746da0d9551b5ba784282e36e72c908db6618d89010251d18cb2fea439fb4
3
+ size 239596
test_wavs/en/CTS-CN-F2F-2018-11-19_259_clipped_97.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c6a9a52ed9d0f31ebda8c3aee46a59a48e058a1f184ad3f977b6fd005d6d066d
3
+ size 458668
test_wavs/en/MDT_ASR_AF069A_A0006_S011_0_G0164_0714376-0716218.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c3f7c9c5ad2f2e94d1710bbfa10021b74f42ca5a494e3cbe59619937caadc069
3
+ size 57422
test_wavs/en/MDT_ASR_AF069A_A0006_S011_0_G0164_0869873-0870746.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:331934c01b85a931f790570a3e8d5c5d5e3d1e9ef0340d931ffb8c6b42c8035a
3
+ size 28750
test_wavs/en/MDT_ASR_AF069A_A0006_S011_0_G0165_0027830-0035380.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e97f9d86180fe1ecbd2cdca9fcdf4e13b53a06770077b085fd39d1b6c53682aa
3
+ size 241742
test_wavs/en/MDT_ASR_AF069A_A0006_S011_0_G0165_0403085-0405688.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4613db733a6d5f1c502e16e797cefb121824c5411a21239ab50b389cbfde03f2
3
+ size 81998
test_wavs/en/MDT_ASR_AF069A_A0006_S011_0_G0165_0511073-0513812.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fdbd3269ba3f661a979a2d2b3fddca96af4a1347512dd0651801373659887154
3
+ size 90190
test_wavs/en/MDT_ASR_AF069A_A0006_S011_0_G0165_0549120-0550672.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dd53e31dd5671f100840d9e4400a3dca333c780b6807c98ced22afd71251ce02
3
+ size 53326
test_wavs/en/MDT_ASR_AF069A_A0006_S011_0_G0165_0672072-0672518.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c93caccb5bed7a0ebc1ecec615f95fac8ce094bc770116a4bf574da10b8866cd
3
+ size 16462
test_wavs/en/MDT_ASR_AF069A_A0006_S011_0_G0165_0761730-0768140.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:22c2bbc07a33c0e8aef5dca0bb346e85094f47c26ddb079ec9db33a3d5de7b3c
3
+ size 204878
test_wavs/en/MDT_ASR_AF069A_A0006_S011_0_G0165_0795750-0798710.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ad451109dd1a9f67966e49129fc3c19f33198216d28c40b5d052e453f25b048
3
+ size 94286
test_wavs/en/MDT_ASR_AF069A_A0006_S013_0_G0164_0077690-0078702.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0fda02f33ab82c0c774cb71ed60b3d3f023ce9f7d32c17781b4a7ccb8b5ed0a0
3
+ size 32846
test_wavs/en/MDT_ASR_AF069A_A0006_S013_0_G0164_0192562-0193377.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e7913d796f86084419cc36e3ab6a62db144485b202c69914a0d860c2d9e1d448
3
+ size 24654
test_wavs/en/MDT_ASR_AF069A_A0006_S013_0_G0164_0205010-0210417.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:38ec020e3c2da65acd2da31e02450d4cac75cbaccbba8beac047339078b5b6f7
3
+ size 173068
test_wavs/en/MDT_ASR_AF069A_A0006_S013_0_G0164_0237502-0238124.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a7fe2858223d3fa170e0039abc22937125a8c36c752249730575391d77b9ed49
3
+ size 19948
test_wavs/en/MDT_ASR_AF069A_A0030_S005_0_G0029_341940-342770.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aa117eb6ca0e7d737b8b8a7555d41be18f8730bfd16ca5a1f3d707d7803c51af
3
+ size 26604
test_wavs/en/MDT_ASR_AF069A_A0030_S007_0_G0024_653730-656780.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2446b0bf3972aafc8ac0bb991017604bb660a747c3cee771f0cd8df0c782cd41
3
+ size 97644
test_wavs/en/MDT_ASR_AF069A_A0030_S007_0_G0024_783330-785120.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cecf9ef40496088c0c3c95f82d035f24d52a95e05bf315a017ab439ceceb8b08
3
+ size 57422
test_wavs/en/MDT_ASR_AF069A_A0030_S007_0_G0024_860490-861890.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:516d4557fc5b0282031790055f4d3d4bfc45b81c52b6950422b2b8fdbb6cbe50
3
+ size 45134