Skip to content

Instantly share code, notes, and snippets.

@amicuscertus
Created June 3, 2018 08:39
Show Gist options
  • Save amicuscertus/c7bfff308e1917c74718610fb5228d21 to your computer and use it in GitHub Desktop.
Save amicuscertus/c7bfff308e1917c74718610fb5228d21 to your computer and use it in GitHub Desktop.
receive UDO audio stream from Gqrx
import socket
UDP_IP = "127.0.0.1"
UDP_PORT = 7355 # 4379 for WSJT-X, 7355 for Gqrx
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.bind((UDP_IP, UDP_PORT))
while True:
data, addr = sock.recvfrom(1024)
print ("received message:", data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment