From e2b3d281fc656b783b23011ba9170663a4cdc9f8 Mon Sep 17 00:00:00 2001 From: Max Starikov Date: Sat, 18 Jul 2026 11:29:37 +0200 Subject: [PATCH 1/3] add license --- LICENSE | 202 ++++++++++++++++++++++++++++++++++ MODEL_NOTICES.md | 29 +++++ README.md | 12 ++ THIRD_PARTY_NOTICES.md | 162 +++++++++++++++++++++++++++ website/src/pages/legal.astro | 37 ++++++- 5 files changed, 440 insertions(+), 2 deletions(-) create mode 100644 LICENSE create mode 100644 MODEL_NOTICES.md create mode 100644 THIRD_PARTY_NOTICES.md diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..d645695 --- /dev/null +++ b/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/MODEL_NOTICES.md b/MODEL_NOTICES.md new file mode 100644 index 0000000..82ee26f --- /dev/null +++ b/MODEL_NOTICES.md @@ -0,0 +1,29 @@ +# Speech model notice + +Voice Inbox can download and use the following speech-recognition model. The +model files are third-party material and are not licensed under the Voice Inbox +Apache License 2.0. + +## Model lineage + +- Base model: [NVIDIA Parakeet TDT 0.6B v3](https://huggingface.co/nvidia/parakeet-tdt-0.6b-v3) +- ONNX/INT8 conversion: [`istupakov/parakeet-tdt-0.6b-v3-onnx`](https://huggingface.co/istupakov/parakeet-tdt-0.6b-v3-onnx) +- Revision used by Voice Inbox: [`8f23f0c03c8761650bdb5b40aaf3e40d2c15f1ce`](https://huggingface.co/istupakov/parakeet-tdt-0.6b-v3-onnx/tree/8f23f0c03c8761650bdb5b40aaf3e40d2c15f1ce) +- License: [Creative Commons Attribution 4.0 International (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/) +- Full license text: [CC BY 4.0 legal code](https://creativecommons.org/licenses/by/4.0/legalcode.en) + +The upstream derivative converts the NVIDIA model to ONNX and provides INT8 +quantized model files. Voice Inbox downloads the files from the pinned revision +without claiming authorship, ownership, sponsorship, or endorsement by NVIDIA +or the converter. + +## Distribution boundary + +The model weights are not stored in this source repository and are not bundled +in the Android or iOS application package. They are downloaded separately at +the user's request, or installed from a folder selected by the user. Voice +Inbox verifies downloaded files against the sizes and SHA-256 hashes declared +in `shared/src/commonMain/kotlin/me/maxistar/voiceinbox/core/SpeechModelManifest.kt`. + +If the model identifier, pinned revision, conversion, or quantization changes, +this notice must be reviewed before publishing the affected release. diff --git a/README.md b/README.md index 1d9b103..ca4bcfa 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,18 @@ Requirements: The Gradle build extracts ONNX Runtime, builds the Rust JNI library for `arm64-v8a`, and packages the required native libraries. +## License + +Unless otherwise noted, original Voice Inbox source code is licensed under the +[Apache License 2.0](LICENSE). Third-party components and speech-model weights +retain their own licenses and are not relicensed as Voice Inbox source code. + +- [Third-party software notices](THIRD_PARTY_NOTICES.md) +- [Speech model attribution and CC BY 4.0 terms](MODEL_NOTICES.md) + +The speech-model weights are downloaded separately and are not included in this +source repository or in the Android and iOS application packages. + ## iOS Application The repository includes a SwiftUI iOS application at diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md new file mode 100644 index 0000000..23f4eec --- /dev/null +++ b/THIRD_PARTY_NOTICES.md @@ -0,0 +1,162 @@ +# Third-party notices + +Voice Inbox contains or links against third-party software. Those components +remain under their own licenses and are not relicensed under the Voice Inbox +Apache License 2.0. Copyright belongs to the respective authors and contributors +identified by each upstream project. + +This inventory was reviewed against the Android `releaseRuntimeClasspath`, the +Kotlin Multiplatform source sets, the iOS link configuration, Cargo's locked +Android and iOS dependency graphs, and the static website output. Build-only +tools such as Gradle plugins, the Rust compiler, and Astro/Node packages are not +delivered in the application or static website and are intentionally excluded. + +## Application and native components + +| Component | Version used | License and attribution | Used by | +| --- | --- | --- | --- | +| AndroidX libraries | Resolved by `gradle/libs.versions.toml` and `releaseRuntimeClasspath` | Apache-2.0; Copyright The Android Open Source Project and contributors | Android | +| Material Components for Android | 1.13.0 | Apache-2.0; Copyright Google LLC and contributors | Android | +| Kotlin standard library, Kotlin/Native runtime, kotlinx coroutines and serialization | Resolved Kotlin runtime versions | Apache-2.0; Copyright JetBrains and Kotlin contributors | Android and iOS | +| SQLDelight runtime and Android/native drivers | 2.1.0 | Apache-2.0; Copyright 2016 Square, Inc. and contributors | Android and iOS | +| SQLite | Platform/native driver version | Public domain; see the [SQLite copyright page](https://www.sqlite.org/copyright.html) | Android and iOS | +| OkHttp | 4.12.0 | Apache-2.0; Copyright 2019 Square, Inc. and contributors | Android | +| Okio | 3.6.0 | Apache-2.0; Copyright Square, Inc. and contributors | Android | +| ONNX Runtime | 1.22.0 | MIT; Copyright Microsoft Corporation and contributors. See the [ONNX Runtime license](https://github.com/microsoft/onnxruntime/blob/v1.22.0/LICENSE) and [version-specific third-party notices](https://github.com/microsoft/onnxruntime/blob/v1.22.0/ThirdPartyNotices.txt). | Android and iOS | +| `ort` and `ort-sys` Rust crates | 2.0.0-rc.10 | MIT OR Apache-2.0; Copyright the `ort` contributors | Android and iOS native bridge | +| Android NDK `libc++_shared.so` | NDK r30 beta 1 (`30.0.14904198`) | Apache-2.0 WITH LLVM-exception; Copyright the LLVM Project contributors. See the [LLVM license](https://github.com/llvm/llvm-project/blob/main/LICENSE.TXT). | Android | +| `transcribe-rs` | 0.1.4, vendored | MIT; Copyright (c) 2025 Ilya Stupakov. The complete permission and warranty text is retained in [`transcribe-rs/LICENSE`](transcribe-rs/LICENSE). | Android and iOS native bridge | + +The complete Apache License 2.0 text is available in [`LICENSE`](LICENSE). +ONNX Runtime carries its own MIT license and upstream notices; its inclusion +does not place ONNX Runtime under the Voice Inbox project license. + +## Rust dependency inventory + +The following packages are statically linked into, or reachable from, the +locked native dependency graphs used for Android and iOS. Versions and declared +license expressions come from Cargo package metadata for `Cargo.lock`. A slash +in older metadata is treated as the package author's dual-license declaration, +not as a new project license. + +### `(MIT OR Apache-2.0) AND Unicode-3.0` + +`unicode-ident 1.0.22` + +### `Apache-2.0` + +`hound 3.5.1`, `sync_wrapper 1.0.2` + +### `Apache-2.0 / MIT` + +`fnv 1.0.7` + +### `Apache-2.0 AND ISC` + +`ring 0.17.14` + +### `Apache-2.0 OR BSL-1.0` + +`ryu 1.0.20` + +### `Apache-2.0 OR ISC OR MIT` + +`hyper-rustls 0.27.7`, `rustls 0.23.35`, `rustls-native-certs 0.8.2` + +### `Apache-2.0 OR MIT` + +`atomic-waker 1.1.2`, `idna_adapter 1.2.1`, `pin-project-lite 0.2.16`, +`secrecy 0.10.3`, `utf8_iter 1.0.4`, `zeroize 1.8.2` + +### `Apache-2.0/MIT` + +`cesu8 1.1.0` + +### `BSD-2-Clause OR Apache-2.0 OR MIT` + +`zerocopy 0.8.28` + +### `BSD-3-Clause` + +`instant 0.1.13`, `subtle 2.6.1` + +### `ISC` + +`libloading 0.8.9`, `rustls-webpki 0.103.8`, `untrusted 0.9.0` + +### `MIT` + +`async-openai 0.29.3`, `async-openai-macros 0.1.0`, `bytes 1.11.0`, +`combine 4.6.7`, `darling 0.20.11`, `darling_core 0.20.11`, +`darling_macro 0.20.11`, `http-body 1.0.1`, `http-body-util 0.1.3`, +`hyper 1.8.1`, `hyper-util 0.1.18`, `is-terminal 0.4.17`, +`mime_guess 2.0.5`, `mio 1.1.0`, `nom 7.1.3`, `slab 0.4.11`, +`strsim 0.11.1`, `synstructure 0.13.2`, `tokio 1.47.1`, +`tokio-macros 2.5.0`, `tokio-stream 0.1.17`, `tokio-util 0.7.17`, +`tower 0.5.2`, `tower-http 0.6.6`, `tower-layer 0.3.3`, +`tower-service 0.3.3`, `tracing 0.1.41`, `tracing-attributes 0.1.30`, +`tracing-core 0.1.34`, `try-lock 0.2.5`, `want 0.3.1` + +### `MIT OR Apache-2.0` + +`android_log-sys 0.3.2`, `android_logger 0.13.3`, `async-trait 0.1.89`, +`base64 0.22.1`, `bitflags 2.10.0`, `cfg-if 1.0.4`, +`derive_builder 0.20.2`, `derive_builder_core 0.20.2`, +`derive_builder_macro 0.20.2`, `displaydoc 0.2.5`, `env_logger 0.10.0`, +`eventsource-stream 0.2.3`, `form_urlencoded 1.2.2`, `futures 0.3.31`, +`futures-channel 0.3.31`, `futures-core 0.3.31`, +`futures-executor 0.3.31`, `futures-io 0.3.31`, `futures-macro 0.3.31`, +`futures-sink 0.3.31`, `futures-task 0.3.31`, `futures-util 0.3.31`, +`getrandom 0.2.16`, `getrandom 0.3.4`, `http 1.3.1`, `httparse 1.10.1`, +`humantime 2.3.0`, `idna 1.1.0`, `ipnet 2.11.0`, `iri-string 0.7.9`, +`itoa 1.0.15`, `libc 0.2.177`, `log 0.4.28`, `mime 0.3.17`, +`ndarray 0.16.1`, `num-complex 0.4.6`, `num-integer 0.1.46`, +`num-traits 0.2.19`, `once_cell 1.21.3`, `ort 2.0.0-rc.10`, +`ort-sys 2.0.0-rc.10`, `percent-encoding 2.3.2`, `pin-utils 0.1.0`, +`ppv-lite86 0.2.21`, `proc-macro2 1.0.103`, `quote 1.0.42`, +`rand 0.8.5`, `rand 0.9.2`, `rand_chacha 0.3.1`, `rand_chacha 0.9.0`, +`rand_core 0.6.4`, `rand_core 0.9.3`, `regex 1.11.2`, +`regex-automata 0.4.13`, `regex-syntax 0.8.8`, `reqwest 0.12.24`, +`reqwest-eventsource 0.6.0`, `rustls-pki-types 1.13.0`, `serde 1.0.228`, +`serde_core 1.0.228`, `serde_derive 1.0.228`, `serde_json 1.0.145`, +`smallvec 1.15.1`, `smallvec 2.0.0-alpha.10`, `socket2 0.6.1`, +`stable_deref_trait 1.2.1`, `syn 2.0.110`, `thiserror 1.0.69`, +`thiserror 2.0.16`, `thiserror-impl 1.0.69`, `thiserror-impl 2.0.16`, +`tokio-rustls 0.26.4`, `unicase 2.8.1`, `url 2.5.7` + +### `MIT/Apache-2.0` + +`backoff 0.4.0`, `futures-timer 3.0.3`, `ident_case 1.0.1`, +`jni 0.21.1`, `jni-sys 0.3.0`, `matrixmultiply 0.3.10`, +`minimal-lexical 0.2.1`, `openssl-probe 0.1.6`, `rawpointer 0.2.1`, +`serde_urlencoded 0.7.1` + +### `Unicode-3.0` + +`icu_collections 2.1.1`, `icu_locale_core 2.1.1`, +`icu_normalizer 2.1.1`, `icu_normalizer_data 2.1.1`, +`icu_properties 2.1.1`, `icu_properties_data 2.1.1`, +`icu_provider 2.1.1`, `litemap 0.8.1`, `potential_utf 0.1.4`, +`tinystr 0.8.2`, `writeable 0.6.2`, `yoke 0.8.1`, `yoke-derive 0.8.1`, +`zerofrom 0.1.6`, `zerofrom-derive 0.1.6`, `zerotrie 0.2.3`, +`zerovec 0.11.5`, `zerovec-derive 0.11.2` + +### `Unlicense OR MIT` + +`aho-corasick 1.1.4`, `memchr 2.7.6`, `termcolor 1.4.1` + +Canonical license texts can be found through the SPDX license list: + +- [Apache-2.0](https://spdx.org/licenses/Apache-2.0.html) +- [MIT](https://spdx.org/licenses/MIT.html) +- [BSD-2-Clause](https://spdx.org/licenses/BSD-2-Clause.html) +- [BSD-3-Clause](https://spdx.org/licenses/BSD-3-Clause.html) +- [ISC](https://spdx.org/licenses/ISC.html) +- [BSL-1.0](https://spdx.org/licenses/BSL-1.0.html) +- [Unicode-3.0](https://spdx.org/licenses/Unicode-3.0.html) +- [Unlicense](https://spdx.org/licenses/Unlicense.html) + +There were no missing license declarations or copyleft/source-offer licenses in +the reviewed locked Android and iOS Rust graphs. This inventory must be +regenerated and reviewed when `Cargo.lock`, Gradle runtime dependencies, native +frameworks, or application packaging changes. diff --git a/website/src/pages/legal.astro b/website/src/pages/legal.astro index cc7e152..c67022e 100644 --- a/website/src/pages/legal.astro +++ b/website/src/pages/legal.astro @@ -3,6 +3,13 @@ import Layout from '../layouts/Layout.astro'; const githubUrl = 'https://github.com/maxistar/Voice-Inbox'; const releaseUrl = `${githubUrl}/releases`; +const licenseUrl = `${githubUrl}/blob/master/LICENSE`; +const thirdPartyNoticesUrl = `${githubUrl}/blob/master/THIRD_PARTY_NOTICES.md`; +const modelNoticesUrl = `${githubUrl}/blob/master/MODEL_NOTICES.md`; +const baseModelUrl = 'https://huggingface.co/nvidia/parakeet-tdt-0.6b-v3'; +const convertedModelUrl = 'https://huggingface.co/istupakov/parakeet-tdt-0.6b-v3-onnx'; +const modelRevisionUrl = `${convertedModelUrl}/tree/8f23f0c03c8761650bdb5b40aaf3e40d2c15f1ce`; +const ccByUrl = 'https://creativecommons.org/licenses/by/4.0/'; ---