Repository navigation
feat: add G.722 wideband codec - #34
Merged
Merged
Conversation
A pure-Rust G.722 encoder and decoder (64 kbit/s, 16 kHz audio) in codec::g722, and G722 variants on the Encoder/Decoder seam. Output is pinned by a reference vector from an independent implementation.
The runner image now ships CMake 4, which rejects the vendored libopus CMakeLists without a minimum policy version. Set it for every cargo invocation, local and CI.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
wavekat-eason
marked this pull request as ready for review
November 13, 2026 21:09
Merged
wavekat-eason
pushed a commit
that referenced
this pull request
Nov 13, 2026
## 🤖 New release
* `wavekat-core`: 0.0.14 -> 0.0.15 (⚠ API breaking changes)
### ⚠ `wavekat-core` breaking changes
```text
--- failure enum_variant_added: enum variant added on exhaustive enum ---
Description:
A publicly-visible enum without #[non_exhaustive] has a new variant.
ref: https://doc.rust-lang.org/cargo/reference/semver.html#enum-variant-new
impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.51.0/src/lints/enum_variant_added.ron
Failed in:
variant Encoder:G722 in /tmp/.tmpgyl9mm/wavekat-core/crates/wavekat-core/src/codec/mod.rs:47
variant Decoder:G722 in /tmp/.tmpgyl9mm/wavekat-core/crates/wavekat-core/src/codec/mod.rs:104
```
<details><summary><i><b>Changelog</b></i></summary><p>
<blockquote>
##
[0.0.15](v0.0.14...v0.0.15)
- 2026-11-13
### Added
- add G.722 wideband codec
([#34](#34))
</blockquote>
</p></details>
---
This PR was generated with
[release-plz](https://github.com/release-plz/release-plz/).
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
codec::g722: a pure-Rust G.722 encoder and decoder (64 kbit/s, mode 1). G.722 carries 16 kHz speech in the same bitrate as G.711, and it is the wideband codec most SIP providers accept when they refuse Opus.G722Encoder/G722Decoder: 320 samples in, 160 bytes out per 20 ms frame. Stateful, one per stream.Encoder::G722/Decoder::G722on the per-call codec seam. Loss recovery is a no-op, as for G.711.Why
A downstream caller could only send narrowband audio on SIP lines that refuse Opus. With G.722 the same line carries wideband.
Testing
cargo test --workspace --all-features: 88 passed. Clippy is clean.Notes
cargo docwith-D warningsalready fails onmain(unresolvedCoreError::Audiolinks inaudio.rs). This PR does not touch that.