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
# UDP-Audio-Empfänger für Raspberry Pi (FPC / Qt5 / X11)
1
+
# UDPAudio Receiver for Raspberry Pi (FPC)
2
2
3
-
Dieses Programm empfängt Audio-Daten über UDP (z. B. RTP-Stream) und gibt sie über ALSA aus. Es wurde in Free Pascal unter Verwendung von Codetyphon mit Qt5 entwickelt und läuft unter X11 auf Debian Bookworm.
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
4
4
5
-
Das Programm erkennt automatisch, ob Pakete empfangen werden:
6
-
-Wenn Pakete ankommen → Audio wird abgespielt.
7
-
-Wenn 5 Sekunden lang keine Pakete empfangen werden → Audioausgabe wird gestoppt, Fenster wird ausgeblendet.
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, window is hidden.
8
8
9
9
---
10
10
11
-
## 💠 Voraussetzungen
11
+
## 💠 Requirements
12
12
13
-
- Raspberry Pi mit Debian Bookworm
14
-
- ALSA installiert
15
-
- Netzwerkverbindung für den Empfang von UDP-Paketen
13
+
- Raspberry Pi with Debian Bookworm
14
+
- Codetyphon
15
+
- ALSA installed
16
+
- Network connection for receiving UDP packets
16
17
17
-
---
18
-
19
-
## 🔧 Kompilierung
20
-
21
-
1. Stelle sicher, dass Codetyphon eingerichtet ist.
22
-
2. Projekt in Codetyphon öffnen.
23
-
3. Kompilieren.
24
-
25
-
---
26
18
27
-
## ▶️ Verwendung
19
+
## ▶️ Usage
28
20
29
-
### 📤 Sender (Systemaudio)
21
+
### 📤 Sender (System Audio)
30
22
31
-
Der Sender überträgt den System-Sound – also alles, was normalerweise über die Lautsprecher wiedergegeben wird.
23
+
The sender transmits system audio – everything normally played through the speaker.
32
24
33
-
Falls noch nicht vorhanden, `ffmpeg` installieren:
25
+
If not yet installed, install `ffmpeg`:
34
26
```bash
35
27
sudo apt install ffmpeg
36
28
```
37
29
38
-
Zur Übertragung vom Systemsound den Sender mit folgendem Befehl starten:
30
+
To transmit system audio, start the sender with the following command:
39
31
```bash
40
32
ffmpeg -f pulse -i default \
41
33
-acodec copy -f rtp \
@@ -46,63 +38,32 @@ ffmpeg -f pulse -i default \
46
38
rtp://192.168.1.1:5010
47
39
```
48
40
49
-
-`192.168.1.1`ist die IP-Adresse des Empfängers → anpassen!
50
-
-`5010`ist die Portnummer → frei wählbar, muss mit Empfänger übereinstimmen
41
+
-`192.168.1.1`is the IP address of the receiver → adjust accordingly!
42
+
-`5010`is the port number → freely selectable, must match the receiver
51
43
52
-
### 📥 Empfänger
44
+
### 📥 Receiver
53
45
54
-
Starte den Empfänger einfach:
46
+
Simply start the receiver:
55
47
```bash
56
-
./udp_audio_receiver
48
+
./alsaplayer3
57
49
```
58
50
59
-
Es erscheint ein Fenster und beginnt automatisch mit der Audiowiedergabe, sobald UDP-Pakete empfangen werden.
51
+
A window will appear and automatically start playing audio when UDP packets are received.
60
52
61
53
---
62
54
63
-
## 🔊 Wenn der Ton zu leise ist …
55
+
## 🔊 If the audio is too quiet …
64
56
65
-
Das kann passieren, wenn der Empfänger zu leise eingestellt ist.
57
+
This may occur if the receiver volume is set too low.
66
58
67
-
### Möglichkeiten:
68
-
-In`alsamixer` mit`F6`das richtige Gerät wählen und Lautstärke anpassen
69
-
-Im Terminal:
59
+
### Possible solutions:
60
+
-Use`alsamixer`, press`F6`to select the correct device, and increase volume
61
+
-Or use the terminal:
70
62
```bash
71
63
amixer set'Master' 100% unmute
72
64
```
73
65
74
-
---
75
-
76
-
## 📁 Autostart
77
-
78
-
Erstelle die Datei:
79
-
```bash
80
-
/home/pi/.config/autostart/UdpReceiver.desktop
81
-
```
82
-
83
-
Mit folgendem Inhalt:
84
-
```ini
85
-
[Desktop Entry]
86
-
Type=Application
87
-
Exec=/pfad/zum/Programm/udp_audio_receiver
88
-
Hidden=false
89
-
NoDisplay=false
90
-
X-GNOME-Autostart-enabled=true
91
-
Name=Udp_Receiver
92
-
Comment=Startet Udp_Receiver automatisch
93
-
Name[de_DE]=Udp_Receiver.desktop
94
-
```
95
-
96
-
Pfad und Dateinamen entsprechend anpassen.
97
-
98
-
---
99
-
100
-
## 📝 Lizenz
101
-
102
-
Dieses Projekt steht unter der [MIT-Lizenz](LICENSE).
0 commit comments