blob: f278eab75882d88c742412b1b91ef2ec0396eeea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# Pulling Radio Waves out of Thin Air
Code and slides for my [PyCon Israel 2018 talk](https://il.pycon.org/2018/schedule/presentation/34/)
Various code that does FM demodulation in all sorts of ways.
## NumPy Demod
```bash
$ python numpy_fm_demod.py capture
$ aplay wbfm-mono-50000.0.raw -r 50000 -f S16_LE -t raw -c 1
```
Note that the final sample rate can never really be 44.1kHz.
Alternatively dump and load samples:
```bash
$ python numpy_fm_demod.py dump out.npy
$ python numpy_fm_demod.py load out.npy
$ aplay wbfm-mono-50000.0.raw -r 50000 -f S16_LE -t raw -c 1
```
|