amodem
amodem copied to clipboard
Minor fixes, symlink and venv
I needed/ran the following to get amodem running in my environment:
sudo apt-get install python-dev python3-pyaudio python-pyaudio-doc
sudo ln -s /usr/lib/x86_64-linux-gnu/libportaudio.so.2 /usr/lib/x86_64-linux-gnu/libportaudio.so
python3 -m venv ~/ve_amodem
. ~/ve_amodem/bin/activate
pip install wheel
python setup.py bdist_wheel
pip install .
You can also use --audio-library libportaudio.so.2 flag to specify the PortAudio shared object to be used.
If you have aplay and arecord installed (e.g. via https://packages.debian.org/stable/alsa-utils), you can also use --audio-library ALSA:
$ amodem send -c -vv --audio-library ALSA
2024-12-23 10:55:52,630 INFO Audio OFDM MODEM v1.16.0: 1.0 kb/s (2-QAM x 1 carriers) Fs=8.0 kHz __main__.py:226
2024-12-23 10:55:52,630 DEBUG Launching subprocess: {'args': ['aplay', '-f', 'S16_LE', '-c', '1', '-r', '8000', '-T', '100', '-q', '-'], 'stdin': -1} alsa.py:41