libSDRForge
Loading...
Searching...
No Matches
sdrforge.protocols.rds.redsea_adapter Namespace Reference

Optional redsea streaming RDS adapter. More...

Classes

class  RedseaRecord
 Provide redsea record behavior. More...
class  RedseaRdsAdapter
 Manage a redsea process without coupling it to the WBFM receiver. More...

Functions

RedseaRecord|None parse_redsea_line (str line)
 Parse one JSON line, rejecting incomplete groups as validated data.
bytes multiplex_to_pcm (np.ndarray multiplex, *, float amplitude=0.2)
 Convert 240 kHz discriminator output to signed little-endian PCM16.

Detailed Description

Optional redsea streaming RDS adapter.

redsea consumes 240 kHz mono S16LE FM multiplex through stdin and emits newline-delimited JSON on stdout. Partial groups are retained for diagnostics but never promoted to validated RDS groups.

Function Documentation

◆ multiplex_to_pcm()

bytes sdrforge.protocols.rds.redsea_adapter.multiplex_to_pcm ( np.ndarray multiplex,
* ,
float amplitude = 0.2 )

Convert 240 kHz discriminator output to signed little-endian PCM16.

Parameters
multiplexThe multiplex value.
amplitudeThe amplitude value.
Returns
The operation result.

◆ parse_redsea_line()

RedseaRecord | None sdrforge.protocols.rds.redsea_adapter.parse_redsea_line ( str line)

Parse one JSON line, rejecting incomplete groups as validated data.

Parameters
lineThe line value.
Returns
The operation result.