Skip to content

Commit f4d57cf

Browse files
authored
Update README.md
1 parent 79fd3bf commit f4d57cf

File tree

1 file changed

+28
-67
lines changed

1 file changed

+28
-67
lines changed

README.md

Lines changed: 28 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,33 @@
1-
# UDP-Audio-Empfänger für Raspberry Pi (FPC / Qt5 / X11)
1+
# UDP Audio Receiver for Raspberry Pi (FPC)
22

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
44

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.
88

99
---
1010

11-
## 💠 Voraussetzungen
11+
## 💠 Requirements
1212

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
1617

17-
---
18-
19-
## 🔧 Kompilierung
20-
21-
1. Stelle sicher, dass Codetyphon eingerichtet ist.
22-
2. Projekt in Codetyphon öffnen.
23-
3. Kompilieren.
24-
25-
---
2618

27-
## ▶️ Verwendung
19+
## ▶️ Usage
2820

29-
### 📤 Sender (Systemaudio)
21+
### 📤 Sender (System Audio)
3022

31-
Der Sender überträgt den System-Soundalso alles, was normalerweise über die Lautsprecher wiedergegeben wird.
23+
The sender transmits system audioeverything normally played through the speaker.
3224

33-
Falls noch nicht vorhanden, `ffmpeg` installieren:
25+
If not yet installed, install `ffmpeg`:
3426
```bash
3527
sudo apt install ffmpeg
3628
```
3729

38-
Zur Übertragung vom Systemsound den Sender mit folgendem Befehl starten:
30+
To transmit system audio, start the sender with the following command:
3931
```bash
4032
ffmpeg -f pulse -i default \
4133
-acodec copy -f rtp \
@@ -46,63 +38,32 @@ ffmpeg -f pulse -i default \
4638
rtp://192.168.1.1:5010
4739
```
4840

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
5143

52-
### 📥 Empfänger
44+
### 📥 Receiver
5345

54-
Starte den Empfänger einfach:
46+
Simply start the receiver:
5547
```bash
56-
./udp_audio_receiver
48+
./alsaplayer3
5749
```
5850

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.
6052

6153
---
6254

63-
## 🔊 Wenn der Ton zu leise ist
55+
## 🔊 If the audio is too quiet
6456

65-
Das kann passieren, wenn der Empfänger zu leise eingestellt ist.
57+
This may occur if the receiver volume is set too low.
6658

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:
7062
```bash
7163
amixer set 'Master' 100% unmute
7264
```
7365

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).
103-
104-
---
66+
## 📝 License
10567

106-
**Autor:** RaspberryPiFpcHub
107-
**GitHub:** https://github.com/RaspberryPiFpcHub
68+
This project is licensed under the MIT License.
10869

0 commit comments

Comments
 (0)