I operate several Raspberry Pi's and other SBC's with op25 to include the Pi-4B. You shouldn't have any issues getting audio from the Pi's 3.5 MM headphone jack with just specifying the -U option on your rx.py command line keeping in mind that I am making reference to Raspbian OS (Buster) Lite version and that either of the GUI versions may involve pulseaudio that may require more a more specific configuration.
However, there are a couple of caveats that you need to be aware of and understand. The audio output from the headphone jack is low level and will not directly drive a speaker directly and you'll need an amplified speaker. Another important aspect is to understand that the Pi's use a four-pole headphone jack and that you must use the
correct plug or
adapter to convert to four-pole if our speaker has a standard 3.5 MM TRS plug.
Then you must be aware the headphone output level is set to a very low setting by default and that you'll need to run
alsamixer to increase the level control to a satisfactory level. See the screen capture below as reference.
View attachment 99874
Finally, you'll want to make this level adjustment setting as your default, else the headphone level will revert back to the original low level upon the next restart of the operating system. This is accomplished by issuing the
sudo alsactl store command. You can also test the Pi's sound device using speaker test. IE
speaker-test -t sine -f 1004 -c 2 This command will produce a 1004 Hz test tone that alternates between the left and right channels.
Bill