See CONTRIBUTING.md for the details.
# Portaudio output
airspy-fmradion -t airspy -q \
-c freq=82500k,srate=1000k,lgain=2,mgain=0,vgain=10 \
-P -
# 16-bit signed integer WAV output (pipe is not supported)
airspy-fmradion -t airspyhf -q \
-c freq=82500000,srate=384000 \
-W output_s16_le.wav
# 32-bit float WAV output (pipe is not supported)
airspy-fmradion -m am -t airspyhf -q \
-c freq=666k \
-G output_f32_le.wav
sudo apt-get install cmake pkg-config \
libusb-1.0-0-dev \
libasound2-dev \
libairspy-dev \
libairspyhf-dev \
librtlsdr-dev \
libsndfile1-dev \
portaudio19-dev \
libvolk2-dev
airspy
and airspyhf
brew update
brew install portaudio
brew install libsndfile
brew install rtl-sdr
brew install airspy --HEAD
brew install airspyhf --HEAD
brew install volk
volk_profile
and save the configuration data for speed optimization./bin/rm -rf build
mkdir build
git submodule update --init --recursive
cmake -S . -B build
cmake --build build --target all
-m devtype
is modulation type, one of fm
, nbfm
, am
, dsb
, usb
, lsb
, cw
, wspr
(default fm)-t devtype
is mandatory and must be airspy
for Airspy R2 / Airspy Mini, airspyhf
for Airspy HF+, rtlsdr
for RTL-SDR, and filesource
for the File Source driver.-q
Quiet mode.-c config
Comma separated list of configuration options as key=value pairs or just key for switches. Depends on device type (see next paragraph).-d devidx
Device index, 'list' to show device list (default 0)-M
Disable stereo decoding-R filename
Write audio data as raw S16_LE
samples. Use filename -
to write to stdout-F filename
Write audio data as raw FLOAT_LE
samples. Use filename -
to write to stdout-W filename
Write audio data as RF64/WAV S16_LE
samples. Use filename -
to write to stdout (pipe is not supported)-G filename
Write audio data as RF64/WAV FLOAT_LE
samples. Use filename -
to write to stdout (pipe is not supported)-C filename
Write audio data to MP3 file of VBR -V 1. Use filename '-' to write to stdout. (This function is available when linked with supported libsndfile only.)-P device_num
Play audio via PortAudio device index number. Use string -
to specify the default PortAudio device-T filename
Write pulse-per-second timestamps. Use filename '-' to write to stdout-X
Shift pilot phase (for Quadrature Multipath Monitor) (-X is ignored under mono mode (-M))-U
Set deemphasis to 75 microseconds (default: 50)-f
Set Filter type
-l dB
Enable IF squelch, set the level to minus given value of dB-E stages
Enable multipath filter for FM (For stable reception only: turn off if reception becomes unstable)-r ppm
Set IF offset in ppm (range: +-1000000ppm) (Note: this option affects output pitch and timing: use for the output timing compensation only!pps_index sample_index unix_time if_level
block unix_time if_level
-E
options-E
value: 200-E
value: up to 50 for Raspberry Pi 4, approx. 100 for a modern computerfreq=<int>
Desired tune frequency in Hz. Valid range from 1M to 1.8G. (default 100M: 100000000
)srate=<int>
Device sample rate. list
lists valid values and exits. (default 10000000
). Valid values depend on the Airspy firmware. Airspy firmware and library must support dynamic sample rate query.lgain=<x>
LNA gain in dB. Valid values are: 0, 1, 2, 3, 4, 5, 6, 7, 8 ,9 ,10, 11 12, 13, 14, list
. list
lists valid values and exits. (default 8
)mgain=<x>
Mixer gain in dB. Valid values are: 0, 1, 2, 3, 4, 5, 6, 7, 8 ,9 ,10, 11 12, 13, 14, 15, list
. list
lists valid values and exits. (default 8
)vgain=<x>
VGA gain in dB. Valid values are: 0, 1, 2, 3, 4, 5, 6, 7, 8 ,9 ,10, 11 12, 13, 14, 15, list
. list
lists valid values and exits. (default 0
)antbias
Turn on the antenna bias for remote LNA (default off)lagc
Turn on the LNA AGC (default off)magc
Turn on the mixer AGC (default off)freq=<int>
Desired tune frequency in Hz. Valid range from 0 to 31M, and from 60M to 240M. (default 100M: 100000000
)srate=<int>
Device sample rate. list
lists valid values and exits. (default 384000
). Valid values depend on the Airspy HF firmware. Airspy HF firmware and library must support dynamic sample rate query.hf_att=<int>
HF attenuation level and AGC control.
freq=<int>
Desired tune frequency in Hz. Accepted range from 10M to 2.2G.
(default 100M: 100000000
)gain=<x>
(default auto
)
auto
Selects gain automaticallylist
Lists available gains and exit<float>
gain in dB. Possible gains in dB are: 0.0, 0.9, 1.4, 2.7, 3.7, 7.7, 8.7, 12.5, 14.4, 15.7, 16.6, 19.7, 20.7, 22.9, 25.4, 28.0, 29.7, 32.8, 33.8 , 36.4, 37.2, 38.6, 40.2, 42.1, 43.4, 43.9, 44.5, 48.0, 49.6
srate=<int>
Device sample rate. valid values in the [900001, 3200000] range. (default 1152000
)blklen=<int>
Device block length in bytes (default RTL-SDR default i.e. 64k)agc
Activates device AGC (default off)antbias
Turn on the antenna bias for remote LNA (default off)freq=<int>
Frequency of radio station in Hz.srate=<int>
IF sample rate in Hz.filename=<string>
Source file name. Supported encodings: FLOAT
, S24_LE
, S16_LE
zero_offset
Set if the source file is in zero offset, which requires Fs/4 IF shifting.blklen=<int>
Set block length in samples.raw
Set if the file is raw binary.format=<string>
Set the file format for the raw binary file. Supported formats: U8_LE
, S8_LE
, S16_LE
, S24_LE
, FLOAT
[End of README.md]