diff --git a/LXST/Generators.py b/LXST/Generators.py index e505a50..fa37bc1 100644 --- a/LXST/Generators.py +++ b/LXST/Generators.py @@ -8,8 +8,6 @@ from collections import deque from .Codecs import Codec, CodecError from .Sources import LocalSource -RNS.loglevel = RNS.LOG_DEBUG - class ToneSource(LocalSource): DEFAULT_FRAME_MS = 80 DEFAULT_SAMPLERATE = 48000 diff --git a/LXST/Sources.py b/LXST/Sources.py index 420949a..94335e9 100644 --- a/LXST/Sources.py +++ b/LXST/Sources.py @@ -9,8 +9,6 @@ from .Sinks import LocalSink from .Codecs import Codec, CodecError from .Codecs.libs.pyogg import OpusFile -RNS.loglevel = RNS.LOG_DEBUG - class LinuxBackend(): SAMPLERATE = 48000 diff --git a/LXST/Utilities/rnphone.py b/LXST/Utilities/rnphone.py index 526f57f..3abd043 100644 --- a/LXST/Utilities/rnphone.py +++ b/LXST/Utilities/rnphone.py @@ -659,7 +659,7 @@ def main(): parser.add_argument("--rnsconfig", action="store", default=None, help="path to alternative Reticulum config directory", type=str) parser.add_argument("-s", "--service", action="store_true", help="run as a service", default=False) parser.add_argument("--systemd", action="store_true", help="display example systemd unit", default=False) - parser.add_argument("--version", action="version", version="rnprobe {version}".format(version=__version__)) + parser.add_argument("--version", action="version", version="rnphone {version}".format(version=__version__)) parser.add_argument('-v', '--verbose', action='count', default=0) args = parser.parse_args() diff --git a/LXST/_version.py b/LXST/_version.py index 6cd38b7..493f741 100644 --- a/LXST/_version.py +++ b/LXST/_version.py @@ -1 +1 @@ -__version__ = "0.2.7" +__version__ = "0.3.0" diff --git a/README.md b/README.md index 7db451c..8b5689b 100644 --- a/README.md +++ b/README.md @@ -47,3 +47,17 @@ If you want to try out LXST, you can install it with pip: ```bash pip install lxst ``` + +On Raspberry Pi, install various dependencies with: + +```bash +# Audio codecs +sudo apt install python3-pip python3-pyaudio python3-dev python3-cryptography build-essential libopusfile0 libsdl2-dev libavcodec-dev libavdevice-dev libavfilter-dev portaudio19-dev codec2 libcodec2-1.0 xclip xsel +wget https://raw.githubusercontent.com/markqvist/Sideband/main/docs/utilities/pycodec2-3.0.1-cp311-cp311-linux_aarch64.whl +pip install ./pycodec2-3.0.1-cp311-cp311-linux_aarch64.whl --break-system-packages + +# For hardware control over I2C: +pip install smbus2 --break-system-packages # Install smbus module if not already installed +sudo raspi-config # Enable the I2C bus under "Interface Options" +sudo apt install python3-rpi.gpio # Install gpio module system-wide +``` \ No newline at end of file diff --git a/examples/mixer.py b/examples/mixer.py index 7d5f20f..bef8d1f 100644 --- a/examples/mixer.py +++ b/examples/mixer.py @@ -2,7 +2,6 @@ import RNS import LXST import sys import time -RNS.loglevel = RNS.LOG_DEBUG target_frame_ms = 20 pipelined_output = True diff --git a/examples/pipelines.py b/examples/pipelines.py index 00b8ae7..8fcfe1c 100644 --- a/examples/pipelines.py +++ b/examples/pipelines.py @@ -2,7 +2,6 @@ import RNS import LXST import sys import time -RNS.loglevel = RNS.LOG_DEBUG if len(sys.argv) < 2: print("No codec specified") diff --git a/examples/tone_generator.py b/examples/tone_generator.py index a7128f5..a854699 100644 --- a/examples/tone_generator.py +++ b/examples/tone_generator.py @@ -2,7 +2,6 @@ import RNS import LXST import sys import time -RNS.loglevel = RNS.LOG_DEBUG target_frame_ms = 40 tone = LXST.Generators.ToneSource(frequency=388, ease_time_ms=3.14159, target_frame_ms=target_frame_ms) diff --git a/setup.py b/setup.py index bb00a91..2b3af94 100644 --- a/setup.py +++ b/setup.py @@ -40,10 +40,11 @@ setuptools.setup( 'rnphone=LXST.Utilities.rnphone:main', ] }, - install_requires=["rns>=0.9.3", + install_requires=["rns>=0.9.5", + "lxmf>=0.7.0", "soundcard", "numpy", "pycodec2", "audioop-lts>=0.2.1;python_version>='3.13'"], python_requires=">=3.7", -) \ No newline at end of file +)