summaryrefslogtreecommitdiff
path: root/content/tech/audio-output-to-input.md
blob: cc36313fcb82d08758eec43d10972e626ff63161 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
---
categories:
- software
date: 2015-11-28
title: Route audio output to input
---

To be able to visualize my laptop's sound output with a python script, I needed an extra audio input that made it possible to capture the system's audio output.

To achieve that, I did the following on my Raspberry Pi:

  * install alsa-utils and pulseaudio
  * get the pulseaudio init script [here](https://www.raspberrypi.org/forums/viewtopic.php?p=619713#p619713)
  * add the users to the group "pulse-access", I got `ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect` without it even as root
  * [create an ALSA monitor source](https://wiki.archlinux.org/index.php/PulseAudio/Examples#ALSA_monitor_source)