Created
June 3, 2018 08:39
-
-
Save amicuscertus/c7bfff308e1917c74718610fb5228d21 to your computer and use it in GitHub Desktop.
receive UDO audio stream from Gqrx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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