Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor fixes, symlink and venv #75

Open
ke4ahr opened this issue Jul 31, 2024 · 1 comment
Open

Minor fixes, symlink and venv #75

ke4ahr opened this issue Jul 31, 2024 · 1 comment

Comments

@ke4ahr
Copy link

ke4ahr commented Jul 31, 2024

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 . 
@romanz
Copy link
Owner

romanz commented Dec 23, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants