ha7ilm / openwebrx

Open source, multi-user SDR receiver software with a web interface
https://sdr.hu/openwebrx
GNU Affero General Public License v3.0
980 stars 462 forks source link

Play Center Frequency To Local Speakers #105

Closed roblevesque closed 4 years ago

roblevesque commented 6 years ago

I have a use case where I'd like to use openwebrx but also play the center frequency to the hosting machine's local speakers. Is there a way to do this currently, or is it a easy feature to add?

Thanks!

dj1an commented 6 years ago

On the machine running openwebrx you could do something like

nc -v 127.0.0.1 4951 |
csdr through |
csdr convert_u8_f |
csdr shift_addition_cc $(python -c "print float(145100000-144800000)/2400000") |
csdr fir_decimate_cc 50 0.005 HAMMING |
csdr fmdemod_quadri_cf |
csdr limit_ff |
csdr deemphasis_nfm_ff 48000 |
csdr fastagc_ff |
csdr convert_f_s16 |
mplayer -cache 1024 -quiet -rawaudio samplesize=2:channels=1:rate=48000 -demuxer rawaudio -

I may be wrong, but for center frequency listening you can delete the shift_addition_cc line. Else its center_freq - listen_freq / samplerate.

More examples on: https://github.com/simonyiszk/csdr#usage-by-example

roblevesque commented 6 years ago

Awesome. Thank you!

---- On Thu, 04 Jan 2018 10:41:06 -0500 dj1an <notifications@github.com> wrote ----

On the machine running openwebrx you could do something like

nc -v 127.0.0.1 4951 | csdr through | csdr convert_u8_f | csdr shift_addition_cc $(python -c "print float(145100000-144800000)/2400000") | csdr fir_decimate_cc 50 0.005 HAMMING | csdr fmdemod_quadri_cf | csdr limit_ff | csdr deemphasis_nfm_ff 48000 | csdr fastagc_ff | csdr convert_f_s16 | mplayer -cache 1024 -quiet -rawaudio samplesize=2:channels=1:rate=48000 -demuxer rawaudio -

More examples on:

https://github.com/simonyiszk/csdr#usage-by-example

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.