You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+35-33Lines changed: 35 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,35 +1,35 @@
1
-
# UDP Audio Receiver for Raspberry Pi (FPC)
1
+
# Network Audio Receiver (UDP) for Raspberry Pi (FPC)
2
2
3
-
This program receives stereo audio data over UDP (e.g., RTP stream) and outputs it via ALSA. It was developed in Free Pascal using Codetyphon on Debian Bookworm
3
+
UDP network audio receiver for Raspberry Pi with very low latency via ALSA.
4
4
5
5
The program automatically detects whether packets are being received:
6
-
- If packets arrive → Audio is played.
7
-
- If no audio packets or only silent ones are received for 5 seconds → Audio output stops.
6
+
7
+
- If packets arrive → audio is played.
8
+
- If no audio packets, or only silent packets, are received for 5 seconds → audio output stops.
8
9
- For maximum quality, no codec is used – the audio is transmitted uncompressed.
9
10
- This allows for very low latency, making it ideal for real-time transmissions (e.g., monitoring, live audio).
10
-
- A separate settings form is now available.
11
-
- The application window is now always visible.
12
-
- If the `Hide` checkbox is enabled the application is minimized at startup.
13
-
- A startup file for an FFmpeg audio sender (`StartFFmpegTransmitter.sh`) is provided; when placed on the desktop, it can be started with a double-click.
11
+
- A separate settings window is available.
12
+
- At startup, the receiver window is always visible. If the `Hide` checkbox is selected, the window is automatically hidden when audio packets are received and remains hidden.
13
+
- A startup script for an FFmpeg audio sender (`StartFFmpegTransmitter.sh`) is provided. Place it on the desktop and start it with a double-click.
14
14
15
15
---
16
16
17
17
## 💠 Requirements
18
18
19
-
- Raspberry Pi with Debian Bookworm
20
-
- Codetyphon
19
+
- Raspberry Pi running Debian Bookworm
20
+
- Codetyphon IDE
21
21
- ALSA installed
22
22
- Network connection for receiving UDP packets
23
23
24
24
---
25
25
26
26
## 🧪 Test Setup
27
27
28
-
The example test setup for development and verification was as follows:
28
+
Example setup used during development and verification:
29
29
30
30
-**Sender**: Raspberry Pi 4 playing YouTube videos in a browser, connected via **2.4 GHz Wi-Fi** to a router.
31
31
-**Receiver**: Another Raspberry Pi 4, connected via **Ethernet (LAN)** to the same router.
32
-
-The receiver’s **3.5 mm Jack audio output** was connected to a **HiFi receiver** for playback.
32
+
-Receiver’s **3.5 mm jack audio output** connected to a **HiFi receiver** for playback.
33
33
34
34
This setup demonstrated stable low-latency streaming under typical home network conditions.
35
35
@@ -46,53 +46,55 @@ If not yet installed, install `ffmpeg`:
46
46
sudo apt install ffmpeg
47
47
```
48
48
49
-
To transmit system audio use the provided startup file `StartFFmpegTransmitter.sh`.
49
+
To transmit system audio, use the provided startup file `StartFFmpegTransmitter.sh`:
50
50
51
-
-IP address of the receiver → replace with the correct address of your receiver.
52
-
-Port → can be freely selected, but must match the receiver’s configuration.
53
-
-If the file is placed on the desktop, the sender can be started by simply double-clicking the file.
51
+
-Replace the IP address with the correct address of your receiver.
52
+
-Select a port that matches the receiver configuration.
53
+
-Place the file on the desktop and start it with a double-click.
54
54
55
55
---
56
56
57
57
### 📥 Receiver
58
58
59
-
Simply start the receiver:
59
+
Start the receiver:
60
60
```bash
61
61
./udp_player
62
62
```
63
-
A window will appear and automatically start playing audio when UDP packets are received.
63
+
64
+
The receiver window will appear and automatically start playing audio when UDP packets are received.
64
65
65
66
---
66
67
67
68
## 🎯 Optimization Notes
68
69
69
-
The audio latency is a **parameter of the receiver application** and can be set in its configuration.
70
+
Audio latency can be configured in the receiver application:
0 commit comments