Digital voice, down to earth.
Put digital audio on an FM station's SCA subcarrier — in software.
Groundwave is a software-defined modem that carries broadcast-quality digital audio in the subsidiary-carrier (SCA) space of an FM broadcast signal: the spare room above the stereo and RDS subcarriers, the classic 67 / 92 kHz real estate that analog SCA and HD2/HD3 already use. Where a traditional SCA puts a single noisy ~5 kHz mono channel on the subcarrier, Groundwave puts a coded OFDM waveform there carrying several Opus-coded stereo programs at once, with forward error correction and graceful degradation — open codecs, no vocoder chips, and every dB of the link visible on screen.
The waveform is band-agnostic, so the same modem drives any audio-bandwidth channel — a soundcard, a virtual cable, a VHF/UHF link — but FM SCA is the use case it was built for and named after. A Qt6 desktop app handles live operation and diagnostics, command-line tools cover scripted use, and the whole chain runs in software loopback so you can watch it decode end-to-end before it ever touches a transmitter.
New to SCA, or want to deploy on a real station? See
docs/FM_SCA.md— what the subsidiary carrier is and how to put Groundwave on it — anddocs/HD_RADIO_COMPARISON.mdfor an honest, numbers-backed comparison against HD Radio.
⚠️ Beta — v0.1. The DSP core is well tested — the full TX→RX chain decodes bit-exact in complex-baseband software loopback and over AWGN, and every push runs the wholectestsuite on Linux and Windows — but the application is young. Expect rough edges in the UI and workflow, config formats and CLI flags that may still change, and hardware-radio paths that are still being shaken out on real soundcards. Issue reports and feedback are very welcome.
Formerly published as DSCA-NG.
- Complex-baseband OFDM physical layer with configurable FFT size (64–16384), cyclic prefix, pilot spacing, and frequency-domain preamble for correct-by-construction channel estimation.
- Modulation from BPSK through QAM-4096, plus hierarchical modulation (HP/LP layers) for graceful-degradation stereo via a Mid/Side split.
- FEC: girth-conditioned QC-LDPC (protograph construction, 4-cycle free) over 11 code rates, decoded by layered min-sum BP (the default), with ORBGRAND and iterative BICM-ID as opt-in alternatives, and an optional Reed-Solomon outer code over the whole LDPC payload at every rate (split into byte-interleaved RS codewords, 16 parity bytes each, when the payload is longer than one 255-byte codeword). ORBGRAND is only used where its query budget can cover the codeword's redundancy — at the highest rates — and the engine says so rather than silently degrading elsewhere. A frame is accepted on Reed-Solomon plus CRC, never on a decoder's own "converged" flag.
- Audio: per-stream Opus encode/decode (up to 8 streams). Each stream is tagged voice or music: voice streams run the VOIP application with Opus inband FEC (SILK/hybrid mode, the only mode where it exists); music streams run the audio application with inband FEC off and rely on packet loss concealment. A stream can also carry DRED (Opus 1.5 Deep REDundancy) where the linked libopus provides it; because libopus produces DRED only on its SILK path, enabling it sets the voice signal hint on that stream. The UI reports which protection is actually active for each stream.
- Adaptive link: VCM/AMC ModCod scheduling, in-band PLS signalling, AFC/AGC, and sample-rate-offset (SFO) correction for clock drift.
- Qt6 GUI: live spectrum + waterfall, constellation, eye diagram, time-domain scope, channel response, link budget, per-stream mixer, alarms, and a preset system with JSON config persistence.
- CLI tools:
gw_encode,gw_decode, andgw_modemfor headless / scripted use.
See ARCHITECTURE.md and
docs/ARCHITECTURE_MS_HIER.md for the design.
The driving idea: an FM station already has spare subcarrier capacity it mostly isn't using. Analog SCA has filled that space for decades with low-fidelity mono services — reading services for the visually impaired, second-language and ethnic programming, niche music, background-music feeds, simple data. Groundwave brings that space up to date:
- More programs in the same slot. Several Opus stereo (or mono) streams where analog SCA carried one mono channel.
- Far better audio. Full-band Opus instead of a band-limited analog subcarrier, and it stays clean down to low bitrates where HD2/HD3's codec turns swishy.
- It degrades instead of dropping. LDPC + Reed-Solomon, plus Opus's own loss protection (inband FEC on voice streams, DRED where enabled, packet loss concealment everywhere), ride through fades rather than muting; adaptive modcod trades rate for reach as the channel changes.
- Royalty-free, top to bottom. Open OFDM, open Opus, no per-receiver or per-broadcaster license.
Because the waveform is band-agnostic, the same software is also a general OFDM audio modem — useful for VHF/UHF amateur digital voice, point-to-point audio over a virtual cable, or just learning how a modern coded-OFDM link works, since every stage is on screen.
Status: validated in software loopback and Monte-Carlo simulation, not yet proven off-air on a real exciter and receiver. See the honest caveats in
docs/FM_SCA.mdanddocs/HD_RADIO_COMPARISON.md.
| Path | Contents |
|---|---|
include/, src/ |
Core DSP library (gw_core): OFDM, LDPC, framing, codecs, modem |
gui/, main.cpp |
Qt6 application (groundwave) |
cli/ |
Command-line tools |
docs/ |
The FM SCA guide, HD Radio comparison, and Mid/Side design notes |
tests/ |
Unit + integration tests (run via ctest) and the GUI walker |
vcpkg-overlay/ |
Overlay port to build libopus with DRED enabled |
external/ |
Vendored single-header dependencies (miniaudio) |
Requires CMake ≥ 3.16, a C++17 compiler and libopus. Qt 6 is
needed only for the GUI: -DBUILD_GUI=OFF builds the core library, the CLI
tools and the test suite with no Qt on the machine at all (only engine_test,
which runs the Qt-based engine, needs the GUI build).
CPU requirements. The binaries — the published release included — run on any x86-64 CPU.
ENABLE_SIMD(defaultON) adds AVX2/FMA kernels in one translation unit of their own, and they are used only when the CPU and the operating system report AVX2 and FMA at run time; everything else is compiled for the baseline instruction set.-DENABLE_SIMD=OFFleaves the kernels out.
vcpkg.json is a manifest: the toolchain file installs the pinned libopus
into the build tree at configure time, so there is no separate
vcpkg install step. builtin-baseline fixes the ports catalog, so the same
tag builds against the same Opus version months apart.
cmake -B build -G "Visual Studio 17 2022" -A x64 `
-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake `
-DBUILD_GUI=ON -DBUILD_TESTS=ON -DBUILD_CLI=ON
cmake --build build --config Release
ctest --test-dir build -C Release --output-on-failureQt 6 is not in the manifest (building it from source under vcpkg takes the
better part of an hour). Install it separately — the Qt online installer, or a
classic-mode vcpkg install qt6:x64-windows — and point the build at it with
-DCMAKE_PREFIX_PATH=<your Qt6 prefix>. A classic-mode vcpkg Qt6 next to the
toolchain file is picked up automatically.
See BUILD_WINDOWS.md for the detailed Windows setup
(Qt install, deployment, troubleshooting).
sudo apt install build-essential cmake ninja-build libopus-dev pkg-config \
qt6-base-dev qt6-base-private-dev libgl1-mesa-dev
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release \
-DBUILD_GUI=ON -DBUILD_TESTS=ON -DBUILD_CLI=ON
cmake --build build
ctest --test-dir build --output-on-failurebrew install opus qt@6 cmake ninja
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH="$(brew --prefix qt@6)" \
-DBUILD_GUI=ON -DBUILD_TESTS=ON -DBUILD_CLI=ON
cmake --build build
ctest --test-dir build --output-on-failureDRED neural packet-loss recovery requires a libopus built with deep-PLC. The
stock libopus builds fine — DRED is simply inert, and streams fall back to the
concealment Opus offers without it. To enable it, select the manifest's dred
feature and point vcpkg at the overlay port:
cmake -B build -G "Visual Studio 17 2022" -A x64 `
-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake `
-DVCPKG_OVERLAY_PORTS=vcpkg-overlay -DVCPKG_MANIFEST_FEATURES=dred- GUI: launch
groundwave. Pick a preset (Ctrl+1–Ctrl+8), press TX (F5), and the built-in software loopback runs the full TX→RX chain; the diagnostics panels show the live constellation, spectrum, eye, and sync state. - CLI:
gw_encode/gw_decodemove audio ↔ modem frames as files;gw_modemruns a live session — software loopback (with optional AWGN), TX/RX against real audio devices, or a virtual-cable end-to-end loop. Run any tool with--helpfor options.
ctest runs the full suite: DSP primitives, the OFDM chain and FFT-window
tolerance, LDPC, Reed-Solomon, PLS, SFO, DRED, hierarchical modulation, the
real-IF passband link (clean-channel EVM floor, narrow bands, Es/N0-calibrated
decoding gates), an AWGN waterfall gate against the threshold model, and a
gw_encode → gw_decode round trip at every code rate. ctest -N lists
the current set. The integration tests drive the complete TX→RX DSP chain;
the Qt engine itself is exercised by the GUI walker
(tests/gui_walker.cpp), a separate manual QA
harness that operates every GUI control with the engine running (it keeps
its settings in a scratch INI store, so it never touches your own
preferences).
SPDX-License-Identifier: MIT — see LICENSE, which also lists the
third-party components (Qt 6, libopus, miniaudio) that keep their own terms.