korallll commited on
Commit
bf65a13
·
verified ·
1 Parent(s): eaedc24

Add files using upload-large-folder tool

Browse files
.gitattributes CHANGED
@@ -1,60 +1,2 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.avro filter=lfs diff=lfs merge=lfs -text
4
- *.bin filter=lfs diff=lfs merge=lfs -text
5
- *.bz2 filter=lfs diff=lfs merge=lfs -text
6
- *.ckpt filter=lfs diff=lfs merge=lfs -text
7
- *.ftz filter=lfs diff=lfs merge=lfs -text
8
- *.gz filter=lfs diff=lfs merge=lfs -text
9
- *.h5 filter=lfs diff=lfs merge=lfs -text
10
- *.joblib filter=lfs diff=lfs merge=lfs -text
11
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
12
- *.lz4 filter=lfs diff=lfs merge=lfs -text
13
- *.mds filter=lfs diff=lfs merge=lfs -text
14
- *.mlmodel filter=lfs diff=lfs merge=lfs -text
15
- *.model filter=lfs diff=lfs merge=lfs -text
16
- *.msgpack filter=lfs diff=lfs merge=lfs -text
17
- *.npy filter=lfs diff=lfs merge=lfs -text
18
- *.npz filter=lfs diff=lfs merge=lfs -text
19
- *.onnx filter=lfs diff=lfs merge=lfs -text
20
- *.ot filter=lfs diff=lfs merge=lfs -text
21
  *.parquet filter=lfs diff=lfs merge=lfs -text
22
- *.pb filter=lfs diff=lfs merge=lfs -text
23
- *.pickle filter=lfs diff=lfs merge=lfs -text
24
- *.pkl filter=lfs diff=lfs merge=lfs -text
25
- *.pt filter=lfs diff=lfs merge=lfs -text
26
- *.pth filter=lfs diff=lfs merge=lfs -text
27
- *.rar filter=lfs diff=lfs merge=lfs -text
28
- *.safetensors filter=lfs diff=lfs merge=lfs -text
29
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
30
- *.tar.* filter=lfs diff=lfs merge=lfs -text
31
- *.tar filter=lfs diff=lfs merge=lfs -text
32
- *.tflite filter=lfs diff=lfs merge=lfs -text
33
- *.tgz filter=lfs diff=lfs merge=lfs -text
34
- *.wasm filter=lfs diff=lfs merge=lfs -text
35
- *.xz filter=lfs diff=lfs merge=lfs -text
36
- *.zip filter=lfs diff=lfs merge=lfs -text
37
- *.zst filter=lfs diff=lfs merge=lfs -text
38
- *tfevents* filter=lfs diff=lfs merge=lfs -text
39
- # Audio files - uncompressed
40
- *.pcm filter=lfs diff=lfs merge=lfs -text
41
- *.sam filter=lfs diff=lfs merge=lfs -text
42
- *.raw filter=lfs diff=lfs merge=lfs -text
43
- # Audio files - compressed
44
- *.aac filter=lfs diff=lfs merge=lfs -text
45
- *.flac filter=lfs diff=lfs merge=lfs -text
46
- *.mp3 filter=lfs diff=lfs merge=lfs -text
47
- *.ogg filter=lfs diff=lfs merge=lfs -text
48
- *.wav filter=lfs diff=lfs merge=lfs -text
49
- # Image files - uncompressed
50
- *.bmp filter=lfs diff=lfs merge=lfs -text
51
- *.gif filter=lfs diff=lfs merge=lfs -text
52
- *.png filter=lfs diff=lfs merge=lfs -text
53
- *.tiff filter=lfs diff=lfs merge=lfs -text
54
- # Image files - compressed
55
- *.jpg filter=lfs diff=lfs merge=lfs -text
56
- *.jpeg filter=lfs diff=lfs merge=lfs -text
57
- *.webp filter=lfs diff=lfs merge=lfs -text
58
- # Video files - compressed
59
- *.mp4 filter=lfs diff=lfs merge=lfs -text
60
- *.webm filter=lfs diff=lfs merge=lfs -text
 
