This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| tips:audio [2017/05/12 17:55] – created scipio | tips:audio [2017/05/16 16:27] (current) – scipio | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Audio ====== | ====== Audio ====== | ||
| - | ===== test ===== | + | ===== pulse headless |
| <code bash> | <code bash> | ||
| - | gst-launch-1.0 audiotestsrc ! audioresample ! autoaudiosink | + | sudo apt install pulseaudio pulseaudio-module-zeroconf gstreamer1.0-plugins-base-apps gstreamer1.0-pulseaudio |
| </ | </ | ||
| + | <file ini / | ||
| + | # systemd service spec for pulseaudio running in system mode -- not recommended though! | ||
| + | # on arch, put it under / | ||
| + | # start with: systemctl start pulseaudio.service | ||
| + | # enable on boot: systemctl enable pulseaudio.service | ||
| + | [Unit] | ||
| + | Description=Pulseaudio sound server | ||
| + | After=avahi-daemon.service network.target | ||
| + | |||
| + | [Service] | ||
| + | ExecStart=/ | ||
| + | ExecReload=/ | ||
| + | |||
| + | [Install] | ||
| + | WantedBy=multi-user.target | ||
| + | </ | ||
| + | |||
| + | <file ini / | ||
| + | load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1; | ||
| + | load-module module-zeroconf-publish | ||
| + | </ | ||
| + | |||
| + | <file ini / | ||
| + | default-server = 127.0.0.1 | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== test ===== | ||
| + | |||
| + | <code bash> | ||
| + | gst-launch-1.0 audiotestsrc ! audioresample ! autoaudiosink | ||
| + | </ | ||