Cannot record audio from browser, only microphone [SOLVED]

Hello,

I’ve read several wiki pages, articles, saw video how to do that, but still cannot get it worked.

OS is Ubuntu and ALSA is installed (by default)

#lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial

#cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version k4.4.0-75-generic.

In preferences of Audacity, list of devices:

Interface, HOST: ALSA (cannot choose anything else)

Playback Devices:

default
pulse
hdmi
HDA Intel PCH: HDMI 0 (hw:0,3)

Recording devices:

default
pulse
HD Pro Webcam C920: USB Audio (hw:1,0)

Audacity can record everything I talk via microphone.
But it does not record anything I listen via browser. I’m trying to write audio from http://www.oddcast.com/demos/tts/tts_example.php?sitepal

I run alsamixer, but have no idea how to configure it and what it shows. But can add information that may help.

Can you please help.

Best regards

When I run audacity via command line, here is an output:

audacity

(Audacity:6252): Gtk-WARNING **: gtk_disable_setlocale() must be called before gtk_init()
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
Expression ‘stream->playback.pcm’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 4611
Expression ‘stream->playback.pcm’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 4611
Expression ‘stream->playback.pcm’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 4611
11:13:39: Debug: Unknown accel modifier: ‘left’
11:13:39: Debug: Unknown accel modifier: ‘click/left’
11:13:39: Debug: Unrecognized accel key ‘drag’, accel string ignored.
11:13:39: Debug: Unknown accel modifier: ‘left’
11:13:39: Debug: Unrecognized accel key ‘click’, accel string ignored.
11:13:39: Debug: Unknown accel modifier: ‘right’
11:13:39: Debug: Unrecognized accel key ‘click’, accel string ignored.
11:13:39: Debug: Unknown accel modifier: ‘left’
11:13:39: Debug: Unknown accel modifier: ‘click/left’
11:13:39: Debug: Unrecognized accel key ‘drag’, accel string ignored.
11:13:39: Debug: Unknown accel modifier: ‘left’
11:13:39: Debug: Unrecognized accel key ‘click’, accel string ignored.
11:13:39: Debug: Unknown accel modifier: ‘right’
11:13:39: Debug: Unrecognized accel key ‘click’, accel string ignored.

Select “Pulse” or “Default” as the recording input in the device toolbar.

Click on the recording meter in Audacity to start monitoring.

Open “PulseAudio Volume Control” (from the command line, that’s: pavucontrol) and look in the “Recording” tab and select the “Monitor” for the device that your browser uses for playback.

For more information, see: http://manual.audacityteam.org/man/tutorial_recording_computer_playback_on_linux.html

Thank you very much!

I had only ASTRA, but not Pulsaudio. So removing ASTRA and installing Pulsaudion, fixed the problem.