Recording Computer Playback on Linux Issue

I would follow this tutorial http://manual.audacityteam.org/man/Tutorial_-_Recording_Computer_Playback_on_Linux

I assured PulseAudio runs with:

$pstree -p | grep pulse
        |-pulseaudio(2354)-+-gconf-helper(2366)
        |                  |-{pulseaudio}(2362)
        |                  |-{pulseaudio}(2363)
        |                  `-{pulseaudio}(2365)

but when I try to set “pulse” on Device Toolbar it doesn’t appear.
Instead voices as “pulse: Rear Mic: 0” or “pulse: Front Mic:0” appear.
but not “pulse” or “default” …

Do you have any idea?

Please post the output from “Help > Audio Device Info”

==============================
Default capture device number: 14
Default playback device number: 14
==============================
Device ID: 0
Device name: HDA NVidia: ALC861 Analog (hw:0,0)
Host name: ALSA
Input channels: 2
Output channels: 8
Low Input Latency: 0.010667
Low Output Latency: 0.010667
High Input Latency: 0.042667
High Output Latency: 0.042667
Supported Rates:
    48000
    96000
==============================
Device ID: 1
Device name: HDA NVidia: ALC861 Digital (hw:0,1)
Host name: ALSA
Input channels: 0
Output channels: 2
Low Input Latency: -1.000000
Low Output Latency: 0.010667
High Input Latency: -1.000000
High Output Latency: 0.042667
Supported Rates:
    48000
    96000
==============================
Device ID: 2
Device name: HDA ATI HDMI: HDMI 0 (hw:1,3)
Host name: ALSA
Input channels: 0
Output channels: 2
Low Input Latency: -1.000000
Low Output Latency: 0.010667
High Input Latency: -1.000000
High Output Latency: 0.042667
Supported Rates:
    48000
==============================
Device ID: 3
Device name: sysdefault
Host name: ALSA
Input channels: 128
Output channels: 128
Low Input Latency: 0.042653
Low Output Latency: 0.042653
High Input Latency: 0.046440
High Output Latency: 0.046440
Supported Rates:
    8000
    9600
    11025
    16000
    22050
    32000
    44100
    48000
    88200
==============================
Device ID: 4
Device name: front
Host name: ALSA
Input channels: 0
Output channels: 8
Low Input Latency: -1.000000
Low Output Latency: 0.010667
High Input Latency: -1.000000
High Output Latency: 0.042667
Supported Rates:
    48000
    96000
==============================
Device ID: 5
Device name: surround40
Host name: ALSA
Input channels: 0
Output channels: 8
Low Input Latency: -1.000000
Low Output Latency: 0.010667
High Input Latency: -1.000000
High Output Latency: 0.042667
Supported Rates:
    48000
    96000
==============================
Device ID: 6
Device name: surround41
Host name: ALSA
Input channels: 0
Output channels: 128
Low Input Latency: -1.000000
Low Output Latency: 0.010667
High Input Latency: -1.000000
High Output Latency: 0.042667
Supported Rates:
    48000
    96000
==============================
Device ID: 7
Device name: surround50
Host name: ALSA
Input channels: 0
Output channels: 128
Low Input Latency: -1.000000
Low Output Latency: 0.010667
High Input Latency: -1.000000
High Output Latency: 0.042667
Supported Rates:
    48000
    96000
==============================
Device ID: 8
Device name: surround51
Host name: ALSA
Input channels: 0
Output channels: 8
Low Input Latency: -1.000000
Low Output Latency: 0.010667
High Input Latency: -1.000000
High Output Latency: 0.042667
Supported Rates:
    48000
    96000
==============================
Device ID: 9
Device name: surround71
Host name: ALSA
Input channels: 0
Output channels: 8
Low Input Latency: -1.000000
Low Output Latency: 0.010667
High Input Latency: -1.000000
High Output Latency: 0.042667
Supported Rates:
    48000
    96000
==============================
Device ID: 10
Device name: iec958
Host name: ALSA
Input channels: 0
Output channels: 2
Low Input Latency: -1.000000
Low Output Latency: 0.010667
High Input Latency: -1.000000
High Output Latency: 0.042667
Supported Rates:
    48000
    96000
==============================
Device ID: 11
Device name: spdif
Host name: ALSA
Input channels: 0
Output channels: 2
Low Input Latency: -1.000000
Low Output Latency: 0.010667
High Input Latency: -1.000000
High Output Latency: 0.042667
Supported Rates:
    48000
    96000
==============================
Device ID: 12
Device name: pulse
Host name: ALSA
Input channels: 32
Output channels: 32
Low Input Latency: 0.011610
Low Output Latency: 0.011610
High Input Latency: 0.046440
High Output Latency: 0.046440
Supported Rates:
    8000
    9600
    11025
    12000
    15000
    16000
    22050
    24000
    32000
    44100
    48000
    88200
    96000
    192000
==============================
Device ID: 13
Device name: dmix
Host name: ALSA
Input channels: 0
Output channels: 2
Low Input Latency: -1.000000
Low Output Latency: 0.042667
High Input Latency: -1.000000
High Output Latency: 0.042667
Supported Rates:
    48000
==============================
Device ID: 14
Device name: default
Host name: ALSA
Input channels: 32
Output channels: 32
Low Input Latency: 0.011610
Low Output Latency: 0.011610
High Input Latency: 0.046440
High Output Latency: 0.046440
Supported Rates:
    8000
    9600
    11025
    12000
    15000
    16000
    22050
    24000
    32000
    44100
    48000
    88200
    96000
    192000
==============================
Selected capture device: 14 - default
Selected playback device: 14 - default
Supported Rates:
    8000
    9600
    11025
    12000
    15000
    16000
    22050
    24000
    32000
    44100
    48000
    88200
    96000
    192000
==============================
Available mixers:
==============================
Available capture sources:
0 - Rear Mic:0
1 - Front Mic:0
2 - Line:0
3 - CD:0
==============================
Available playback volumes:
0 - PCM:0
1 - CD:0
2 - Beep:0
==============================

Capture volume is native
Playback volume is native

Device ID: 12
Device name: pulse

That should be available in the Device Toolbar

It’s not among input devices. It’s only available between output devices.
I attached a screenshots about it.
Audacity - Input -Output Devices .jpg

You may need to edit your .asoundrc file.
Which Linux distribution are you using?
Is PulseAudio installed by default or did you have to install it yourself?
Do you have a (hidden) file called .asoundrc in your home folder?

I have to edit, how?
I use Ubuntu precise 12.04 with xfce4
PulseAudio is installed by default.
I don’t have .asoundrc file in my home folder …

Open a Terminal window and enter:

alsamixer

Then press the F4 key.
If possible, please post a screenshot (otherwise, please describe what is shown).

Ok.

NOTE:
As I have two choices, Line (in the picture) and CD (not in the picture)
Alsamixer caputer devices - screenshot.jpg

Interesting. When PulseAudio is properly installed it should be the default “sound card”, but on your system it clearly isn’t.

This is my .asoundrc file, try it on your machine - if it works, great, if it doesn’t you can easily delete it again:

pcm.pulse {
    type pulse
}
ctl.pulse {
    type pulse
}
pcm.!default {
    type pulse
}
ctl.!default {
    type pulse
}

# Virtual monitor "pulse"
pcm.StereoMix {
type pulse
device alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
}

ctl.StereoMix {
type pulse
device alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
}

Copy and paste the above into a new file in your home directory, then name it “.asoundrc” (without quotes but with the leading dot).
Reboot the computer.
Then run the following and post the output:

pacmd
list-sources

The first command starts a simple command line program for communicating with PulseAudio.
The second command asks PulseAudio to list all recording devices.
To quite from pacmd use Ctrl+C

3 source(s) available.
    index: 0
	name: <alsa_output.pci-0000_00_05.0.analog-stereo.monitor>
	driver: <module-alsa-card.c>
	flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: SUSPENDED
	suspend cause: IDLE 
	priority: 1950
	volume: 0: 100% 1: 100%
	        0: 0.00 dB 1: 0.00 dB
	        balance 0.00
	base volume: 100%
	             0.00 dB
	volume steps: 65537
	muted: no
	current latency: 0.00 ms
	max rewind: 0 KiB
	sample spec: s16le 2ch 48000Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 0
	configured latency: 0.00 ms; range is 0.50 .. 341.33 ms
	monitor_of: 0
	card: 0 <alsa_card.pci-0000_00_05.0>
	module: 4
	properties:
		device.description = "Monitor of Built-in Audio Analog Stereo"
		device.class = "monitor"
		alsa.card = "0"
		alsa.card_name = "HDA NVidia"
		alsa.long_card_name = "HDA NVidia at 0xfe028000 irq 23"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:05.0"
		sysfs.path = "/devices/pci0000:00/0000:00:05.0/sound/card0"
		device.bus = "pci"
		device.vendor.id = "10de"
		device.vendor.name = "NVIDIA Corporation"
		device.product.name = "MCP61 High Definition Audio"
		device.form_factor = "internal"
		device.string = "0"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
  * index: 1
	name: <alsa_input.pci-0000_00_05.0.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: SUSPENDED
	suspend cause: IDLE 
	priority: 9959
	volume: 0:  71% 1:  71%
	        0: -9.00 dB 1: -9.00 dB
	        balance 0.00
	base volume:  28%
	             -33.00 dB
	volume steps: 65537
	muted: no
	current latency: 0.00 ms
	max rewind: 0 KiB
	sample spec: s16le 2ch 48000Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 0
	configured latency: 0.00 ms; range is 0.50 .. 341.33 ms
	card: 0 <alsa_card.pci-0000_00_05.0>
	module: 4
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC861 Analog"
		alsa.id = "ALC861 Analog"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "0"
		alsa.card_name = "HDA NVidia"
		alsa.long_card_name = "HDA NVidia at 0xfe028000 irq 23"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:05.0"
		sysfs.path = "/devices/pci0000:00/0000:00:05.0/sound/card0"
		device.bus = "pci"
		device.vendor.id = "10de"
		device.vendor.name = "NVIDIA Corporation"
		device.product.name = "MCP61 High Definition Audio"
		device.form_factor = "internal"
		device.string = "front:0"
		device.buffering.buffer_size = "65536"
		device.buffering.fragment_size = "32768"
		device.access_mode = "mmap+timer"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		device.description = "Built-in Audio Analog Stereo"
		alsa.mixer_name = "Realtek ALC861"
		alsa.components = "HDA:10ec0861,820ae601,00100300"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		analog-input-microphone-front: Front Microphone (priority 8500, available: no)
			properties:
				
		analog-input-microphone-rear: Rear Microphone (priority 8200, available: unknown)
			properties:
				
		analog-input-linein: Line In (priority 8100, available: unknown)
			properties:
				
	active port: <analog-input-linein>
    index: 2
	name: <alsa_output.pci-0000_02_00.1.hdmi-stereo.monitor>
	driver: <module-alsa-card.c>
	flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: SUSPENDED
	suspend cause: IDLE 
	priority: 1050
	volume: 0: 100% 1: 100%
	        0: 0.00 dB 1: 0.00 dB
	        balance 0.00
	base volume: 100%
	             0.00 dB
	volume steps: 65537
	muted: no
	current latency: 0.00 ms
	max rewind: 0 KiB
	sample spec: s16le 2ch 48000Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 0
	configured latency: 0.00 ms; range is 0.50 .. 341.33 ms
	monitor_of: 1
	card: 1 <alsa_card.pci-0000_02_00.1>
	module: 5
	properties:
		device.description = "Monitor of RV630 audio device [Radeon HD 2600 Series] Digital Stereo (HDMI)"
		device.class = "monitor"
		alsa.card = "1"
		alsa.card_name = "HDA ATI HDMI"
		alsa.long_card_name = "HDA ATI HDMI at 0xfddfc000 irq 43"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:02:00.1"
		sysfs.path = "/devices/pci0000:00/0000:00:0b.0/0000:02:00.1/sound/card1"
		device.bus = "pci"
		device.vendor.id = "1002"
		device.vendor.name = "Advanced Micro Devices [AMD] nee ATI"
		device.product.name = "RV630 audio device [Radeon HD 2600 Series]"
		device.string = "1"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"

OK, You have got “Monitor of Built-in Audio Analog Stereo”, so I think that you should be able to use that to record sounds that are playing on your computer.

Open Audacity and with “host” set to “ALSA” in the Device Toolbar, look in the “Record Input” settings and see what inputs are available.

It doesn’t change very much :frowning:
Audacity - Output Devices .jpg

It has probably changed enough :slight_smile:

Do you have PulseAudio Volume Control (pavucontrol) installed? If not, install that now and restart the computer.

Then:

Set the Audacity recording input to “Stereo Mix” (we created this input with .asoundrc)
Start any audio application that works with PulseAudio and start playing something.
Open PulseAudio Volume Control and look in the Playback tab to ensure that the playback program is using PulseAudio with your primary sound card.
Then try recording.

I did as you said but when I try to record ) get this error from audacity:

Error while opening sound device. Please check the input device settings and the project sample rate.

:frowning:

Do you have PulseAudio Volume Control installed?

What output does PulseAudio Volume Control say that your playback program is using?

At this moment rhythmbox …

Could you post a screenshot?

While that is playing, set Audacity to record from “sysdefault” and start it recording. If it does not error straight away, take a screenshot from pavucontrol of the “recording” tab.

Ok, that’s it
Audacity - Pavcontrol - Recording Field.jpg

I meant a screenshot of the playback tab.