blob: 6f6f0afe9456e29f7dbba14f4d5ab078ddadf0e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# Pulling Radio Waves out of Thin Air
Code and slides for my [PyCon Israel 2018 talk](https://il.pycon.org/2018/schedule/presentation/34/)
## Content
- [Talk Slides](talk.ipynb)
- [Naive async FM demodulation](async_fm_demod.py)
- [Offline numpy FM demodulation](numpy_fm_demod.py)
- [FM demod GNU Radio Companion Flowgraph](fm.grc)
### 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
```
|