sopro 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sopro/__init__.py +6 -0
- sopro/audio.py +155 -0
- sopro/cli.py +185 -0
- sopro/codec/__init__.py +3 -0
- sopro/codec/mimi.py +181 -0
- sopro/config.py +48 -0
- sopro/constants.py +5 -0
- sopro/hub.py +53 -0
- sopro/model.py +853 -0
- sopro/nn/__init__.py +20 -0
- sopro/nn/blocks.py +110 -0
- sopro/nn/embeddings.py +96 -0
- sopro/nn/speaker.py +88 -0
- sopro/nn/xattn.py +98 -0
- sopro/sampling.py +101 -0
- sopro/streaming.py +165 -0
- sopro/tokenizer.py +38 -0
- sopro-1.0.0.dist-info/METADATA +182 -0
- sopro-1.0.0.dist-info/RECORD +23 -0
- sopro-1.0.0.dist-info/WHEEL +5 -0
- sopro-1.0.0.dist-info/entry_points.txt +2 -0
- sopro-1.0.0.dist-info/licenses/LICENSE.txt +201 -0
- sopro-1.0.0.dist-info/top_level.txt +1 -0
sopro/tokenizer.py
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
|
|
5
|
+
try:
|
|
6
|
+
from transformers import AutoTokenizer
|
|
7
|
+
from transformers import logging as hf_logging
|
|
8
|
+
|
|
9
|
+
hf_logging.set_verbosity_error()
|
|
10
|
+
except Exception:
|
|
11
|
+
hf_logging = None
|
|
12
|
+
AutoTokenizer = None
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class TextTokenizer:
|
|
16
|
+
def __init__(self, model_name: str, add_bos_eos: bool = True):
|
|
17
|
+
if AutoTokenizer is None:
|
|
18
|
+
raise ImportError("pip install transformers sentencepiece")
|
|
19
|
+
self.tok = AutoTokenizer.from_pretrained(model_name, use_fast=True)
|
|
20
|
+
self.add_bos_eos = add_bos_eos
|
|
21
|
+
|
|
22
|
+
if self.tok.pad_token_id is None:
|
|
23
|
+
self.tok.add_special_tokens({"pad_token": "<|pad|>"})
|
|
24
|
+
|
|
25
|
+
self.pad_id = int(self.tok.pad_token_id)
|
|
26
|
+
self.bos_id = (
|
|
27
|
+
int(self.tok.bos_token_id) if self.tok.bos_token_id is not None else None
|
|
28
|
+
)
|
|
29
|
+
self.eos_id = (
|
|
30
|
+
int(self.tok.eos_token_id) if self.tok.eos_token_id is not None else None
|
|
31
|
+
)
|
|
32
|
+
self.vocab_size = int(self.tok.vocab_size + len(self.tok.get_added_vocab()))
|
|
33
|
+
|
|
34
|
+
def encode(self, text: str) -> List[int]:
|
|
35
|
+
ids = self.tok.encode(text, add_special_tokens=False)
|
|
36
|
+
if self.add_bos_eos and self.bos_id is not None and self.eos_id is not None:
|
|
37
|
+
ids = [self.bos_id] + ids + [self.eos_id]
|
|
38
|
+
return ids
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: sopro
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: A lightweight text-to-speech model with zero-shot voice cloning.
|
|
5
|
+
Author-email: Samuel Vitorino <samvitorino@gmail.com>
|
|
6
|
+
License: Apache 2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/samuel-vitorino/sopro
|
|
8
|
+
Project-URL: Repository, https://github.com/samuel-vitorino/sopro
|
|
9
|
+
Project-URL: Issues, https://github.com/samuel-vitorino/sopro/issues
|
|
10
|
+
Requires-Python: >=3.9
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
License-File: LICENSE.txt
|
|
13
|
+
Requires-Dist: numpy>=1.23
|
|
14
|
+
Requires-Dist: torch>=2.1
|
|
15
|
+
Requires-Dist: transformers>=4.46.0
|
|
16
|
+
Requires-Dist: huggingface_hub>=0.23
|
|
17
|
+
Requires-Dist: safetensors>=0.4.3
|
|
18
|
+
Requires-Dist: sentencepiece>=0.1.99
|
|
19
|
+
Requires-Dist: soundfile>=0.12.1
|
|
20
|
+
Requires-Dist: torchaudio>=2.1
|
|
21
|
+
Requires-Dist: tqdm>=4.66
|
|
22
|
+
Dynamic: license-file
|
|
23
|
+
|
|
24
|
+
https://github.com/user-attachments/assets/40254391-248f-45ff-b9a4-107d64fbb95f
|
|
25
|
+
|
|
26
|
+
# Sopro TTS
|
|
27
|
+
|
|
28
|
+
[](https://huggingface.co/samuel-vitorino/sopro)
|
|
29
|
+
|
|
30
|
+
Sopro (from the Portuguese word for “breath/blow”) is a lightweight English text-to-speech model I trained as a side project. Sopro is composed of dilated convs (à la WaveNet) and lightweight cross-attention layers, instead of the common Transformer architecture. Even though Sopro is not SOTA across most voices and situations, I still think it’s a cool project made with a very low budget (trained on a single L40S GPU), and it can be improved with better data.
|
|
31
|
+
|
|
32
|
+
Some of the main features are:
|
|
33
|
+
|
|
34
|
+
- **169M parameters**
|
|
35
|
+
- **Streaming**
|
|
36
|
+
- **Zero-shot voice cloning**
|
|
37
|
+
- **0.25 RTF on CPU** (measured on an M3 base model), meaning it generates 30 seconds of audio in 7.5 seconds
|
|
38
|
+
- **3-12 seconds of reference audio** for voice cloning
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## Instructions
|
|
43
|
+
|
|
44
|
+
I only pinned the minimum dependency versions so you can install the package without having to create a separate env. However, some versions of Torch work best. For example, on my M3 CPU, `torch==2.6.0` (without `torchvision`) achieves ~3× more performance.
|
|
45
|
+
|
|
46
|
+
(Optional)
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
conda create -n soprotts python=3.10
|
|
50
|
+
conda activate soprotts
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### From PyPI
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
pip install sopro-tts
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### From the repo
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
git clone https://github.com/samuel-vitorino/sopro
|
|
63
|
+
cd sopro
|
|
64
|
+
pip install -e .
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## Examples
|
|
70
|
+
|
|
71
|
+
### CLI
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
soprotts \
|
|
75
|
+
--text "Sopro is a lightweight 169 million parameter text-to-speech model. Some of the main features are streaming, zero-shot voice cloning, and 0.25 real-time factor on the CPU." \
|
|
76
|
+
--ref_audio ref.wav \
|
|
77
|
+
--out out.wav
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
You have the expected `temperature` and `top_p` parameters, alongside:
|
|
81
|
+
|
|
82
|
+
- `--style_strength` (controls the FiLM strength; increasing it can improve or reduce voice similarity; default `1.0`)
|
|
83
|
+
- `--no_stop_head` to disable early stopping
|
|
84
|
+
- `--stop_threshold` and `--stop_patience` (number of consecutive frames that must be classified as final before **stopping**). For short sentences, the stop head may fail to trigger, in which case you can lower these values. Likewise, if the model stops before producing the full text, adjusting these parameters up can help.
|
|
85
|
+
|
|
86
|
+
### Python
|
|
87
|
+
|
|
88
|
+
#### Non-streaming
|
|
89
|
+
|
|
90
|
+
```python
|
|
91
|
+
from sopro import SoproTTS
|
|
92
|
+
|
|
93
|
+
tts = SoproTTS.from_pretrained("samuel-vitorino/sopro", device="cpu")
|
|
94
|
+
|
|
95
|
+
wav = tts.synthesize(
|
|
96
|
+
"Hello! This is a non-streaming Sopro TTS example.",
|
|
97
|
+
ref_audio_path="ref.wav",
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
tts.save_wav("out.wav", wav)
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
#### Streaming
|
|
104
|
+
|
|
105
|
+
```python
|
|
106
|
+
import torch
|
|
107
|
+
from sopro import SoproTTS
|
|
108
|
+
|
|
109
|
+
tts = SoproTTS.from_pretrained("samuel-vitorino/sopro", device="cpu")
|
|
110
|
+
|
|
111
|
+
chunks = []
|
|
112
|
+
for chunk in tts.stream(
|
|
113
|
+
"Hello! This is a streaming Sopro TTS example.",
|
|
114
|
+
ref_audio_path="ref.mp3",
|
|
115
|
+
):
|
|
116
|
+
chunks.append(chunk.cpu())
|
|
117
|
+
|
|
118
|
+
wav = torch.cat(chunks, dim=-1)
|
|
119
|
+
tts.save_wav("out_stream.wav", wav)
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## Interactive streaming demo
|
|
125
|
+
|
|
126
|
+

|
|
127
|
+
|
|
128
|
+
After you install the `sopro` package:
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
pip install -r demo/requirements.txt
|
|
132
|
+
uvicorn demo.server:app --host 0.0.0.0 --port 8000
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
Or with docker:
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
docker build -t sopro-demo .
|
|
139
|
+
docker run --rm -p 8000:8000 sopro-demo
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
Navigate to http://localhost:8000 on your browser.
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
## Disclaimers
|
|
147
|
+
|
|
148
|
+
- Sopro can be inconsistent, so mess around with the parameters until you get a decent sample.
|
|
149
|
+
- Voice cloning is **highly dependent** on mic quality, ambient noise, etc. On more OOD voices it might fail to match the voice well.
|
|
150
|
+
- Prefer phonemes instead of abbreviations and symbols. For example, `“1 + 2”` → `“1 plus 2”`. That said, Sopro can generally read abbreviations like “CPU”, “TTS”, etc.
|
|
151
|
+
- The streaming version is not bit-exact compared to the non-streaming version. For best quality, prioritize the non-streaming version.
|
|
152
|
+
- If you use torchaudio to read or write audio, ffmpeg may be required. I recommend just using soundfile.
|
|
153
|
+
- I will publish the training code once I have time to organize it.
|
|
154
|
+
|
|
155
|
+
Due to budget constraints, the dataset used for training was pre-tokenized and the raw audio was discarded (it took up a lot of space). Later in training, I could have used the raw audio to improve the speaker embedding / voice similarity, because some nuances of voice are lost when you compress it with a neural codec into a discrete space.
|
|
156
|
+
|
|
157
|
+
I didn't lose much time trying to optimize further, but there is still some room for improvement. For example, caching conv states.
|
|
158
|
+
|
|
159
|
+
Currently, generation is limited to **~32 seconds (400 frames)**. You can increase it, but the model generally hallucinates beyond that.
|
|
160
|
+
|
|
161
|
+
AI was used mainly for creating the web demo, organizing my messy code into this repo, ablations and brainstorming.
|
|
162
|
+
|
|
163
|
+
I would love to support more languages and continue improving the model. If you like this project, consider buying me a coffee so I can buy more compute: https://buymeacoffee.com/samuelvitorino
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
## Training data
|
|
168
|
+
|
|
169
|
+
- [Emilia YODAS](https://huggingface.co/datasets/amphion/Emilia-Dataset)
|
|
170
|
+
- [LibriTTS-R](https://huggingface.co/datasets/mythicinfinity/libritts_r)
|
|
171
|
+
- [Mozilla Common Voice 22](https://datacollective.mozillafoundation.org/)
|
|
172
|
+
- [MLS](https://huggingface.co/datasets/parler-tts/mls_eng_10k)
|
|
173
|
+
|
|
174
|
+
---
|
|
175
|
+
|
|
176
|
+
## Acknowledgements
|
|
177
|
+
|
|
178
|
+
- [Mimi Codec (Kyutai)](https://huggingface.co/kyutai/mimi)
|
|
179
|
+
- [WaveNet](https://arxiv.org/abs/1609.03499)
|
|
180
|
+
- [Attentive Stats Pooling](https://arxiv.org/abs/1803.10963)
|
|
181
|
+
- [AudioLM](https://arxiv.org/pdf/2209.03143)
|
|
182
|
+
- [CSM](https://github.com/SesameAILabs/csm)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
sopro/__init__.py,sha256=zVh0MjV3XHwZaV_4HzQnLE2mNTtM2gtfQ5-k_Ld2dBs,110
|
|
2
|
+
sopro/audio.py,sha256=xlp6aYzzGlOMcNZ-p9lDeeU0TUkSHMcvmLantwg_4-0,4162
|
|
3
|
+
sopro/cli.py,sha256=YKfGalyhbRuvjVrGJuo1NlIC7h8CszlMxuTwhYgUSwQ,5751
|
|
4
|
+
sopro/config.py,sha256=OBD-k2z5GUdjFS545MyBXx-dAGhwnhRG11LW-zQt1-g,1063
|
|
5
|
+
sopro/constants.py,sha256=wSjFKeFIcLCxyVUVb3njxMK666IuxjlNzVT4_jfPovQ,97
|
|
6
|
+
sopro/hub.py,sha256=xsHfeO8X7v__FELvaQxWHYG8P39ygrgbluPs5GQjoCM,1391
|
|
7
|
+
sopro/model.py,sha256=YXwcVGN3v5T0kvKttmo9WNPpewF-b5aOZoTMVypkzO8,28624
|
|
8
|
+
sopro/sampling.py,sha256=Q5rbuef_BIuy12cv5J7v6k9ob3zQ0OFJIlMHssOkiuU,2951
|
|
9
|
+
sopro/streaming.py,sha256=O5Kkl4cUBjzgjTrEwQK2ka5h6sgcYaEZmIp66-obcPM,4975
|
|
10
|
+
sopro/tokenizer.py,sha256=ucb86Jr-EaAyD9OHDoCmwB9Nh9AFIZK_TlZmMkv46KQ,1325
|
|
11
|
+
sopro/codec/__init__.py,sha256=6D6Q0M-SUZZnq79OT1nATenEc8zIZDrhZBpm7zdPEE4,129
|
|
12
|
+
sopro/codec/mimi.py,sha256=RNKnXfhWXUqHiU27C90wj18Rb3R2IZHpm5_cS_XAs9Y,5798
|
|
13
|
+
sopro/nn/__init__.py,sha256=JewW6GvQPMBsCDkmnm9u5G3tvaAzClUVMIgcVH4N7aw,561
|
|
14
|
+
sopro/nn/blocks.py,sha256=zDEVUH2LXapXuQ4DyhplNh1I0iJYrNUL20IxHoz8ucs,3221
|
|
15
|
+
sopro/nn/embeddings.py,sha256=7YfYKj1v1oafTV4-iucJG4fmeT43fP_rQiJ6ACRKPNI,3185
|
|
16
|
+
sopro/nn/speaker.py,sha256=L2bs-bPlyxoWZyMTctBBuMTaEWm6FP7K1udrXehnTGM,2964
|
|
17
|
+
sopro/nn/xattn.py,sha256=OeRo1HbRZs0AkQ6AV6Q8cqYZP9K4vI-IwT3uVn9jOqg,2939
|
|
18
|
+
sopro-1.0.0.dist-info/licenses/LICENSE.txt,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
19
|
+
sopro-1.0.0.dist-info/METADATA,sha256=iXQQ7IjPssmpTXfQ4CwMOVYyeojR7kQYv74jhx5u8Z8,6474
|
|
20
|
+
sopro-1.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
21
|
+
sopro-1.0.0.dist-info/entry_points.txt,sha256=OWcKgC5Syk8rzOhNzTZ3QR5GJEG88UfiShkovrwb2cI,44
|
|
22
|
+
sopro-1.0.0.dist-info/top_level.txt,sha256=Tik26_lEwzSKDuwQdqwoqA_O0b7CDATzousa0Q17PBo,6
|
|
23
|
+
sopro-1.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
sopro
|