mirror of
https://github.com/ratspeak/rsLXST
synced 2026-11-22 23:10:37 +00:00
This repository is a port of LXST, whose reference implementation is published under CC BY-NC-ND 4.0. The AGPL-3.0-or-later grant previously in LICENSE was never effective, because there was no right to place the derived code under AGPL terms. LICENSE now states the terms under which Mark Qvist licenses this port for Ratspeak, and those terms govern every revision in this repository's history.
80 lines
3.6 KiB
Markdown
80 lines
3.6 KiB
Markdown
# Rust API
|
|
|
|
rsLXST is experimental and remains below 1.0. The service boundary Ratspeak uses
|
|
for telephony is the existing `lxst_telephony::TelephonyService` service seam:
|
|
|
|
- construct it with `TelephonyService::registered` or
|
|
`TelephonyService::registered_with_config`;
|
|
- retain the `TelephonyServiceParts::control_tx` and `event_rx` handles;
|
|
- drive the owned service with `TelephonyService::run`; and
|
|
- use `TelephonyControl`, `request_answer`, and `TelephonyServiceEvent` without
|
|
translating raw Reticulum events in the application.
|
|
|
|
The compiled `lxst-telephony` `service` example checks construction and handle
|
|
types. It does not run the service or demonstrate an end-to-end call.
|
|
|
|
## Stability
|
|
|
|
All workspace packages are experimental:
|
|
|
|
- `lxst-core` contains codec, profile, stream, signalling, and wire concepts;
|
|
- `lxst-rns` binds media packets to Reticulum Links;
|
|
- `lxst-telephony` contains the service boundary plus extensive runtime and
|
|
state-machine machinery;
|
|
- `lxst-codec2` provides bounded native Codec2 processing; and
|
|
- `lxst-embedded` provides the bounded `no_std` framing and session boundary.
|
|
|
|
Selecting `TelephonyService` does not stabilize the whole package or change
|
|
channel capacities, backpressure, event ordering, cancellation, timeouts,
|
|
media, exact-Link, or shutdown behavior. `TelephonyRnsEndpoint`,
|
|
`TelephonyRuntimeCore`, `TelephonyCommand`, `TelephonyDriveStep`,
|
|
`TelephonyService::new`, and `TelephonyService::with_config` remain available
|
|
for compatibility and specialist testing, but are implementation-level APIs
|
|
rather than the recommended application construction path.
|
|
|
|
## Compatibility checks
|
|
|
|
The `api/` directory contains the evidence used by CI:
|
|
|
|
- `stability.json` records package tiers, compatibility baselines, and snapshot
|
|
hashes;
|
|
- `snapshots/` records the explicit all-feature Apple ARM64 Rust API and the
|
|
manifest, feature, dependency, target, and MSRV contract; and
|
|
- `fixtures/` compiles the recommended and retained paths as an external
|
|
consumer.
|
|
|
|
These checks catch accidental changes, but they do not replace Android and
|
|
Apple target builds, media tests, Python Telephone interoperability, or manual
|
|
review. The API snapshot omits auto-derived, auto-trait, and blanket
|
|
implementations and is not by itself a complete SemVer verdict.
|
|
|
|
Run the checks with:
|
|
|
|
```sh
|
|
python3 tools/check-api-baseline.py
|
|
python3 tools/check-api-manifest.py
|
|
python3 tools/check-api-compatibility.py
|
|
cargo check --manifest-path api/fixtures/Cargo.toml --locked
|
|
```
|
|
|
|
After reviewing an API change, run
|
|
`python3 tools/check-api-baseline.py --update` and commit the source and snapshot
|
|
changes together. CI compares snapshots with the current source; compatibility
|
|
checks retain the historical baseline.
|
|
|
|
## Live audio and constrained peers
|
|
|
|
`SendAudioFrames`, `StartAudioStream` and the corresponding receive/stop controls
|
|
accept negotiated Opus and native Codec2 700C/1600/3200 profiles. Original Opus
|
|
controls remain available. Codec2 media emits `Audio*` service events; the
|
|
existing Opus event stream is unchanged. Standard ULBW uses ten four-byte 700C frames per 400 ms packet.
|
|
|
|
`StartAudioStream` binds the exact active Link and optionally shares an
|
|
`AudioTransmitGate` with the local input owner. Renew one press serial while
|
|
held, use a newer serial on release, and close the gate when its owner retires.
|
|
Expired, cancelled or superseded input cannot admit queued PCM; new edges clear
|
|
pending PCM. The gate times out after 750 ms without renewal and after a ten
|
|
second burst. This is local PTT policy, not a remote floor-control extension.
|
|
Applications must still bind UI events to the current call and stop on lost
|
|
focus, suspension and release. No memo/container format is changed.
|