@romulovieira-me Understood.....
Do the patches work.... do they already send the audio and receive it correctly?
What do you want python to control?
The connection?
The volume?
Something else?
To do that there is some help here for Python...... https://guitarextended.wordpress.com/2012/11/03/make-python-and-pure-data-communicate-on-the-raspberry-pi/
You use [netreceive] in Pd to receive the control messages.
You need to search in your Pd installation for a binary...... pdsend.exe (for windows) or the equivalent for Linux (probably pdsend.linux) or for the Mac. It needs to be copied somewhere where Python will find it as it will be called by the Python script as you will see in that example.
BUT....... you can also send the control messages using OSC as you saw in you previous thread...... https://forum.pdpatchrepo.info/topic/13357/how-to-send-pure-data-osc-message-to-python
Or do you want python to be a "man in the middle"?
You would need Python to be able to receive and resend audio....... and need to look on a Python forum to find out how to do that (if it is even possible).
I stream directly from windows (using the net library object [udpsend~]... from a 32-bit Pd...) and receive on my RPI using [udpreceive~] 64-bit version that I have included in the zip below.
To send from 64-bit Pd I think you would need the MrPeach library to use [udpsend~] in windows........ For Linux I have included a folder "net" from which you can build both....... using the makefile inside...... for your system.
Examples also included.......
audio_over_udp.zip
To remove the Pd GUI use the -nogui command line switch that you can put in the "startup flags" box at the bottom of the Pd ....file.... preferences.... "startup" window that you find in the console top menu.
When you restart Pd the GUI will be gone.
David.