1
+ *.tar.gz filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  *.parquet filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.gitignore ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ __pycache__/
2
+ .pytest_cache/
3
+ *.pyc
4
+ _clean_flac/
LICENSE.txt ADDED
@@ -0,0 +1,408 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Attribution-NonCommercial 4.0 International
2
+
3
+ =======================================================================
4
+
5
+ Creative Commons Corporation ("Creative Commons") is not a law firm and
6
+ does not provide legal services or legal advice. Distribution of
7
+ Creative Commons public licenses does not create a lawyer-client or
8
+ other relationship. Creative Commons makes its licenses and related
9
+ information available on an "as-is" basis. Creative Commons gives no
10
+ warranties regarding its licenses, any material licensed under their
11
+ terms and conditions, or any related information. Creative Commons
12
+ disclaims all liability for damages resulting from their use to the
13
+ fullest extent possible.
14
+
15
+ Using Creative Commons Public Licenses
16
+
17
+ Creative Commons public licenses provide a standard set of terms and
18
+ conditions that creators and other rights holders may use to share
19
+ original works of authorship and other material subject to copyright
20
+ and certain other rights specified in the public license below. The
21
+ following considerations are for informational purposes only, are not
22
+ exhaustive, and do not form part of our licenses.
23
+
24
+ Considerations for licensors: Our public licenses are
25
+ intended for use by those authorized to give the public
26
+ permission to use material in ways otherwise restricted by
27
+ copyright and certain other rights. Our licenses are
28
+ irrevocable. Licensors should read and understand the terms
29
+ and conditions of the license they choose before applying it.
30
+ Licensors should also secure all rights necessary before
31
+ applying our licenses so that the public can reuse the
32
+ material as expected. Licensors should clearly mark any
33
+ material not subject to the license. This includes other CC-
34
+ licensed material, or material used under an exception or
35
+ limitation to copyright. More considerations for licensors:
36
+ wiki.creativecommons.org/Considerations_for_licensors
37
+
38
+ Considerations for the public: By using one of our public
39
+ licenses, a licensor grants the public permission to use the
40
+ licensed material under specified terms and conditions. If
41
+ the licensor's permission is not necessary for any reason--for
42
+ example, because of any applicable exception or limitation to
43
+ copyright--then that use is not regulated by the license. Our
44
+ licenses grant only permissions under copyright and certain
45
+ other rights that a licensor has authority to grant. Use of
46
+ the licensed material may still be restricted for other
47
+ reasons, including because others have copyright or other
48
+ rights in the material. A licensor may make special requests,
49
+ such as asking that all changes be marked or described.
50
+ Although not required by our licenses, you are encouraged to
51
+ respect those requests where reasonable. More considerations
52
+ for the public:
53
+ wiki.creativecommons.org/Considerations_for_licensees
54
+
55
+ =======================================================================
56
+
57
+ Creative Commons Attribution-NonCommercial 4.0 International Public
58
+ License
59
+
60
+ By exercising the Licensed Rights (defined below), You accept and agree
61
+ to be bound by the terms and conditions of this Creative Commons
62
+ Attribution-NonCommercial 4.0 International Public License ("Public
63
+ License"). To the extent this Public License may be interpreted as a
64
+ contract, You are granted the Licensed Rights in consideration of Your
65
+ acceptance of these terms and conditions, and the Licensor grants You
66
+ such rights in consideration of benefits the Licensor receives from
67
+ making the Licensed Material available under these terms and
68
+ conditions.
69
+
70
+
71
+ Section 1 -- Definitions.
72
+
73
+ a. Adapted Material means material subject to Copyright and Similar
74
+ Rights that is derived from or based upon the Licensed Material
75
+ and in which the Licensed Material is translated, altered,
76
+ arranged, transformed, or otherwise modified in a manner requiring
77
+ permission under the Copyright and Similar Rights held by the
78
+ Licensor. For purposes of this Public License, where the Licensed
79
+ Material is a musical work, performance, or sound recording,
80
+ Adapted Material is always produced where the Licensed Material is
81
+ synched in timed relation with a moving image.
82
+
83
+ b. Adapter's License means the license You apply to Your Copyright
84
+ and Similar Rights in Your contributions to Adapted Material in
85
+ accordance with the terms and conditions of this Public License.
86
+
87
+ c. Copyright and Similar Rights means copyright and/or similar rights
88
+ closely related to copyright including, without limitation,
89
+ performance, broadcast, sound recording, and Sui Generis Database
90
+ Rights, without regard to how the rights are labeled or
91
+ categorized. For purposes of this Public License, the rights
92
+ specified in Section 2(b)(1)-(2) are not Copyright and Similar
93
+ Rights.
94
+ d. Effective Technological Measures means those measures that, in the
95
+ absence of proper authority, may not be circumvented under laws
96
+ fulfilling obligations under Article 11 of the WIPO Copyright
97
+ Treaty adopted on December 20, 1996, and/or similar international
98
+ agreements.
99
+
100
+ e. Exceptions and Limitations means fair use, fair dealing, and/or
101
+ any other exception or limitation to Copyright and Similar Rights
102
+ that applies to Your use of the Licensed Material.
103
+
104
+ f. Licensed Material means the artistic or literary work, database,
105
+ or other material to which the Licensor applied this Public
106
+ License.
107
+
108
+ g. Licensed Rights means the rights granted to You subject to the
109
+ terms and conditions of this Public License, which are limited to
110
+ all Copyright and Similar Rights that apply to Your use of the
111
+ Licensed Material and that the Licensor has authority to license.
112
+
113
+ h. Licensor means the individual(s) or entity(ies) granting rights
114
+ under this Public License.
115
+
116
+ i. NonCommercial means not primarily intended for or directed towards
117
+ commercial advantage or monetary compensation. For purposes of
118
+ this Public License, the exchange of the Licensed Material for
119
+ other material subject to Copyright and Similar Rights by digital
120
+ file-sharing or similar means is NonCommercial provided there is
121
+ no payment of monetary compensation in connection with the
122
+ exchange.
123
+
124
+ j. Share means to provide material to the public by any means or
125
+ process that requires permission under the Licensed Rights, such
126
+ as reproduction, public display, public performance, distribution,
127
+ dissemination, communication, or importation, and to make material
128
+ available to the public including in ways that members of the
129
+ public may access the material from a place and at a time
130
+ individually chosen by them.
131
+
132
+ k. Sui Generis Database Rights means rights other than copyright
133
+ resulting from Directive 96/9/EC of the European Parliament and of
134
+ the Council of 11 March 1996 on the legal protection of databases,
135
+ as amended and/or succeeded, as well as other essentially
136
+ equivalent rights anywhere in the world.
137
+
138
+ l. You means the individual or entity exercising the Licensed Rights
139
+ under this Public License. Your has a corresponding meaning.
140
+
141
+
142
+ Section 2 -- Scope.
143
+
144
+ a. License grant.
145
+
146
+ 1. Subject to the terms and conditions of this Public License,
147
+ the Licensor hereby grants You a worldwide, royalty-free,
148
+ non-sublicensable, non-exclusive, irrevocable license to
149
+ exercise the Licensed Rights in the Licensed Material to:
150
+
151
+ a. reproduce and Share the Licensed Material, in whole or
152
+ in part, for NonCommercial purposes only; and
153
+
154
+ b. produce, reproduce, and Share Adapted Material for
155
+ NonCommercial purposes only.
156
+
157
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
158
+ Exceptions and Limitations apply to Your use, this Public
159
+ License does not apply, and You do not need to comply with
160
+ its terms and conditions.
161
+
162
+ 3. Term. The term of this Public License is specified in Section
163
+ 6(a).
164
+
165
+ 4. Media and formats; technical modifications allowed. The
166
+ Licensor authorizes You to exercise the Licensed Rights in
167
+ all media and formats whether now known or hereafter created,
168
+ and to make technical modifications necessary to do so. The
169
+ Licensor waives and/or agrees not to assert any right or
170
+ authority to forbid You from making technical modifications
171
+ necessary to exercise the Licensed Rights, including
172
+ technical modifications necessary to circumvent Effective
173
+ Technological Measures. For purposes of this Public License,
174
+ simply making modifications authorized by this Section 2(a)
175
+ (4) never produces Adapted Material.
176
+
177
+ 5. Downstream recipients.
178
+
179
+ a. Offer from the Licensor -- Licensed Material. Every
180
+ recipient of the Licensed Material automatically
181
+ receives an offer from the Licensor to exercise the
182
+ Licensed Rights under the terms and conditions of this
183
+ Public License.
184
+
185
+ b. No downstream restrictions. You may not offer or impose
186
+ any additional or different terms or conditions on, or
187
+ apply any Effective Technological Measures to, the
188
+ Licensed Material if doing so restricts exercise of the
189
+ Licensed Rights by any recipient of the Licensed
190
+ Material.
191
+
192
+ 6. No endorsement. Nothing in this Public License constitutes or
193
+ may be construed as permission to assert or imply that You
194
+ are, or that Your use of the Licensed Material is, connected
195
+ with, or sponsored, endorsed, or granted official status by,
196
+ the Licensor or others designated to receive attribution as
197
+ provided in Section 3(a)(1)(A)(i).
198
+
199
+ b. Other rights.
200
+
201
+ 1. Moral rights, such as the right of integrity, are not
202
+ licensed under this Public License, nor are publicity,
203
+ privacy, and/or other similar personality rights; however, to
204
+ the extent possible, the Licensor waives and/or agrees not to
205
+ assert any such rights held by the Licensor to the limited
206
+ extent necessary to allow You to exercise the Licensed
207
+ Rights, but not otherwise.
208
+
209
+ 2. Patent and trademark rights are not licensed under this
210
+ Public License.
211
+
212
+ 3. To the extent possible, the Licensor waives any right to
213
+ collect royalties from You for the exercise of the Licensed
214
+ Rights, whether directly or through a collecting society
215
+ under any voluntary or waivable statutory or compulsory
216
+ licensing scheme. In all other cases the Licensor expressly
217
+ reserves any right to collect such royalties, including when
218
+ the Licensed Material is used other than for NonCommercial
219
+ purposes.
220
+
221
+
222
+ Section 3 -- License Conditions.
223
+
224
+ Your exercise of the Licensed Rights is expressly made subject to the
225
+ following conditions.
226
+
227
+ a. Attribution.
228
+
229
+ 1. If You Share the Licensed Material (including in modified
230
+ form), You must:
231
+
232
+ a. retain the following if it is supplied by the Licensor
233
+ with the Licensed Material:
234
+
235
+ i. identification of the creator(s) of the Licensed
236
+ Material and any others designated to receive
237
+ attribution, in any reasonable manner requested by
238
+ the Licensor (including by pseudonym if
239
+ designated);
240
+
241
+ ii. a copyright notice;
242
+
243
+ iii. a notice that refers to this Public License;
244
+
245
+ iv. a notice that refers to the disclaimer of
246
+ warranties;
247
+
248
+ v. a URI or hyperlink to the Licensed Material to the
249
+ extent reasonably practicable;
250
+
251
+ b. indicate if You modified the Licensed Material and
252
+ retain an indication of any previous modifications; and
253
+
254
+ c. indicate the Licensed Material is licensed under this
255
+ Public License, and include the text of, or the URI or
256
+ hyperlink to, this Public License.
257
+
258
+ 2. You may satisfy the conditions in Section 3(a)(1) in any
259
+ reasonable manner based on the medium, means, and context in
260
+ which You Share the Licensed Material. For example, it may be
261
+ reasonable to satisfy the conditions by providing a URI or
262
+ hyperlink to a resource that includes the required
263
+ information.
264
+
265
+ 3. If requested by the Licensor, You must remove any of the
266
+ information required by Section 3(a)(1)(A) to the extent
267
+ reasonably practicable.
268
+
269
+ 4. If You Share Adapted Material You produce, the Adapter's
270
+ License You apply must not prevent recipients of the Adapted
271
+ Material from complying with this Public License.
272
+
273
+
274
+ Section 4 -- Sui Generis Database Rights.
275
+
276
+ Where the Licensed Rights include Sui Generis Database Rights that
277
+ apply to Your use of the Licensed Material:
278
+
279
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right
280
+ to extract, reuse, reproduce, and Share all or a substantial
281
+ portion of the contents of the database for NonCommercial purposes
282
+ only;
283
+
284
+ b. if You include all or a substantial portion of the database
285
+ contents in a database in which You have Sui Generis Database
286
+ Rights, then the database in which You have Sui Generis Database
287
+ Rights (but not its individual contents) is Adapted Material; and
288
+
289
+ c. You must comply with the conditions in Section 3(a) if You Share
290
+ all or a substantial portion of the contents of the database.
291
+
292
+ For the avoidance of doubt, this Section 4 supplements and does not
293
+ replace Your obligations under this Public License where the Licensed
294
+ Rights include other Copyright and Similar Rights.
295
+
296
+
297
+ Section 5 -- Disclaimer of Warranties and Limitation of Liability.
298
+
299
+ a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
300
+ EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
301
+ AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
302
+ ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
303
+ IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
304
+ WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
305
+ PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
306
+ ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
307
+ KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
308
+ ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
309
+
310
+ b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
311
+ TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
312
+ NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
313
+ INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
314
+ COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
315
+ USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
316
+ ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
317
+ DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
318
+ IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
319
+
320
+ c. The disclaimer of warranties and limitation of liability provided
321
+ above shall be interpreted in a manner that, to the extent
322
+ possible, most closely approximates an absolute disclaimer and
323
+ waiver of all liability.
324
+
325
+
326
+ Section 6 -- Term and Termination.
327
+
328
+ a. This Public License applies for the term of the Copyright and
329
+ Similar Rights licensed here. However, if You fail to comply with
330
+ this Public License, then Your rights under this Public License
331
+ terminate automatically.
332
+
333
+ b. Where Your right to use the Licensed Material has terminated under
334
+ Section 6(a), it reinstates:
335
+
336
+ 1. automatically as of the date the violation is cured, provided
337
+ it is cured within 30 days of Your discovery of the
338
+ violation; or
339
+
340
+ 2. upon express reinstatement by the Licensor.
341
+
342
+ For the avoidance of doubt, this Section 6(b) does not affect any
343
+ right the Licensor may have to seek remedies for Your violations
344
+ of this Public License.
345
+
346
+ c. For the avoidance of doubt, the Licensor may also offer the
347
+ Licensed Material under separate terms or conditions or stop
348
+ distributing the Licensed Material at any time; however, doing so
349
+ will not terminate this Public License.
350
+
351
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
352
+ License.
353
+
354
+
355
+ Section 7 -- Other Terms and Conditions.
356
+
357
+ a. The Licensor shall not be bound by any additional or different
358
+ terms or conditions communicated by You unless expressly agreed.
359
+
360
+ b. Any arrangements, understandings, or agreements regarding the
361
+ Licensed Material not stated herein are separate from and
362
+ independent of the terms and conditions of this Public License.
363
+
364
+
365
+ Section 8 -- Interpretation.
366
+
367
+ a. For the avoidance of doubt, this Public License does not, and
368
+ shall not be interpreted to, reduce, limit, restrict, or impose
369
+ conditions on any use of the Licensed Material that could lawfully
370
+ be made without permission under this Public License.
371
+
372
+ b. To the extent possible, if any provision of this Public License is
373
+ deemed unenforceable, it shall be automatically reformed to the
374
+ minimum extent necessary to make it enforceable. If the provision
375
+ cannot be reformed, it shall be severed from this Public License
376
+ without affecting the enforceability of the remaining terms and
377
+ conditions.
378
+
379
+ c. No term or condition of this Public License will be waived and no
380
+ failure to comply consented to unless expressly agreed to by the
381
+ Licensor.
382
+
383
+ d. Nothing in this Public License constitutes or may be interpreted
384
+ as a limitation upon, or waiver of, any privileges and immunities
385
+ that apply to the Licensor or You, including from the legal
386
+ processes of any jurisdiction or authority.
387
+
388
+ =======================================================================
389
+
390
+ Creative Commons is not a party to its public
391
+ licenses. Notwithstanding, Creative Commons may elect to apply one of
392
+ its public licenses to material it publishes and in those instances
393
+ will be considered the “Licensor.” The text of the Creative Commons
394
+ public licenses is dedicated to the public domain under the CC0 Public
395
+ Domain Dedication. Except for the limited purpose of indicating that
396
+ material is shared under a Creative Commons public license or as
397
+ otherwise permitted by the Creative Commons policies published at
398
+ creativecommons.org/policies, Creative Commons does not authorize the
399
+ use of the trademark "Creative Commons" or any other trademark or logo
400
+ of Creative Commons without its prior written consent including,
401
+ without limitation, in connection with any unauthorized modifications
402
+ to any of its public licenses or any other arrangements,
403
+ understandings, or agreements concerning use of licensed material. For
404
+ the avoidance of doubt, this paragraph does not form part of the
405
+ public licenses.
406
+
407
+ Creative Commons may be contacted at creativecommons.org.
408
+
README.md ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ language:
4
+ - en
5
+ - zh
6
+ pretty_name: SONAR
7
+ task_categories: [audio-classification]
8
+ size_categories: [1K<n<10K]
9
+ configs:
10
+ - config_name: default
11
+ data_files:
12
+ - {split: test, path: "data/test-*.parquet"}
13
+ tags:
14
+ - anti-spoofing
15
+ - audio-deepfake-detection
16
+ - speech
17
+ - benchmark
18
+ - arena-ready
19
+ arxiv:
20
+ - "2410.04324"
21
+ ---
22
+
23
+ # SONAR
24
+
25
+ Benchmark-ready packaging of the **SONAR** synthetic-audio detection evaluation set
26
+ ([arXiv 2410.04324](https://arxiv.org/abs/2410.04324)), for speech anti-spoofing and
27
+ synthetic / deepfake voice detection.
28
+
29
+ ## Overview
30
+
31
+ SONAR is a balanced binary-classification benchmark: **bonafide** (genuine human speech)
32
+ vs. **spoof** (AI-synthesized speech). The spoof side aggregates clips from **nine modern
33
+ speech-synthesis systems**, deliberately spanning architectures and providers so that a
34
+ detector cannot win by memorising one generator's artifacts. The bonafide side is an equal
35
+ number of real clips sampled from the **LibriTTS** clean-test set. Original code and data:
36
+ https://github.com/Jessegator/SONAR.
37
+
38
+ | Side | Source | n |
39
+ |------|--------|---|
40
+ | bonafide | LibriTTS clean-test | 2274 |
41
+ | spoof | OpenAI TTS | 600 |
42
+ | spoof | xTTS | 600 |
43
+ | spoof | Seed-TTS (en 300 + zh 300) | 600 |
44
+ | spoof | FlashSpeech | 118 |
45
+ | spoof | VoiceBox | 104 |
46
+ | spoof | AudioGen | 100 |
47
+ | spoof | VALL-E | 95 |
48
+ | spoof | NaturalSpeech 3 | 32 |
49
+ | spoof | PromptTTS 2 | 25 |
50
+
51
+ ## License & redistribution
52
+
53
+ This **packaging** is released under the **Creative Commons Attribution-NonCommercial 4.0
54
+ International (CC BY-NC 4.0)** license — see `LICENSE.txt`. SONAR is an aggregate of audio
55
+ from multiple synthesis systems and from LibriTTS, each carrying its own upstream terms; the
56
+ original authors note that the constituent sources "may be subject to different distribution
57
+ licenses and usage restrictions." This repackaging is provided **for non-commercial research
58
+ use only**; the underlying sources retain their own terms, and downstream users should
59
+ consult the respective upstream providers' usage policies. Audio is re-encoded to 16 kHz mono
60
+ FLAC for a uniform schema; labels are unmodified.
61
+
62
+ ## Schema
63
+
64
+ | Column | Type | Description |
65
+ |--------|------|-------------|
66
+ | `path` | `string` | source-relative path (e.g. `OpenAI/alloy_69.wav`), unique |
67
+ | `audio` | `Audio(16000)` | 16 kHz mono FLAC (re-encoded from heterogeneous source wav/mp3) |
68
+ | `label` | `ClassLabel` | `"bonafide"` (0) / `"spoof"` (1) |
69
+ | `notes` | `string` | JSON: `utterance_id`, `system`, `language` |
70
+
71
+ `notes` example:
72
+ ```json
73
+ {"utterance_id": "SONAR_OpenAI_alloy_69", "system": "OpenAI", "language": "en"}
74
+ ```
75
+
76
+ ## Quick Start
77
+
78
+ ```python
79
+ from datasets import load_dataset
80
+
81
+ ds = load_dataset("SpeechAntiSpoofingBenchmarks/SONAR", split="test")
82
+ print(ds[0])
83
+ ```
84
+
85
+ ## Stats
86
+
87
+ | Stat | Value |
88
+ |------|-------|
89
+ | Total trials | 4548 |
90
+ | Bonafide | 2274 |
91
+ | Spoof | 2274 |
92
+
93
+ ## Source provenance
94
+
95
+ - Paper: https://arxiv.org/abs/2410.04324
96
+ - Code / data: https://github.com/Jessegator/SONAR
97
+ - Labels derived from the source directory layout (`real_samples/` = bonafide; the nine
98
+ synthesis-system directories = spoof).
99
+
100
+ ## Evaluation
101
+
102
+ For evaluation instructions and submission format, see [`submissions/README.md`](submissions/README.md).
103
+
104
+ ## Citation
105
+
106
+ ```bibtex
107
+ @article{li2024sonar,
108
+ title = {Where are we in audio deepfake detection? A systematic analysis over
109
+ generative and detection models},
110
+ author = {Li, Xiang and Chen, Pin-Yu and Wei, Wenqi},
111
+ journal = {arXiv preprint arXiv:2410.04324},
112
+ year = {2024}
113
+ }
114
+ ```
115
+
116
+ ## Maintainer
117
+
118
+ Contact: k.n.borodin@mtuci.ru
build_parquet.py ADDED
@@ -0,0 +1,337 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Parquet build for the SONAR HF dataset repo.
2
+
3
+ SONAR (arXiv 2410.04324) is a synthetic-audio detection benchmark: 2274 real
4
+ clips (LibriTTS clean-test, in ``real_samples/``) plus 2274 fake clips from nine
5
+ synthesis systems, each in its own top-level directory. There is **no protocol
6
+ file** -- the label is the top-level directory (``real_samples`` = bonafide,
7
+ every other dir = spoof). ``seedtts.csv`` is only the SeedTTS 600-file selection
8
+ list and is already materialised on disk, so we ignore it and walk the tree.
9
+
10
+ Always re-encode
11
+ ----------------
12
+ The source is heterogeneous ``.wav``: sample rates 16 kHz **and** 24 kHz, subtypes
13
+ PCM_16 / PCM_24 / FLOAT, and the ``OpenAI/`` dir is actually MP3 inside a ``.wav``
14
+ name. A raw-byte embed would therefore ship non-16 kHz / non-PCM bytes that fail
15
+ the validator's D3 / row-0 checks, so this builder ALWAYS re-encodes every clip
16
+ with librosa -> clean 16 kHz mono FLAC into a staging dir (Stage 1), then
17
+ assembles shards from the clean staging files (Stage 2). A whole-set soundfile
18
+ decode probe still runs as a reporting gate. A non-silence guard rejects
19
+ all-zero re-encodes (FLOAT-wav-read-as-int gotcha).
20
+
21
+ Two stages, fully parallel, resumable. Sample mode (--limit N): first N rows into
22
+ a single shard, skipping the full-count asserts (fast offline validate pass).
23
+ """
24
+
25
+ import argparse
26
+ import io
27
+ import json
28
+ import os
29
+ import random
30
+ import tempfile
31
+ import warnings
32
+ from concurrent.futures import ProcessPoolExecutor
33
+ from pathlib import Path
34
+
35
+ warnings.filterwarnings("ignore", message="PySoundFile failed")
36
+ warnings.filterwarnings("ignore", category=FutureWarning, module="librosa")
37
+
38
+ import datasets # noqa: E402
39
+ import librosa # noqa: E402
40
+ import numpy as np # noqa: E402
41
+ import soundfile as sf # noqa: E402
42
+ from datasets import Audio, ClassLabel, Dataset, Features, Value # noqa: E402
43
+ from tqdm.auto import tqdm # noqa: E402
44
+
45
+ try:
46
+ datasets.disable_progress_bars()
47
+ except AttributeError: # older datasets
48
+ from datasets.utils.logging import disable_progress_bar
49
+
50
+ disable_progress_bar()
51
+
52
+ REPO_ROOT = Path(__file__).resolve().parent
53
+ SRC_ROOT = Path("/home/kirill/mnt/users_4tb/datasets/sonar")
54
+ REAL_DIR = "real_samples" # bonafide; every other top-level dir is spoof
55
+ PARQUET_DIR = REPO_ROOT / "data"
56
+ STAGING_DIR = REPO_ROOT / "_clean_flac"
57
+ NUM_SHARDS = 2
58
+ EXPECTED_ROWS = 4548
59
+ EXPECTED_BONAFIDE = 2274
60
+ EXPECTED_SPOOF = 2274
61
+ TARGET_SR = 16000
62
+ PROBE_SAMPLE = 4548 # whole set
63
+ WORKERS = int(os.environ.get("SONAR_BUILD_WORKERS", os.cpu_count() or 4))
64
+
65
+ FEATURES = Features(
66
+ {
67
+ "path": Value("string"),
68
+ "audio": Audio(sampling_rate=16000),
69
+ "label": ClassLabel(names=["bonafide", "spoof"]),
70
+ "notes": Value("string"),
71
+ }
72
+ )
73
+
74
+
75
+ def _uid(relpath):
76
+ """Stable unique id from the relative path (the immutable join key)."""
77
+ stem = relpath[:-4] if relpath.lower().endswith(".wav") else relpath
78
+ return "SONAR_" + stem.replace("/", "_").replace(" ", "_")
79
+
80
+
81
+ def build_catalogue():
82
+ """Walk SRC_ROOT for every .wav; label by top-level directory."""
83
+ records = []
84
+ for path in SRC_ROOT.rglob("*.wav"):
85
+ relpath = path.relative_to(SRC_ROOT).as_posix()
86
+ system = relpath.split("/", 1)[0]
87
+ label = "bonafide" if system == REAL_DIR else "spoof"
88
+ language = "zh" if "/zh/" in f"/{relpath}" else "en"
89
+ records.append(
90
+ {
91
+ "relpath": relpath,
92
+ "uid": _uid(relpath),
93
+ "system": system,
94
+ "language": language,
95
+ "label": label,
96
+ }
97
+ )
98
+ return records
99
+
100
+
101
+ def build_notes(rec):
102
+ return json.dumps(
103
+ {
104
+ "utterance_id": rec["uid"],
105
+ "system": rec["system"],
106
+ "language": rec["language"],
107
+ }
108
+ )
109
+
110
+
111
+ def _probe_one(relpath):
112
+ try:
113
+ data, _ = sf.read(str(SRC_ROOT / relpath))
114
+ if data.shape[0] == 0:
115
+ return f"{relpath}: empty"
116
+ return None
117
+ except Exception as e: # noqa: BLE001
118
+ return f"{relpath}: {str(e).splitlines()[0][:100]}"
119
+
120
+
121
+ def probe_decodability(records):
122
+ """Whole-set soundfile decode probe (reporting gate)."""
123
+ rng = random.Random(0)
124
+ sample = rng.sample(records, min(PROBE_SAMPLE, len(records)))
125
+ paths = [r["relpath"] for r in sample]
126
+ failures = []
127
+ with ProcessPoolExecutor(max_workers=WORKERS) as ex:
128
+ for err in ex.map(_probe_one, paths, chunksize=32):
129
+ if err:
130
+ failures.append(err)
131
+ print(f"Probe: {len(failures)}/{len(paths)} clips failed soundfile decode")
132
+ for f in failures[:10]:
133
+ print(f" {f}")
134
+ return failures
135
+
136
+
137
+ def _clip_duration(relpath):
138
+ y, _ = librosa.load(str(SRC_ROOT / relpath), sr=TARGET_SR, mono=True)
139
+ return len(y) / TARGET_SR
140
+
141
+
142
+ def _ensure_long_first_row(records):
143
+ """Swap a clip with duration >= 1.0s to index 0 (validator D3 checks row 0)."""
144
+ for i in range(len(records)):
145
+ if _clip_duration(records[i]["relpath"]) >= 1.0:
146
+ if i != 0:
147
+ records[0], records[i] = records[i], records[0]
148
+ return
149
+ raise RuntimeError("No clip with duration >= 1.0s found")
150
+
151
+
152
+ def _reencode_worker(task):
153
+ """Re-encode one source clip -> clean 16 kHz mono FLAC. Resumable + atomic."""
154
+ uid, relpath = task
155
+ dst = STAGING_DIR / f"{uid}.flac"
156
+ if dst.exists() and dst.stat().st_size > 0:
157
+ return (uid, None)
158
+ try:
159
+ y, _ = librosa.load(str(SRC_ROOT / relpath), sr=TARGET_SR, mono=True)
160
+ if y.size == 0:
161
+ return (uid, "empty after decode")
162
+ # Non-silence guard: a FLOAT wav misread as int yields all-zeros.
163
+ if not np.any(np.abs(y) > 1e-6):
164
+ return (uid, "all-silence after decode")
165
+ tmp = STAGING_DIR / f".{uid}.flac.tmp"
166
+ sf.write(str(tmp), y, TARGET_SR, format="FLAC")
167
+ os.replace(tmp, dst)
168
+ return (uid, None)
169
+ except Exception as e: # noqa: BLE001
170
+ return (uid, str(e).splitlines()[0][:120])
171
+
172
+
173
+ def stage1_reencode(records):
174
+ STAGING_DIR.mkdir(parents=True, exist_ok=True)
175
+ tasks = [(r["uid"], r["relpath"]) for r in records]
176
+ total = len(tasks)
177
+ print(f"Stage 1: re-encoding {total} files with {WORKERS} workers -> {STAGING_DIR}")
178
+ failures = []
179
+ with ProcessPoolExecutor(max_workers=WORKERS) as ex:
180
+ for uid, err in tqdm(
181
+ ex.map(_reencode_worker, tasks, chunksize=32),
182
+ total=total,
183
+ desc="Stage 1 re-encode",
184
+ unit="file",
185
+ ):
186
+ if err:
187
+ failures.append((uid, err))
188
+ print(f"Stage 1 done: {total} processed, {len(failures)} failures")
189
+ if failures:
190
+ for uid, err in failures[:10]:
191
+ print(f" FAIL {uid}: {err}")
192
+ raise RuntimeError(f"{len(failures)} files failed to re-encode")
193
+
194
+
195
+ def _build_shard(task):
196
+ """Worker: build one shard parquet from its row slice. Resumable + atomic."""
197
+ shard_index, rows, num_shards = task
198
+ shard_name = f"test-{shard_index:05d}-of-{num_shards:05d}.parquet"
199
+ final = PARQUET_DIR / shard_name
200
+ if final.exists() and final.stat().st_size > 0:
201
+ return (shard_index, len(rows), "skipped")
202
+
203
+ def row_gen():
204
+ for rec in rows:
205
+ uid = rec["uid"]
206
+ yield {
207
+ "path": rec["relpath"],
208
+ "audio": {
209
+ "bytes": (STAGING_DIR / f"{uid}.flac").read_bytes(),
210
+ "path": rec["relpath"],
211
+ },
212
+ "label": rec["label"],
213
+ "notes": build_notes(rec),
214
+ }
215
+
216
+ with tempfile.TemporaryDirectory() as cache:
217
+ ds = Dataset.from_generator(row_gen, features=FEATURES, cache_dir=cache)
218
+ tmp = PARQUET_DIR / f".{shard_name}.tmp"
219
+ ds.to_parquet(str(tmp))
220
+ os.replace(tmp, final)
221
+ return (shard_index, len(rows), "built")
222
+
223
+
224
+ def _partition(records, num_shards):
225
+ n = len(records)
226
+ per = (n + num_shards - 1) // num_shards
227
+ out = []
228
+ for i in range(num_shards):
229
+ chunk = records[i * per : (i + 1) * per]
230
+ if chunk:
231
+ out.append(chunk)
232
+ return out
233
+
234
+
235
+ def build():
236
+ parser = argparse.ArgumentParser()
237
+ parser.add_argument("--limit", type=int, default=None)
238
+ args = parser.parse_args()
239
+ limit = args.limit
240
+ sample_mode = limit is not None
241
+
242
+ print(f"Scanning {SRC_ROOT}")
243
+ records = build_catalogue()
244
+ print(f"Catalogued {len(records)} clips")
245
+ if not sample_mode:
246
+ assert len(records) == EXPECTED_ROWS, f"Expected {EXPECTED_ROWS}, got {len(records)}"
247
+
248
+ # uid is the immutable join key: sort by it for stable sharding.
249
+ records.sort(key=lambda r: r["uid"])
250
+ _ensure_long_first_row(records)
251
+
252
+ probe = records if not sample_mode else records[: max(limit * 4, limit)]
253
+ probe_decodability(probe)
254
+
255
+ if sample_mode:
256
+ records = records[:limit]
257
+ num_shards = 1
258
+ print(f"SAMPLE MODE: {len(records)} rows -> 1 shard")
259
+ else:
260
+ num_shards = NUM_SHARDS
261
+
262
+ bona = sum(1 for r in records if r["label"] == "bonafide")
263
+ spoof = sum(1 for r in records if r["label"] == "spoof")
264
+ print(f" bonafide={bona} spoof={spoof} total={len(records)}")
265
+
266
+ stage1_reencode(records)
267
+
268
+ PARQUET_DIR.mkdir(parents=True, exist_ok=True)
269
+ # Drop stale shards whose total-count suffix differs from this run.
270
+ keep_suffix = f"-of-{num_shards:05d}.parquet"
271
+ for stale in PARQUET_DIR.glob("test-*.parquet"):
272
+ if not stale.name.endswith(keep_suffix):
273
+ print(f"Removing stale shard {stale.name}")
274
+ stale.unlink()
275
+
276
+ shards = _partition(records, num_shards)
277
+ tasks = [(i, rows, num_shards) for i, rows in enumerate(shards)]
278
+ stage2_workers = min(WORKERS, len(tasks))
279
+ print(f"Stage 2: building {len(tasks)} shard(s) with {stage2_workers} workers...")
280
+ built = skipped = 0
281
+ with ProcessPoolExecutor(max_workers=stage2_workers) as ex:
282
+ for idx, n, status in tqdm(
283
+ ex.map(_build_shard, tasks), total=len(tasks), desc="Stage 2 shards", unit="shard"
284
+ ):
285
+ if status == "built":
286
+ built += 1
287
+ elif status == "skipped":
288
+ skipped += 1
289
+ print(f"Stage 2 done: {built} built, {skipped} skipped")
290
+
291
+ _verify(num_shards, sample_mode)
292
+ print("All verifications passed!")
293
+
294
+ if not sample_mode:
295
+ from speech_spoof_bench import labels
296
+
297
+ out = labels.emit_labels(REPO_ROOT)
298
+ print(f"Wrote {out}")
299
+
300
+
301
+ def _verify(num_shards, sample_mode):
302
+ import pyarrow.parquet as pq
303
+
304
+ shards = sorted(PARQUET_DIR.glob("test-*.parquet"))
305
+ total = sum(pq.read_metadata(str(f)).num_rows for f in shards)
306
+ uid_set, path_set, bona, spoof = set(), set(), 0, 0
307
+ for f in shards:
308
+ t = pq.read_table(str(f), columns=["path", "label", "notes"])
309
+ for p, lab, n in zip(
310
+ t.column("path").to_pylist(),
311
+ t.column("label").to_pylist(),
312
+ t.column("notes").to_pylist(),
313
+ ):
314
+ path_set.add(p)
315
+ uid_set.add(json.loads(n)["utterance_id"])
316
+ if lab == 0:
317
+ bona += 1
318
+ elif lab == 1:
319
+ spoof += 1
320
+ assert len(uid_set) == total, "Duplicate utterance_ids"
321
+ assert len(path_set) == total, "Duplicate paths"
322
+ if not sample_mode:
323
+ assert total == EXPECTED_ROWS, f"{total} != {EXPECTED_ROWS}"
324
+ assert bona == EXPECTED_BONAFIDE, f"bonafide {bona} != {EXPECTED_BONAFIDE}"
325
+ assert spoof == EXPECTED_SPOOF, f"spoof {spoof} != {EXPECTED_SPOOF}"
326
+ t0 = pq.read_table(str(shards[0]))
327
+ assert set(t0.column_names) == {"path", "audio", "label", "notes"}, t0.column_names
328
+ audio0 = t0.column("audio")[0].as_py()
329
+ data, sr = sf.read(io.BytesIO(audio0["bytes"]))
330
+ dur = len(data) / sr
331
+ assert sr == 16000, f"row0 sr {sr} != 16000"
332
+ assert dur >= 1.0, f"row0 dur {dur:.2f}s < 1.0s"
333
+ print(f" verify: {total} rows, row0 {sr}Hz {dur:.2f}s decodable OK")
334
+
335
+
336
+ if __name__ == "__main__":
337
+ build()
data/labels.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9edb7158cc6241bed48edcff96d10dc85f3b977b911dc4cd26ae3144584cb7c6
3
+ size 35013
data/test-00000-of-00002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a1b7ebe9290425834bf8fcd0e471806247c68fa0a36979372e6a7d7a0f08f750
3
+ size 288064744
data/test-00001-of-00002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fe7259b670680394ca2e1d4477ba41e2ac0b6bb940c61ef8014a1e1487002e32
3
+ size 290017252
eval.yaml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: SONAR
2
+ description: >
3
+ SONAR synthetic-audio detection benchmark (arXiv 2410.04324). Balanced binary
4
+ classification: 2274 bonafide (LibriTTS clean-test) vs. 2274 spoof aggregated
5
+ from nine speech-synthesis systems (OpenAI TTS, xTTS, Seed-TTS, FlashSpeech,
6
+ VoiceBox, AudioGen, VALL-E, NaturalSpeech 3, PromptTTS 2). EER computed over all
7
+ 4548 utterances.
8
+ evaluation_framework: inspect-ai
9
+
10
+ tasks:
11
+ - id: antispoofing_eval
12
+ config: default
13
+ split: test
14
+
15
+ field_spec:
16
+ input: audio
17
+ target: label
18
+
19
+ solvers:
20
+ - name: speech_spoof_bench_solver
21
+
22
+ scorers:
23
+ - name: speech_spoof_scorer
24
+
25
+ metrics:
26
+ - eer_percent
submissions/README.md ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Benchmark Submissions
2
+
3
+ To submit a result, you'll upload two files (no git clone required):
4
+
5
+ 1. **`scores.txt`** to **your own HF model repo** under `.eval_results/SpeechAntiSpoofingBenchmarks/SONAR/scores.txt`.
6
+ 2. **`<your-slug>.yaml`** as a pull request to **this dataset repo** under `submissions/<your-slug>.yaml`.
7
+
8
+ The YAML in this repo carries a pinned URL pointing at your `scores.txt`, plus its sha256. Scores files do not live in this repo.
9
+
10
+ ## Submitter workflow
11
+
12
+ ### 1. Generate `scores.txt` locally
13
+
14
+ ```bash
15
+ speech-spoof-bench run \
16
+ --model-module <your_package>:<YourModelClass> \
17
+ --datasets SpeechAntiSpoofingBenchmarks/SONAR
18
+ ```
19
+
20
+ Output: `results/SONAR/scores.txt` (one line per utterance, `<utterance_id> <score>`, higher = more bonafide).
21
+
22
+ ### 2. Upload `scores.txt` to your model repo
23
+
24
+ ```bash
25
+ huggingface-cli upload <your-owner>/<your-model-repo> \
26
+ results/SONAR/scores.txt \
27
+ .eval_results/SpeechAntiSpoofingBenchmarks/SONAR/scores.txt \
28
+ --repo-type=model \
29
+ --commit-message="Add SONAR scores"
30
+ ```
31
+
32
+ **Note the commit sha** the CLI prints — you'll need it in the next step.
33
+
34
+ ### 3. Fill in the submission YAML
35
+
36
+ Copy `results_template.yaml` to `<your-slug>.yaml` and fill in every field. The two most important fields:
37
+
38
+ - `artifact.scores_url`: the **pinned** URL to your uploaded scores file. Use the commit sha from step 2, not `main`:
39
+ ```
40
+ https://huggingface.co/<your-owner>/<your-model-repo>/resolve/<commit-sha-from-step-2>/.eval_results/SpeechAntiSpoofingBenchmarks/SONAR/scores.txt
41
+ ```
42
+ URLs with `/resolve/main/` are rejected because they're mutable.
43
+ - `artifact.scores_sha256`: `sha256sum results/SONAR/scores.txt | awk '{print $1}'`.
44
+
45
+ Leave the `reproduction:` block empty — the maintainer fills it in at merge time.
46
+
47
+ ### 4. Open the PR via HF CLI
48
+
49
+ ```bash
50
+ huggingface-cli upload \
51
+ SpeechAntiSpoofingBenchmarks/SONAR \
52
+ <your-slug>.yaml submissions/<your-slug>.yaml \
53
+ --repo-type=dataset \
54
+ --create-pr \
55
+ --commit-message="Add <your-slug> submission"
56
+ ```
57
+
58
+ The CLI prints a PR URL. That's it.
59
+
60
+ ### 5. Wait for maintainer reproduction
61
+
62
+ A maintainer runs `speech-spoof-bench reproduce --scoring <PR-branch>`, which:
63
+ - Fetches `scores_url`.
64
+ - Verifies the sha256 against `artifact.scores_sha256`.
65
+ - Recomputes EER from the file.
66
+ - Compares to your claimed `scores.eer_percent` (must match within 1e-6).
67
+
68
+ If it passes, the maintainer fills in `reproduction:` and merges. If it fails, you get a comment on the PR explaining why.
69
+
70
+ ## Verification levels
71
+
72
+ | Level | What the maintainer checks | Cost |
73
+ |---|---|---|
74
+ | `scoring` (default) | sha + recomputed EER from your `scores.txt`. | Seconds. |
75
+ | `inference` (optional, follow-up) | Re-runs your checkpoint end-to-end and regenerates `scores.txt`. Must match within 0.05% EER. | Expensive. |
76
+
77
+ Submissions without a `reproduction:` block never appear in the arena.
78
+
79
+ ## What about git clone + push?
80
+
81
+ You can do it that way too, but for a single 2 KB YAML it's massively heavier. The HF CLI path is the documented one.
submissions/results_template.yaml ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version: 4
2
+
3
+ system:
4
+ name: ""
5
+ slug: ""
6
+ description: ""
7
+ code: ""
8
+ checkpoint: ""
9
+ paper:
10
+ arxiv_id: ""
11
+ url: ""
12
+ bibtex: |
13
+ @article{...}
14
+
15
+ dataset:
16
+ id: SpeechAntiSpoofingBenchmarks/SONAR
17
+ revision: ""
18
+ split: test
19
+
20
+ scores:
21
+ eer_percent: 0.0
22
+ n_trials: 4548
23
+ n_skipped: 0
24
+
25
+ artifact:
26
+ # Must be pinned by commit sha. Pattern:
27
+ # https://huggingface.co/<owner>/<repo>/resolve/<commit-sha>/.eval_results/SpeechAntiSpoofingBenchmarks/SONAR/scores.txt
28
+ scores_url: ""
29
+ scores_sha256: ""
30
+ bench_version: ""
31
+
32
+ # Leave this block empty — the maintainer fills it in at merge.
33
+ reproduction:
34
+ reproduced_by: ""
35
+ reproduced_at: ""
36
+ reproduced_bench_version: ""
37
+ match: ""
38
+
39
+ submitter:
40
+ hf_username: ""
41
+ contact: ""
42
+
43
+ submitted_at: ""
44
+ notes: ""