MLSpeech commited on
Commit
b5879fa
·
verified ·
1 Parent(s): 824a8cd

LICENSE added

Browse files
Files changed (1) hide show
  1. LICENSE +444 -0
LICENSE ADDED
@@ -0,0 +1,444 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ 1. This work is built upon or includes components of "Whisper" code licensed under the MIT License as follows:
3
+
4
+ MIT License
5
+
6
+ Copyright (c) 2022 OpenAI
7
+
8
+ Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ of this software and associated documentation files (the "Software"), to deal
10
+ in the Software without restriction, including without limitation the rights
11
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ copies of the Software, and to permit persons to whom the Software is
13
+ furnished to do so, subject to the following conditions:
14
+
15
+ The above copyright notice and this permission notice shall be included in all
16
+ copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ SOFTWARE.
25
+
26
+ 2. The modifications/work detailed in:
27
+
28
+ modifications/additions:
29
+ whisper_stream/__init__.py: function load_streaming_model, function load_streaming_model_for_train
30
+ whisper_stream/audio.py: class MyStream, class SpectrogramStream
31
+ whisper_stream/streaming_decoding.py: class StreamingDecoder, class BeamStreamingDecoder
32
+ whisper_stream/streaming_model.py: class StreamingAudioEncoder (kv_cache additions in forward), class StreamingTextDecoder (kv_cache for beam search in streaming), function install_decoder_kv_cache_hooks.
33
+ whisper_stream/streaming_transcribe.py
34
+
35
+
36
+ is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License as follows:
37
+
38
+ Attribution-NonCommercial 4.0 International
39
+
40
+ =======================================================================
41
+
42
+ Creative Commons Corporation ("Creative Commons") is not a law firm and
43
+ does not provide legal services or legal advice. Distribution of
44
+ Creative Commons public licenses does not create a lawyer-client or
45
+ other relationship. Creative Commons makes its licenses and related
46
+ information available on an "as-is" basis. Creative Commons gives no
47
+ warranties regarding its licenses, any material licensed under their
48
+ terms and conditions, or any related information. Creative Commons
49
+ disclaims all liability for damages resulting from their use to the
50
+ fullest extent possible.
51
+
52
+ Using Creative Commons Public Licenses
53
+
54
+ Creative Commons public licenses provide a standard set of terms and
55
+ conditions that creators and other rights holders may use to share
56
+ original works of authorship and other material subject to copyright
57
+ and certain other rights specified in the public license below. The
58
+ following considerations are for informational purposes only, are not
59
+ exhaustive, and do not form part of our licenses.
60
+
61
+ Considerations for licensors: Our public licenses are
62
+ intended for use by those authorized to give the public
63
+ permission to use material in ways otherwise restricted by
64
+ copyright and certain other rights. Our licenses are
65
+ irrevocable. Licensors should read and understand the terms
66
+ and conditions of the license they choose before applying it.
67
+ Licensors should also secure all rights necessary before
68
+ applying our licenses so that the public can reuse the
69
+ material as expected. Licensors should clearly mark any
70
+ material not subject to the license. This includes other CC-
71
+ licensed material, or material used under an exception or
72
+ limitation to copyright. More considerations for licensors:
73
+ wiki.creativecommons.org/Considerations_for_licensors
74
+
75
+ Considerations for the public: By using one of our public
76
+ licenses, a licensor grants the public permission to use the
77
+ licensed material under specified terms and conditions. If
78
+ the licensor's permission is not necessary for any reason--for
79
+ example, because of any applicable exception or limitation to
80
+ copyright--then that use is not regulated by the license. Our
81
+ licenses grant only permissions under copyright and certain
82
+ other rights that a licensor has authority to grant. Use of
83
+ the licensed material may still be restricted for other
84
+ reasons, including because others have copyright or other
85
+ rights in the material. A licensor may make special requests,
86
+ such as asking that all changes be marked or described.
87
+ Although not required by our licenses, you are encouraged to
88
+ respect those requests where reasonable. More considerations
89
+ for the public:
90
+ wiki.creativecommons.org/Considerations_for_licensees
91
+
92
+ =======================================================================
93
+
94
+ Creative Commons Attribution-NonCommercial 4.0 International Public
95
+ License
96
+
97
+ By exercising the Licensed Rights (defined below), You accept and agree
98
+ to be bound by the terms and conditions of this Creative Commons
99
+ Attribution-NonCommercial 4.0 International Public License ("Public
100
+ License"). To the extent this Public License may be interpreted as a
101
+ contract, You are granted the Licensed Rights in consideration of Your
102
+ acceptance of these terms and conditions, and the Licensor grants You
103
+ such rights in consideration of benefits the Licensor receives from
104
+ making the Licensed Material available under these terms and
105
+ conditions.
106
+
107
+
108
+ Section 1 -- Definitions.
109
+
110
+ a. Adapted Material means material subject to Copyright and Similar
111
+ Rights that is derived from or based upon the Licensed Material
112
+ and in which the Licensed Material is translated, altered,
113
+ arranged, transformed, or otherwise modified in a manner requiring
114
+ permission under the Copyright and Similar Rights held by the
115
+ Licensor. For purposes of this Public License, where the Licensed
116
+ Material is a musical work, performance, or sound recording,
117
+ Adapted Material is always produced where the Licensed Material is
118
+ synched in timed relation with a moving image.
119
+
120
+ b. Adapter's License means the license You apply to Your Copyright
121
+ and Similar Rights in Your contributions to Adapted Material in
122
+ accordance with the terms and conditions of this Public License.
123
+
124
+ c. Copyright and Similar Rights means copyright and/or similar rights
125
+ closely related to copyright including, without limitation,
126
+ performance, broadcast, sound recording, and Sui Generis Database
127
+ Rights, without regard to how the rights are labeled or
128
+ categorized. For purposes of this Public License, the rights
129
+ specified in Section 2(b)(1)-(2) are not Copyright and Similar
130
+ Rights.
131
+ d. Effective Technological Measures means those measures that, in the
132
+ absence of proper authority, may not be circumvented under laws
133
+ fulfilling obligations under Article 11 of the WIPO Copyright
134
+ Treaty adopted on December 20, 1996, and/or similar international
135
+ agreements.
136
+
137
+ e. Exceptions and Limitations means fair use, fair dealing, and/or
138
+ any other exception or limitation to Copyright and Similar Rights
139
+ that applies to Your use of the Licensed Material.
140
+
141
+ f. Licensed Material means the artistic or literary work, database,
142
+ or other material to which the Licensor applied this Public
143
+ License.
144
+
145
+ g. Licensed Rights means the rights granted to You subject to the
146
+ terms and conditions of this Public License, which are limited to
147
+ all Copyright and Similar Rights that apply to Your use of the
148
+ Licensed Material and that the Licensor has authority to license.
149
+
150
+ h. Licensor means the individual(s) or entity(ies) granting rights
151
+ under this Public License.
152
+
153
+ i. NonCommercial means not primarily intended for or directed towards
154
+ commercial advantage or monetary compensation. For purposes of
155
+ this Public License, the exchange of the Licensed Material for
156
+ other material subject to Copyright and Similar Rights by digital
157
+ file-sharing or similar means is NonCommercial provided there is
158
+ no payment of monetary compensation in connection with the
159
+ exchange.
160
+
161
+ j. Share means to provide material to the public by any means or
162
+ process that requires permission under the Licensed Rights, such
163
+ as reproduction, public display, public performance, distribution,
164
+ dissemination, communication, or importation, and to make material
165
+ available to the public including in ways that members of the
166
+ public may access the material from a place and at a time
167
+ individually chosen by them.
168
+
169
+ k. Sui Generis Database Rights means rights other than copyright
170
+ resulting from Directive 96/9/EC of the European Parliament and of
171
+ the Council of 11 March 1996 on the legal protection of databases,
172
+ as amended and/or succeeded, as well as other essentially
173
+ equivalent rights anywhere in the world.
174
+
175
+ l. You means the individual or entity exercising the Licensed Rights
176
+ under this Public License. Your has a corresponding meaning.
177
+
178
+
179
+ Section 2 -- Scope.
180
+
181
+ a. License grant.
182
+
183
+ 1. Subject to the terms and conditions of this Public License,
184
+ the Licensor hereby grants You a worldwide, royalty-free,
185
+ non-sublicensable, non-exclusive, irrevocable license to
186
+ exercise the Licensed Rights in the Licensed Material to:
187
+
188
+ a. reproduce and Share the Licensed Material, in whole or
189
+ in part, for NonCommercial purposes only; and
190
+
191
+ b. produce, reproduce, and Share Adapted Material for
192
+ NonCommercial purposes only.
193
+
194
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
195
+ Exceptions and Limitations apply to Your use, this Public
196
+ License does not apply, and You do not need to comply with
197
+ its terms and conditions.
198
+
199
+ 3. Term. The term of this Public License is specified in Section
200
+ 6(a).
201
+
202
+ 4. Media and formats; technical modifications allowed. The
203
+ Licensor authorizes You to exercise the Licensed Rights in
204
+ all media and formats whether now known or hereafter created,
205
+ and to make technical modifications necessary to do so. The
206
+ Licensor waives and/or agrees not to assert any right or
207
+ authority to forbid You from making technical modifications
208
+ necessary to exercise the Licensed Rights, including
209
+ technical modifications necessary to circumvent Effective
210
+ Technological Measures. For purposes of this Public License,
211
+ simply making modifications authorized by this Section 2(a)
212
+ (4) never produces Adapted Material.
213
+
214
+ 5. Downstream recipients.
215
+
216
+ a. Offer from the Licensor -- Licensed Material. Every
217
+ recipient of the Licensed Material automatically
218
+ receives an offer from the Licensor to exercise the
219
+ Licensed Rights under the terms and conditions of this
220
+ Public License.
221
+
222
+ b. No downstream restrictions. You may not offer or impose
223
+ any additional or different terms or conditions on, or
224
+ apply any Effective Technological Measures to, the
225
+ Licensed Material if doing so restricts exercise of the
226
+ Licensed Rights by any recipient of the Licensed
227
+ Material.
228
+
229
+ 6. No endorsement. Nothing in this Public License constitutes or
230
+ may be construed as permission to assert or imply that You
231
+ are, or that Your use of the Licensed Material is, connected
232
+ with, or sponsored, endorsed, or granted official status by,
233
+ the Licensor or others designated to receive attribution as
234
+ provided in Section 3(a)(1)(A)(i).
235
+
236
+ b. Other rights.
237
+
238
+ 1. Moral rights, such as the right of integrity, are not
239
+ licensed under this Public License, nor are publicity,
240
+ privacy, and/or other similar personality rights; however, to
241
+ the extent possible, the Licensor waives and/or agrees not to
242
+ assert any such rights held by the Licensor to the limited
243
+ extent necessary to allow You to exercise the Licensed
244
+ Rights, but not otherwise.
245
+
246
+ 2. Patent and trademark rights are not licensed under this
247
+ Public License.
248
+
249
+ 3. To the extent possible, the Licensor waives any right to
250
+ collect royalties from You for the exercise of the Licensed
251
+ Rights, whether directly or through a collecting society
252
+ under any voluntary or waivable statutory or compulsory
253
+ licensing scheme. In all other cases the Licensor expressly
254
+ reserves any right to collect such royalties, including when
255
+ the Licensed Material is used other than for NonCommercial
256
+ purposes.
257
+
258
+
259
+ Section 3 -- License Conditions.
260
+
261
+ Your exercise of the Licensed Rights is expressly made subject to the
262
+ following conditions.
263
+
264
+ a. Attribution.
265
+
266
+ 1. If You Share the Licensed Material (including in modified
267
+ form), You must:
268
+
269
+ a. retain the following if it is supplied by the Licensor
270
+ with the Licensed Material:
271
+
272
+ i. identification of the creator(s) of the Licensed
273
+ Material and any others designated to receive
274
+ attribution, in any reasonable manner requested by
275
+ the Licensor (including by pseudonym if
276
+ designated);
277
+
278
+ ii. a copyright notice;
279
+
280
+ iii. a notice that refers to this Public License;
281
+
282
+ iv. a notice that refers to the disclaimer of
283
+ warranties;
284
+
285
+ v. a URI or hyperlink to the Licensed Material to the
286
+ extent reasonably practicable;
287
+
288
+ b. indicate if You modified the Licensed Material and
289
+ retain an indication of any previous modifications; and
290
+
291
+ c. indicate the Licensed Material is licensed under this
292
+ Public License, and include the text of, or the URI or
293
+ hyperlink to, this Public License.
294
+
295
+ 2. You may satisfy the conditions in Section 3(a)(1) in any
296
+ reasonable manner based on the medium, means, and context in
297
+ which You Share the Licensed Material. For example, it may be
298
+ reasonable to satisfy the conditions by providing a URI or
299
+ hyperlink to a resource that includes the required
300
+ information.
301
+
302
+ 3. If requested by the Licensor, You must remove any of the
303
+ information required by Section 3(a)(1)(A) to the extent
304
+ reasonably practicable.
305
+
306
+ 4. If You Share Adapted Material You produce, the Adapter's
307
+ License You apply must not prevent recipients of the Adapted
308
+ Material from complying with this Public License.
309
+
310
+
311
+ Section 4 -- Sui Generis Database Rights.
312
+
313
+ Where the Licensed Rights include Sui Generis Database Rights that
314
+ apply to Your use of the Licensed Material:
315
+
316
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right
317
+ to extract, reuse, reproduce, and Share all or a substantial
318
+ portion of the contents of the database for NonCommercial purposes
319
+ only;
320
+
321
+ b. if You include all or a substantial portion of the database
322
+ contents in a database in which You have Sui Generis Database
323
+ Rights, then the database in which You have Sui Generis Database
324
+ Rights (but not its individual contents) is Adapted Material; and
325
+
326
+ c. You must comply with the conditions in Section 3(a) if You Share
327
+ all or a substantial portion of the contents of the database.
328
+
329
+ For the avoidance of doubt, this Section 4 supplements and does not
330
+ replace Your obligations under this Public License where the Licensed
331
+ Rights include other Copyright and Similar Rights.
332
+
333
+
334
+ Section 5 -- Disclaimer of Warranties and Limitation of Liability.
335
+
336
+ a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
337
+ EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
338
+ AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
339
+ ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
340
+ IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
341
+ WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
342
+ PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
343
+ ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
344
+ KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
345
+ ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
346
+
347
+ b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
348
+ TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
349
+ NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
350
+ INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
351
+ COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
352
+ USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
353
+ ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
354
+ DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
355
+ IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
356
+
357
+ c. The disclaimer of warranties and limitation of liability provided
358
+ above shall be interpreted in a manner that, to the extent
359
+ possible, most closely approximates an absolute disclaimer and
360
+ waiver of all liability.
361
+
362
+
363
+ Section 6 -- Term and Termination.
364
+
365
+ a. This Public License applies for the term of the Copyright and
366
+ Similar Rights licensed here. However, if You fail to comply with
367
+ this Public License, then Your rights under this Public License
368
+ terminate automatically.
369
+
370
+ b. Where Your right to use the Licensed Material has terminated under
371
+ Section 6(a), it reinstates:
372
+
373
+ 1. automatically as of the date the violation is cured, provided
374
+ it is cured within 30 days of Your discovery of the
375
+ violation; or
376
+
377
+ 2. upon express reinstatement by the Licensor.
378
+
379
+ For the avoidance of doubt, this Section 6(b) does not affect any
380
+ right the Licensor may have to seek remedies for Your violations
381
+ of this Public License.
382
+
383
+ c. For the avoidance of doubt, the Licensor may also offer the
384
+ Licensed Material under separate terms or conditions or stop
385
+ distributing the Licensed Material at any time; however, doing so
386
+ will not terminate this Public License.
387
+
388
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
389
+ License.
390
+
391
+
392
+ Section 7 -- Other Terms and Conditions.
393
+
394
+ a. The Licensor shall not be bound by any additional or different
395
+ terms or conditions communicated by You unless expressly agreed.
396
+
397
+ b. Any arrangements, understandings, or agreements regarding the
398
+ Licensed Material not stated herein are separate from and
399
+ independent of the terms and conditions of this Public License.
400
+
401
+
402
+ Section 8 -- Interpretation.
403
+
404
+ a. For the avoidance of doubt, this Public License does not, and
405
+ shall not be interpreted to, reduce, limit, restrict, or impose
406
+ conditions on any use of the Licensed Material that could lawfully
407
+ be made without permission under this Public License.
408
+
409
+ b. To the extent possible, if any provision of this Public License is
410
+ deemed unenforceable, it shall be automatically reformed to the
411
+ minimum extent necessary to make it enforceable. If the provision
412
+ cannot be reformed, it shall be severed from this Public License
413
+ without affecting the enforceability of the remaining terms and
414
+ conditions.
415
+
416
+ c. No term or condition of this Public License will be waived and no
417
+ failure to comply consented to unless expressly agreed to by the
418
+ Licensor.
419
+
420
+ d. Nothing in this Public License constitutes or may be interpreted
421
+ as a limitation upon, or waiver of, any privileges and immunities
422
+ that apply to the Licensor or You, including from the legal
423
+ processes of any jurisdiction or authority.
424
+
425
+ =======================================================================
426
+
427
+ Creative Commons is not a party to its public
428
+ licenses. Notwithstanding, Creative Commons may elect to apply one of
429
+ its public licenses to material it publishes and in those instances
430
+ will be considered the "Licensor." The text of the Creative Commons
431
+ public licenses is dedicated to the public domain under the CC0 Public
432
+ Domain Dedication. Except for the limited purpose of indicating that
433
+ material is shared under a Creative Commons public license or as
434
+ otherwise permitted by the Creative Commons policies published at
435
+ creativecommons.org/policies, Creative Commons does not authorize the
436
+ use of the trademark "Creative Commons" or any other trademark or logo
437
+ of Creative Commons without its prior written consent including,
438
+ without limitation, in connection with any unauthorized modifications
439
+ to any of its public licenses or any other arrangements,
440
+ understandings, or agreements concerning use of licensed material. For
441
+ the avoidance of doubt, this paragraph does not form part of the
442
+ public licenses.
443
+
444
+ Creative Commons may be contacted at creativecommons.org.