blip25-vocoder 1.0.0__tar.gz

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.
@@ -0,0 +1,71 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ workflow_dispatch:
8
+
9
+ env:
10
+ CARGO_TERM_COLOR: always
11
+
12
+ jobs:
13
+ test:
14
+ name: test (${{ matrix.os }}, py${{ matrix.python }})
15
+ runs-on: ${{ matrix.os }}
16
+ strategy:
17
+ fail-fast: false
18
+ matrix:
19
+ os: [ubuntu-latest, macos-latest, windows-latest]
20
+ python: ["3.9", "3.13"]
21
+ steps:
22
+ - uses: actions/checkout@v5
23
+ - uses: actions/setup-python@v5
24
+ with:
25
+ python-version: ${{ matrix.python }}
26
+ - uses: dtolnay/rust-toolchain@stable
27
+ - uses: Swatinem/rust-cache@v2
28
+ - name: install
29
+ run: |
30
+ python -m pip install --upgrade pip
31
+ pip install pytest numpy
32
+ # `pip install .` builds through the declared maturin backend and installs
33
+ # the result, so the packaging is under test alongside the bindings.
34
+ # `maturin develop` is not used here: it requires an active virtualenv,
35
+ # which a setup-python runner does not have.
36
+ - name: build and install the extension
37
+ run: pip install .
38
+ # The package source lives under `python/`, not at the repo root, so an
39
+ # import here resolves to what `pip install` just put in site-packages.
40
+ - name: pytest
41
+ run: python -m pytest tests/ -q
42
+
43
+ lint:
44
+ name: fmt + clippy
45
+ runs-on: ubuntu-latest
46
+ steps:
47
+ - uses: actions/checkout@v5
48
+ - uses: dtolnay/rust-toolchain@stable
49
+ with:
50
+ components: rustfmt, clippy
51
+ - uses: Swatinem/rust-cache@v2
52
+ - run: cargo fmt --all --check
53
+ - run: cargo clippy --all-targets -- -D warnings
54
+
55
+ sdist:
56
+ name: sdist builds and installs
57
+ runs-on: ubuntu-latest
58
+ steps:
59
+ - uses: actions/checkout@v5
60
+ - uses: actions/setup-python@v5
61
+ with:
62
+ python-version: "3.12"
63
+ - uses: dtolnay/rust-toolchain@stable
64
+ - run: pip install maturin
65
+ # An sdist that cannot build from its own tarball is a broken release, and
66
+ # nothing else in CI would notice.
67
+ - run: maturin sdist --out dist
68
+ # Compiles the extension from the tarball's own sources; a wheel would
69
+ # defeat the point of the check.
70
+ - run: "pip install --no-binary :all: dist/*.tar.gz"
71
+ - run: python -c "import blip25_vocoder; print(blip25_vocoder.__version__)"
@@ -0,0 +1,98 @@
1
+ name: Wheels
2
+
3
+ # Builds release wheels and an sdist. Publishing to PyPI happens only on a
4
+ # version tag, via Trusted Publishing — no API token is stored anywhere.
5
+ #
6
+ # The PyPI trusted-publisher entry names this file by its filename
7
+ # (`wheels.yml`). Renaming or moving it silently breaks publishing until the
8
+ # entry on PyPI is updated to match.
9
+ #
10
+ # Release flow:
11
+ # 1. Bump `version` in pyproject.toml AND Cargo.toml, commit to main.
12
+ # 2. Tag: `git tag -a vX.Y.Z -m "…" && git push origin vX.Y.Z`.
13
+ # 3. This workflow builds every wheel, then publishes.
14
+ #
15
+ # Publishing is NOT reversible. A release can be yanked but the version number
16
+ # can never be reused.
17
+
18
+ on:
19
+ push:
20
+ tags: ["v*"]
21
+ workflow_dispatch:
22
+
23
+ jobs:
24
+ wheels:
25
+ name: wheels (${{ matrix.os }})
26
+ runs-on: ${{ matrix.os }}
27
+ strategy:
28
+ fail-fast: false
29
+ matrix:
30
+ os: [ubuntu-latest, macos-latest, windows-latest]
31
+ steps:
32
+ - uses: actions/checkout@v5
33
+ - uses: actions/setup-python@v5
34
+ with:
35
+ python-version: "3.12"
36
+ - uses: dtolnay/rust-toolchain@stable
37
+ # abi3-py39: one wheel per platform covers every supported Python, so
38
+ # there is no Python-version axis in this matrix.
39
+ - name: build wheels
40
+ uses: PyO3/maturin-action@v1
41
+ with:
42
+ args: --release --out dist
43
+ manylinux: auto
44
+ - name: the wheel must import on a clean interpreter
45
+ shell: bash
46
+ run: |
47
+ python -m venv check
48
+ if [ -d check/bin ]; then PY=check/bin/python; else PY=check/Scripts/python; fi
49
+ "$PY" -m pip install --upgrade pip
50
+ "$PY" -m pip install dist/*.whl
51
+ "$PY" -c "import blip25_vocoder, numpy as np; \
52
+ v = blip25_vocoder.Vocoder(blip25_vocoder.Rate.FULL_RATE_7200X4400); \
53
+ assert len(v.encode_pcm(np.zeros(160, dtype=np.int16))) == 18; \
54
+ print('ok', blip25_vocoder.__version__)"
55
+ - uses: actions/upload-artifact@v4
56
+ with:
57
+ name: wheels-${{ matrix.os }}
58
+ path: dist
59
+
60
+ sdist:
61
+ runs-on: ubuntu-latest
62
+ steps:
63
+ - uses: actions/checkout@v5
64
+ - uses: PyO3/maturin-action@v1
65
+ with:
66
+ command: sdist
67
+ args: --out dist
68
+ - uses: actions/upload-artifact@v4
69
+ with:
70
+ name: sdist
71
+ path: dist
72
+
73
+ publish:
74
+ name: publish to PyPI
75
+ needs: [wheels, sdist]
76
+ if: startsWith(github.ref, 'refs/tags/v')
77
+ runs-on: ubuntu-latest
78
+ # Trusted Publishing (OIDC). PyPI is configured with a publisher pinned to
79
+ # this repository AND this workflow filename, so renaming this file breaks
80
+ # publishing until the PyPI entry is updated to match. No API token exists
81
+ # or is needed: GitHub mints a short-lived identity token per run.
82
+ permissions:
83
+ id-token: write
84
+ steps:
85
+ - uses: actions/download-artifact@v4
86
+ with:
87
+ path: dist
88
+ merge-multiple: true
89
+ - name: the artifacts must actually be there
90
+ run: |
91
+ ls -l dist
92
+ test -n "$(ls dist/*.whl 2>/dev/null)" || { echo "::error::no wheels to publish"; exit 1; }
93
+ test -n "$(ls dist/*.tar.gz 2>/dev/null)" || { echo "::error::no sdist to publish"; exit 1; }
94
+ - uses: pypa/gh-action-pypi-publish@release/v1
95
+ with:
96
+ # A version already on PyPI is an error, not something to skip past:
97
+ # it means the tag was pushed twice and the second push is a mistake.
98
+ skip-existing: false
@@ -0,0 +1,13 @@
1
+ # Rust
2
+ /target
3
+ # Python
4
+ __pycache__/
5
+ *.pyc
6
+ .pytest_cache/
7
+ /.venv/
8
+ /dist/
9
+ /check/
10
+ *.so
11
+ *.pyd
12
+ # Cargo.lock is committed: this is an application-shaped artifact (a wheel),
13
+ # not a library other crates depend on, so a reproducible build matters.
@@ -0,0 +1,276 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 4
4
+
5
+ [[package]]
6
+ name = "autocfg"
7
+ version = "1.5.1"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
10
+
11
+ [[package]]
12
+ name = "blip25-vocoder"
13
+ version = "1.0.0"
14
+ source = "registry+https://github.com/rust-lang/crates.io-index"
15
+ checksum = "9f9aee7245798876b2d5abe6e641acbc2fc9fee3facab0972b29894e973f2382"
16
+
17
+ [[package]]
18
+ name = "blip25-vocoder-py"
19
+ version = "1.0.0"
20
+ dependencies = [
21
+ "blip25-vocoder",
22
+ "numpy",
23
+ "pyo3",
24
+ ]
25
+
26
+ [[package]]
27
+ name = "cfg-if"
28
+ version = "1.0.4"
29
+ source = "registry+https://github.com/rust-lang/crates.io-index"
30
+ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
31
+
32
+ [[package]]
33
+ name = "heck"
34
+ version = "0.5.0"
35
+ source = "registry+https://github.com/rust-lang/crates.io-index"
36
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
37
+
38
+ [[package]]
39
+ name = "indoc"
40
+ version = "2.0.7"
41
+ source = "registry+https://github.com/rust-lang/crates.io-index"
42
+ checksum = "79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706"
43
+ dependencies = [
44
+ "rustversion",
45
+ ]
46
+
47
+ [[package]]
48
+ name = "libc"
49
+ version = "0.2.189"
50
+ source = "registry+https://github.com/rust-lang/crates.io-index"
51
+ checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"
52
+
53
+ [[package]]
54
+ name = "matrixmultiply"
55
+ version = "0.3.11"
56
+ source = "registry+https://github.com/rust-lang/crates.io-index"
57
+ checksum = "3f607c237553f086e7043417a51df26b2eb899d3caff94e6a67592ff992fedc7"
58
+ dependencies = [
59
+ "autocfg",
60
+ "rawpointer",
61
+ ]
62
+
63
+ [[package]]
64
+ name = "memoffset"
65
+ version = "0.9.1"
66
+ source = "registry+https://github.com/rust-lang/crates.io-index"
67
+ checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
68
+ dependencies = [
69
+ "autocfg",
70
+ ]
71
+
72
+ [[package]]
73
+ name = "ndarray"
74
+ version = "0.16.1"
75
+ source = "registry+https://github.com/rust-lang/crates.io-index"
76
+ checksum = "882ed72dce9365842bf196bdeedf5055305f11fc8c03dee7bb0194a6cad34841"
77
+ dependencies = [
78
+ "matrixmultiply",
79
+ "num-complex",
80
+ "num-integer",
81
+ "num-traits",
82
+ "portable-atomic",
83
+ "portable-atomic-util",
84
+ "rawpointer",
85
+ ]
86
+
87
+ [[package]]
88
+ name = "num-complex"
89
+ version = "0.4.6"
90
+ source = "registry+https://github.com/rust-lang/crates.io-index"
91
+ checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495"
92
+ dependencies = [
93
+ "num-traits",
94
+ ]
95
+
96
+ [[package]]
97
+ name = "num-integer"
98
+ version = "0.1.46"
99
+ source = "registry+https://github.com/rust-lang/crates.io-index"
100
+ checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"
101
+ dependencies = [
102
+ "num-traits",
103
+ ]
104
+
105
+ [[package]]
106
+ name = "num-traits"
107
+ version = "0.2.19"
108
+ source = "registry+https://github.com/rust-lang/crates.io-index"
109
+ checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
110
+ dependencies = [
111
+ "autocfg",
112
+ ]
113
+
114
+ [[package]]
115
+ name = "numpy"
116
+ version = "0.22.1"
117
+ source = "registry+https://github.com/rust-lang/crates.io-index"
118
+ checksum = "edb929bc0da91a4d85ed6c0a84deaa53d411abfb387fc271124f91bf6b89f14e"
119
+ dependencies = [
120
+ "libc",
121
+ "ndarray",
122
+ "num-complex",
123
+ "num-integer",
124
+ "num-traits",
125
+ "pyo3",
126
+ "rustc-hash",
127
+ ]
128
+
129
+ [[package]]
130
+ name = "once_cell"
131
+ version = "1.21.4"
132
+ source = "registry+https://github.com/rust-lang/crates.io-index"
133
+ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
134
+
135
+ [[package]]
136
+ name = "portable-atomic"
137
+ version = "1.15.0"
138
+ source = "registry+https://github.com/rust-lang/crates.io-index"
139
+ checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
140
+
141
+ [[package]]
142
+ name = "portable-atomic-util"
143
+ version = "0.2.7"
144
+ source = "registry+https://github.com/rust-lang/crates.io-index"
145
+ checksum = "c2a106d1259c23fac8e543272398ae0e3c0b8d33c88ed73d0cc71b0f1d902618"
146
+ dependencies = [
147
+ "portable-atomic",
148
+ ]
149
+
150
+ [[package]]
151
+ name = "proc-macro2"
152
+ version = "1.0.107"
153
+ source = "registry+https://github.com/rust-lang/crates.io-index"
154
+ checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
155
+ dependencies = [
156
+ "unicode-ident",
157
+ ]
158
+
159
+ [[package]]
160
+ name = "pyo3"
161
+ version = "0.22.6"
162
+ source = "registry+https://github.com/rust-lang/crates.io-index"
163
+ checksum = "f402062616ab18202ae8319da13fa4279883a2b8a9d9f83f20dbade813ce1884"
164
+ dependencies = [
165
+ "cfg-if",
166
+ "indoc",
167
+ "libc",
168
+ "memoffset",
169
+ "once_cell",
170
+ "portable-atomic",
171
+ "pyo3-build-config",
172
+ "pyo3-ffi",
173
+ "pyo3-macros",
174
+ "unindent",
175
+ ]
176
+
177
+ [[package]]
178
+ name = "pyo3-build-config"
179
+ version = "0.22.6"
180
+ source = "registry+https://github.com/rust-lang/crates.io-index"
181
+ checksum = "b14b5775b5ff446dd1056212d778012cbe8a0fbffd368029fd9e25b514479c38"
182
+ dependencies = [
183
+ "once_cell",
184
+ "target-lexicon",
185
+ ]
186
+
187
+ [[package]]
188
+ name = "pyo3-ffi"
189
+ version = "0.22.6"
190
+ source = "registry+https://github.com/rust-lang/crates.io-index"
191
+ checksum = "9ab5bcf04a2cdcbb50c7d6105de943f543f9ed92af55818fd17b660390fc8636"
192
+ dependencies = [
193
+ "libc",
194
+ "pyo3-build-config",
195
+ ]
196
+
197
+ [[package]]
198
+ name = "pyo3-macros"
199
+ version = "0.22.6"
200
+ source = "registry+https://github.com/rust-lang/crates.io-index"
201
+ checksum = "0fd24d897903a9e6d80b968368a34e1525aeb719d568dba8b3d4bfa5dc67d453"
202
+ dependencies = [
203
+ "proc-macro2",
204
+ "pyo3-macros-backend",
205
+ "quote",
206
+ "syn",
207
+ ]
208
+
209
+ [[package]]
210
+ name = "pyo3-macros-backend"
211
+ version = "0.22.6"
212
+ source = "registry+https://github.com/rust-lang/crates.io-index"
213
+ checksum = "36c011a03ba1e50152b4b394b479826cad97e7a21eb52df179cd91ac411cbfbe"
214
+ dependencies = [
215
+ "heck",
216
+ "proc-macro2",
217
+ "pyo3-build-config",
218
+ "quote",
219
+ "syn",
220
+ ]
221
+
222
+ [[package]]
223
+ name = "quote"
224
+ version = "1.0.47"
225
+ source = "registry+https://github.com/rust-lang/crates.io-index"
226
+ checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
227
+ dependencies = [
228
+ "proc-macro2",
229
+ ]
230
+
231
+ [[package]]
232
+ name = "rawpointer"
233
+ version = "0.2.1"
234
+ source = "registry+https://github.com/rust-lang/crates.io-index"
235
+ checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3"
236
+
237
+ [[package]]
238
+ name = "rustc-hash"
239
+ version = "1.1.0"
240
+ source = "registry+https://github.com/rust-lang/crates.io-index"
241
+ checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
242
+
243
+ [[package]]
244
+ name = "rustversion"
245
+ version = "1.0.23"
246
+ source = "registry+https://github.com/rust-lang/crates.io-index"
247
+ checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
248
+
249
+ [[package]]
250
+ name = "syn"
251
+ version = "2.0.119"
252
+ source = "registry+https://github.com/rust-lang/crates.io-index"
253
+ checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
254
+ dependencies = [
255
+ "proc-macro2",
256
+ "quote",
257
+ "unicode-ident",
258
+ ]
259
+
260
+ [[package]]
261
+ name = "target-lexicon"
262
+ version = "0.12.16"
263
+ source = "registry+https://github.com/rust-lang/crates.io-index"
264
+ checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
265
+
266
+ [[package]]
267
+ name = "unicode-ident"
268
+ version = "1.0.24"
269
+ source = "registry+https://github.com/rust-lang/crates.io-index"
270
+ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
271
+
272
+ [[package]]
273
+ name = "unindent"
274
+ version = "0.2.4"
275
+ source = "registry+https://github.com/rust-lang/crates.io-index"
276
+ checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
@@ -0,0 +1,23 @@
1
+ [package]
2
+ name = "blip25-vocoder-py"
3
+ version = "1.0.0"
4
+ edition = "2021"
5
+ authors = ["Chance Lindsey"]
6
+ license = "MIT"
7
+ description = "Python bindings for blip25-vocoder (P25 voice codec)"
8
+ repository = "https://github.com/openBLIP25/blip25-vocoder-py"
9
+ publish = false
10
+ readme = "README.md"
11
+
12
+ [lib]
13
+ name = "_blip25_vocoder"
14
+ crate-type = ["cdylib"]
15
+
16
+ [dependencies]
17
+ blip25-vocoder = "1.0"
18
+ pyo3 = { version = "0.22", features = ["extension-module", "abi3-py39"] }
19
+ numpy = "0.22"
20
+
21
+ [profile.release]
22
+ lto = "thin"
23
+ codegen-units = 1
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Chance Lindsey
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,142 @@
1
+ # Patent Notice
2
+
3
+ This source code is provided for **research and educational purposes only**.
4
+ It is a written description of how certain voice encoding and decoding
5
+ algorithms could be implemented.
6
+
7
+ Executable objects compiled or derived from this package, and the act of
8
+ running them, may be covered by one or more patents. Readers are strongly
9
+ advised to check for any patent restrictions or licensing requirements
10
+ before compiling, using, or distributing this source code.
11
+
12
+ The above patent notice is adapted from the verbatim form used by the
13
+ [mbelib](https://github.com/szechyjs/mbelib) and
14
+ [JMBE](https://github.com/DSheirer/jmbe) projects.
15
+
16
+ ## Patent-relevant codec components
17
+
18
+ The project's default codec path is **not derived from the TIA-102
19
+ specifications**. The shared analysis and synthesis core in `src/engine/`
20
+ was **recovered by reverse engineering a compiled reference vocoder image** —
21
+ x86 disassembly transliterated to fixed-point Rust, constants recovered from
22
+ the binary's data section, correctness pinned bit-exact
23
+ against the vocoder's own output. It is not a copy of the reference vendor's
24
+ source code, which the project never obtained or read; it **is** a derivation of
25
+ the reference vocoder's behavior, and it reads on the same active patents listed
26
+ above.
27
+
28
+ **This applies to both codecs' audio output, including full-rate IMBE.** The
29
+ division is by layer, not by codec, and the two codecs are close to symmetric:
30
+
31
+ | Layer | Provenance |
32
+ |---|---|
33
+ | Wire framing, FEC, bit interpretation (both codecs) | **Spec** — TIA-102.BABA / BABA-A |
34
+ | Quantizer data | **AMBE+2: firmware** (all VQ codebooks). **IMBE: spec**, except the gain ladder |
35
+ | Analysis / encode chain (shared) | **Reverse-engineered** |
36
+ | Synthesis / decode audio (shared) | **Reverse-engineered** |
37
+
38
+ Both wire layers are spec-derived. The one asymmetry in quantizer data is that
39
+ AMBE+2's vector-quantizer codebooks are entirely firmware-recovered, whereas
40
+ IMBE's quantizer tables are published spec data apart from the gain ladder,
41
+ where the reference vendor's real table diverges from Annex-E at its bottom
42
+ eight levels.
43
+
44
+ Do not read "the IMBE bitstream is a published standard" as "the IMBE
45
+ implementation here is unencumbered." The bitstream is published; the analysis
46
+ and synthesis engineering that turns it into audio is the reference vendor's,
47
+ and that is what this crate reproduces — for IMBE exactly as much as for AMBE+2.
48
+
49
+ State this accurately in both directions: substantial original engineering
50
+ surrounds the engine, and the engine itself is derived. See
51
+ [`ATTRIBUTION.md`](./ATTRIBUTION.md) — **the authoritative statement of what is
52
+ original versus derived**.
53
+
54
+ | Module | What it is | Provenance |
55
+ |---|---|---|
56
+ | `src/engine/` | The IMBE (P25 Phase 1) + AMBE+2 (Phase 2) encode/decode path, and its own VQ tables (PRBA24 / PRBA58 / HOC b5–b8 / Annex-O + MONO65 gain) | Reverse-engineered to emulate the reference vocoder, synthesized from many reference resources rather than any single one. Bit-exact against the **reference** IMBE/AMBE+2 software vocoder: the standard tables verified against TIA-102.BABA-A, the reference-specific deviations against the codec's own output. |
57
+
58
+ This crate is **patent-encumbered**. As an AMBE+2 / MBE implementation it
59
+ unavoidably reads on the same active patents catalogued below — notably
60
+ **US8359197**, active until **2028-05-20** — and it additionally embodies the
61
+ reference vendor's proprietary analysis and synthesis engineering, which the
62
+ expired-patent documentation does **not** place in the public domain.
63
+
64
+ The codec core is a private module of this crate. It is not published
65
+ separately and is not obtainable except as part of `blip25-vocoder`, so
66
+ depending on this crate means taking on the encumbered core in full.
67
+
68
+ It is provided strictly for **research and interoperability study**; no
69
+ commercial product is shipped from it (see **Project policy** below).
70
+ Publishing it distributes a patent-encumbered implementation, which is a
71
+ deliberate, documented decision and not an accident of packaging. Anyone
72
+ depending on this crate takes on that consideration themselves.
73
+
74
+ ## Specific patents the maintainers are aware of
75
+
76
+ This list is not exhaustive and is not legal advice. It reflects this
77
+ project's own claim-by-claim patent audit of the AMBE-3000 family.
78
+
79
+ ### Active patents that the half-rate (AMBE+2) implementation reads on
80
+
81
+ | Patent | Subject | Anticipated expiration |
82
+ |---|---|---|
83
+ | **US8359197** | Half-rate vocoder — mixed pitch+voicing+gain first parameter codeword + Golay FEC + scrambling. The parent grant of US8595002 with ~5 years patent term adjustment. | **2028-05-20** |
84
+
85
+ Per that claim-by-claim analysis, **any BABA-A-compatible
86
+ half-rate (AMBE+2) decoder or encoder unavoidably reads on US8359197
87
+ claims 1, 8, 9, 13, 14, 15 (encode side) and 42, 47–51, 60, 72 (decode
88
+ side).** The wire format mandates the mixed first-codeword construction
89
+ that the patent claims; bitstream interoperability with the AMBE-3000
90
+ chip cannot be achieved with a different construction.
91
+
92
+ ### Active patents that overlap potential future frontend improvements
93
+
94
+ These patents do **not** read on the current implementation, but they
95
+ constrain the design space for future analysis-frontend improvements
96
+ (e.g. closing the measured PESQ gaps on noisy / tonal / SCBA-mask
97
+ content).
98
+
99
+ | Patent | Subject | Anticipated expiration |
100
+ |---|---|---|
101
+ | US8265937 | Breathing-apparatus speech enhancement (fireground / SCBA noise) | ~2032 |
102
+ | US12254895 | Detecting and compensating for speaker mask | ~2045 |
103
+ | US11990144 | Reducing perceived effects of non-voice data | ~2041 |
104
+ | US12451151 | Tone frame detector (PTAB-confirmed) | ~2042 |
105
+
106
+ ### Expired patents that the implementation derives from
107
+
108
+ The following are now public domain and serve as detailed algorithmic
109
+ documentation. Implementing them is unrestricted.
110
+
111
+ | Patent | Subject | Expired |
112
+ |---|---|---|
113
+ | US5701390 | MBE synthesis with regenerated phase | 2015-02-22 |
114
+ | US6199037 | Joint quantization of voicing and pitch | 2017-12-04 |
115
+ | US8315860 | Interoperable vocoder | 2022-11-13 |
116
+ | US8595002 | Half-rate vocoder (AMBE+2) — sibling of active US8359197 | 2023-04-01 |
117
+ | US7634399 | Voice transcoder | 2025-11-07 |
118
+
119
+ ## Project policy
120
+
121
+ **This project is research / educational software.** The maintainers do
122
+ not distribute commercial product, do not sell licenses, and do not
123
+ charge for downloads, hosting, or integration.
124
+
125
+ **No commercial product is shipped from this codebase before
126
+ 2028-05-20** (US8359197 anticipated expiration). Downstream consumers
127
+ who wish to use this code in a commercial product are responsible for
128
+ their own patent due diligence and licensing.
129
+
130
+ ## Why this notice exists
131
+
132
+ The maintainers researched comparable open-source projects (JMBE,
133
+ mbelib, OP25, SDRTrunk, DSDcc, dsd-fme) and found a consistent pattern:
134
+ all carry a patent disclaimer of this form, all distribute under
135
+ permissive or copyleft open-source licenses without payment, and none
136
+ have been the subject of patent enforcement action by the reference vendor in
137
+ 10+ years. The reference vendor's documented enforcement (Codec2 / David Rowe,
138
+ 2017–2019) targeted commercial use, not the existence of open-source
139
+ implementations.
140
+
141
+ This notice aligns blip25-vocoder with that prevailing posture and signals
142
+ the maintainers' awareness of the patent landscape.