summaryrefslogtreecommitdiffstats
path: root/content/posts/podcasting-with-pulse.rst
blob: bf026648fb1abb5a9e5317e53b8a15eae6614892 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Podcasting with Pulse
##################################
:date: 2017-09-28 14:30
:tags: pulseaudio, darkice


I want a very simple setup where i can podcast via **studio-link** with my headset and stream the whole thing to xenim.

Therefore i have:

* Headset Mic ( alsa_output.CODEC.analog-stereo.monitor )
* Headset Speaker ( alsa_input.CODEC.analog-stereo )
* studio-link recording
* studio-link playback

I need to create an extra streaming audio device and loop what i hear and what
i speak into this device:


.. code-block:: bash

  ~ pactl load-module module-null-sink sink_name=stream sink_properties=device.description="Streaming"
  22
  ~ pactl load-module  module-loopback source=alsa_output.CODEC.analog-stereo.monitor sink=stream latency_msec=1
  23
  ~ pactl load-module  module-loopback source=alsa_input.CODEC.analog-stereo sink=stream latency_msec=1
  24

Now lets open studio-link, set playback to **CODEC Analog Stereo** and
Recording to **CODEC Analog Stereo** via *pavucontrol*.

We start *darkice* with a configuration like this:

.. code-block:: ini

  [general]
  duration = 0
  bufferSecs = 5
  reconnect = yes
  realtime = no
  rtprio = 2

  [input]
  sampleRate = 44100
  bitsPerSample = 16
  channel = 2
  device = pulseaudio
  paSourceName = stream.monitor

  [icecast2-0]
  format=mp3
  channel=2
  bitrate=128
  bitrateMode=cbr
  quality=0.6
  server=master.streams.xenim.de
  name=Testi test
  description=Test test
  public=yes
  localDumpFile=dump.mp3