How to record output to speakers?
up vote
84
down vote
favorite
Is there a program for Ubuntu that can record sounds of only the output of the speaker and not any voices from outside the PC?
sound output audio-recording
add a comment |
up vote
84
down vote
favorite
Is there a program for Ubuntu that can record sounds of only the output of the speaker and not any voices from outside the PC?
sound output audio-recording
1
Why do you want to record sound from inside the computer??
– jPlatte
Dec 15 '12 at 16:48
1
there is a virtual piano website, and i want to play piano and record it while i'm listening to it from my headphones and not outloud.
– AmirRazoR
Dec 15 '12 at 16:56
3
So you just want to record the output sound of a website? I think almost everyone here thought you were talking about sounds of your computer components :D
– jPlatte
Dec 15 '12 at 17:42
My answer on this similar question might be helpful: askubuntu.com/questions/167061
– user76204
Dec 21 '12 at 0:02
2
See also How to record any internal sound in and out using Ubuntu and Audacity. There this answer did work for me, unlike all answers given here.
– Ruslan
Feb 18 '17 at 10:52
add a comment |
up vote
84
down vote
favorite
up vote
84
down vote
favorite
Is there a program for Ubuntu that can record sounds of only the output of the speaker and not any voices from outside the PC?
sound output audio-recording
Is there a program for Ubuntu that can record sounds of only the output of the speaker and not any voices from outside the PC?
sound output audio-recording
sound output audio-recording
edited Aug 10 '17 at 20:41
Zanna
49.4k13128236
49.4k13128236
asked Dec 15 '12 at 16:38
AmirRazoR
1,10772035
1,10772035
1
Why do you want to record sound from inside the computer??
– jPlatte
Dec 15 '12 at 16:48
1
there is a virtual piano website, and i want to play piano and record it while i'm listening to it from my headphones and not outloud.
– AmirRazoR
Dec 15 '12 at 16:56
3
So you just want to record the output sound of a website? I think almost everyone here thought you were talking about sounds of your computer components :D
– jPlatte
Dec 15 '12 at 17:42
My answer on this similar question might be helpful: askubuntu.com/questions/167061
– user76204
Dec 21 '12 at 0:02
2
See also How to record any internal sound in and out using Ubuntu and Audacity. There this answer did work for me, unlike all answers given here.
– Ruslan
Feb 18 '17 at 10:52
add a comment |
1
Why do you want to record sound from inside the computer??
– jPlatte
Dec 15 '12 at 16:48
1
there is a virtual piano website, and i want to play piano and record it while i'm listening to it from my headphones and not outloud.
– AmirRazoR
Dec 15 '12 at 16:56
3
So you just want to record the output sound of a website? I think almost everyone here thought you were talking about sounds of your computer components :D
– jPlatte
Dec 15 '12 at 17:42
My answer on this similar question might be helpful: askubuntu.com/questions/167061
– user76204
Dec 21 '12 at 0:02
2
See also How to record any internal sound in and out using Ubuntu and Audacity. There this answer did work for me, unlike all answers given here.
– Ruslan
Feb 18 '17 at 10:52
1
1
Why do you want to record sound from inside the computer??
– jPlatte
Dec 15 '12 at 16:48
Why do you want to record sound from inside the computer??
– jPlatte
Dec 15 '12 at 16:48
1
1
there is a virtual piano website, and i want to play piano and record it while i'm listening to it from my headphones and not outloud.
– AmirRazoR
Dec 15 '12 at 16:56
there is a virtual piano website, and i want to play piano and record it while i'm listening to it from my headphones and not outloud.
– AmirRazoR
Dec 15 '12 at 16:56
3
3
So you just want to record the output sound of a website? I think almost everyone here thought you were talking about sounds of your computer components :D
– jPlatte
Dec 15 '12 at 17:42
So you just want to record the output sound of a website? I think almost everyone here thought you were talking about sounds of your computer components :D
– jPlatte
Dec 15 '12 at 17:42
My answer on this similar question might be helpful: askubuntu.com/questions/167061
– user76204
Dec 21 '12 at 0:02
My answer on this similar question might be helpful: askubuntu.com/questions/167061
– user76204
Dec 21 '12 at 0:02
2
2
See also How to record any internal sound in and out using Ubuntu and Audacity. There this answer did work for me, unlike all answers given here.
– Ruslan
Feb 18 '17 at 10:52
See also How to record any internal sound in and out using Ubuntu and Audacity. There this answer did work for me, unlike all answers given here.
– Ruslan
Feb 18 '17 at 10:52
add a comment |
4 Answers
4
active
oldest
votes
up vote
110
down vote
accepted
If I'm not wrong, then I guess you are talking about recording "Stereo Mix" or loopback Output.
In layman's terms, Recording Stereo Mix means recording sound from speaker output.
Here's how to do it:
- Install
pavucontrol
from Ubuntu Software Center. - Install
audacity
from Ubuntu Software Center. - Select
pulse*
as recording device in Audacity. - Click Record Button.
- Open PulseAudio Volume Control (Search For PulseAudio Volume Control in Dash).
- Select Recording Tab.
- Now You Should see ALSA plug-in [audacity]. If you do not see ALSA plug-in [audacity], make sure you have clicked Record Button in audacity. You should be running recording in audacity while performing next step.
- Select "Monitor from *". See screen shot.
- Now you should be able to record the sound you hear from speaker or headphones.
Note: Tested in Ubuntu 12.10
Reference PulseAudio - Ubuntu Wiki
1
i did find "pulse" but i couldn't find "pulse:Mix:0" or anything like mix 0. i just went to preferences and then devices and i clicked on recording and it was only pulse there,where can i find pulse:mix:0?
– AmirRazoR
Dec 16 '12 at 16:47
@AmirRazoR Update to reflect current version of Ubuntu.
– 465544
Dec 17 '12 at 15:05
1
Each step happens as you describe, but ultimately no audio is recorded in Audacity (Ubuntu 14.04). What does the*
afterpulse*
mean?
– Drew Noakes
Aug 24 '14 at 16:29
1
Haven't tried it in 14.04. pulse* here means anything that begin with pulse in it's name.
– 465544
Aug 24 '14 at 16:34
1
Works on Linux Mint.
– possumkeys
Feb 20 '17 at 7:04
|
show 10 more comments
up vote
49
down vote
A very small, bare-bones software that does exactly what you need, is called (rather obviously) "Audio Recorder", installed like this:
sudo add-apt-repository ppa:audio-recorder/ppa
sudo apt-get update && sudo apt-get install audio-recorder
Files are saved automatically to the ~/Audio
directory.
1
It works like a charm, too! :)
– conualfy
Oct 10 '13 at 1:41
1
This is lovely, thank you! Very neat, and though Audacity setup works, if you just need to record audio (to ogg, wav, mp3, etc), this is the solution.
– karni
Oct 10 '13 at 16:48
Very simple and neat tool!
– SunLiWei
Nov 12 '14 at 10:02
2
Why would you go thru all the "hustle" with Audacity when this one does the job you need with a single click ... beats me.
– poelinca
Jun 11 '15 at 8:22
audio-recorder currently doesn't work in Ubuntu 14.04: audio-recorder: symbol lookup error: audio-recorder: undefined symbol: _gst_message_type
– Aleksander Alekseev
Feb 26 '16 at 8:29
|
show 4 more comments
up vote
24
down vote
Command Line
- Install
sudo apt-get install pulseaudio-utils lame mpg123
Search for your speakers and tap into your speaker's monitor stream
pacmd list-sinks | grep -e 'name:' -e 'index' -e 'Speakers'
Play anything you want to record and type in
parec -d alsa_output.pci-0000_00_1f.3.analog-stereo.monitor | lame -r -V0 - out.mp3
Hit
ctrl+c
to stop recording and play the recorded filempg123 out.mp3
Minimalistic GUI
I fixed up a very simple GUI to do this. Pull all the files from here and run install.sh
Goto Dash and search for Record Speakers
5
Best solution... <3
– Peque
Dec 28 '16 at 23:55
1
Of course it's for playback. It's also useful for testing loopback recording software that the software can intercept what is played back. Andparec
wasn't able to interceptaplay
's playback in my test on Ubuntu 14.04.
– Ruslan
Feb 19 '17 at 7:37
5
Consider removing the| lame [...]
pipe and use--file-format=wav output.wav
(for example). You can list the supported formats withparec --list-file-formats
. Also, consider making a bit more clear the fact that you need to specify the device with the.monitor
at the end. ^^
– Peque
Apr 5 '17 at 15:53
1
Nice, as this can do stereo playback recording. Looks like audacity can't do that.
– Peter Thomassen
Sep 21 at 17:07
1
you don't need necessarily the name of the source... you can also choose the index of the source :parec -d 0 | lame -r -V0 - out.mp3
– and-bri
Oct 20 at 15:37
|
show 13 more comments
up vote
2
down vote
I just made a small alias to record the PC audio output with one single command and stored in opus format instead of mp3.
Install the required packages:
sudo apt-get install pulseaudio-utils opus-tools
Edit your
.bashrc
file:
nano ~/.bashrc
Copy the line below and append it to the end of your
~.bashrc
:
alias recaudio="parec --monitor-stream="$(pacmd list-sink-inputs | awk '$1 == "index:" {print $2}')" | opusenc --raw - $(xdg-user-dir MUSIC)/recording-$(date +"%F_%H-%M-%S").opus"
Save the file by pressing Ctrl+X (to close
nano
), then Y (for "Yes") and Enter (to confirm the file name).
Now load the new
~/.bashrc
(or simply open a new terminal):
source $HOME/.bashrc
Then try, just type
recaudio
It will create a file in your Music home folder called recording-[DATE].opus
.
Enjoy.
What does the--monitor-stream=...
part do/mean? My list-sink-inputs is zero unless something's actually playing sound, then it would return a number. So this would have to be started after the sound is already playing?
– Xen2050
Nov 28 '17 at 4:27
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f229352%2fhow-to-record-output-to-speakers%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
110
down vote
accepted
If I'm not wrong, then I guess you are talking about recording "Stereo Mix" or loopback Output.
In layman's terms, Recording Stereo Mix means recording sound from speaker output.
Here's how to do it:
- Install
pavucontrol
from Ubuntu Software Center. - Install
audacity
from Ubuntu Software Center. - Select
pulse*
as recording device in Audacity. - Click Record Button.
- Open PulseAudio Volume Control (Search For PulseAudio Volume Control in Dash).
- Select Recording Tab.
- Now You Should see ALSA plug-in [audacity]. If you do not see ALSA plug-in [audacity], make sure you have clicked Record Button in audacity. You should be running recording in audacity while performing next step.
- Select "Monitor from *". See screen shot.
- Now you should be able to record the sound you hear from speaker or headphones.
Note: Tested in Ubuntu 12.10
Reference PulseAudio - Ubuntu Wiki
1
i did find "pulse" but i couldn't find "pulse:Mix:0" or anything like mix 0. i just went to preferences and then devices and i clicked on recording and it was only pulse there,where can i find pulse:mix:0?
– AmirRazoR
Dec 16 '12 at 16:47
@AmirRazoR Update to reflect current version of Ubuntu.
– 465544
Dec 17 '12 at 15:05
1
Each step happens as you describe, but ultimately no audio is recorded in Audacity (Ubuntu 14.04). What does the*
afterpulse*
mean?
– Drew Noakes
Aug 24 '14 at 16:29
1
Haven't tried it in 14.04. pulse* here means anything that begin with pulse in it's name.
– 465544
Aug 24 '14 at 16:34
1
Works on Linux Mint.
– possumkeys
Feb 20 '17 at 7:04
|
show 10 more comments
up vote
110
down vote
accepted
If I'm not wrong, then I guess you are talking about recording "Stereo Mix" or loopback Output.
In layman's terms, Recording Stereo Mix means recording sound from speaker output.
Here's how to do it:
- Install
pavucontrol
from Ubuntu Software Center. - Install
audacity
from Ubuntu Software Center. - Select
pulse*
as recording device in Audacity. - Click Record Button.
- Open PulseAudio Volume Control (Search For PulseAudio Volume Control in Dash).
- Select Recording Tab.
- Now You Should see ALSA plug-in [audacity]. If you do not see ALSA plug-in [audacity], make sure you have clicked Record Button in audacity. You should be running recording in audacity while performing next step.
- Select "Monitor from *". See screen shot.
- Now you should be able to record the sound you hear from speaker or headphones.
Note: Tested in Ubuntu 12.10
Reference PulseAudio - Ubuntu Wiki
1
i did find "pulse" but i couldn't find "pulse:Mix:0" or anything like mix 0. i just went to preferences and then devices and i clicked on recording and it was only pulse there,where can i find pulse:mix:0?
– AmirRazoR
Dec 16 '12 at 16:47
@AmirRazoR Update to reflect current version of Ubuntu.
– 465544
Dec 17 '12 at 15:05
1
Each step happens as you describe, but ultimately no audio is recorded in Audacity (Ubuntu 14.04). What does the*
afterpulse*
mean?
– Drew Noakes
Aug 24 '14 at 16:29
1
Haven't tried it in 14.04. pulse* here means anything that begin with pulse in it's name.
– 465544
Aug 24 '14 at 16:34
1
Works on Linux Mint.
– possumkeys
Feb 20 '17 at 7:04
|
show 10 more comments
up vote
110
down vote
accepted
up vote
110
down vote
accepted
If I'm not wrong, then I guess you are talking about recording "Stereo Mix" or loopback Output.
In layman's terms, Recording Stereo Mix means recording sound from speaker output.
Here's how to do it:
- Install
pavucontrol
from Ubuntu Software Center. - Install
audacity
from Ubuntu Software Center. - Select
pulse*
as recording device in Audacity. - Click Record Button.
- Open PulseAudio Volume Control (Search For PulseAudio Volume Control in Dash).
- Select Recording Tab.
- Now You Should see ALSA plug-in [audacity]. If you do not see ALSA plug-in [audacity], make sure you have clicked Record Button in audacity. You should be running recording in audacity while performing next step.
- Select "Monitor from *". See screen shot.
- Now you should be able to record the sound you hear from speaker or headphones.
Note: Tested in Ubuntu 12.10
Reference PulseAudio - Ubuntu Wiki
If I'm not wrong, then I guess you are talking about recording "Stereo Mix" or loopback Output.
In layman's terms, Recording Stereo Mix means recording sound from speaker output.
Here's how to do it:
- Install
pavucontrol
from Ubuntu Software Center. - Install
audacity
from Ubuntu Software Center. - Select
pulse*
as recording device in Audacity. - Click Record Button.
- Open PulseAudio Volume Control (Search For PulseAudio Volume Control in Dash).
- Select Recording Tab.
- Now You Should see ALSA plug-in [audacity]. If you do not see ALSA plug-in [audacity], make sure you have clicked Record Button in audacity. You should be running recording in audacity while performing next step.
- Select "Monitor from *". See screen shot.
- Now you should be able to record the sound you hear from speaker or headphones.
Note: Tested in Ubuntu 12.10
Reference PulseAudio - Ubuntu Wiki
edited Jun 11 '17 at 20:12
Abraham Murciano Benzadon
12510
12510
answered Dec 15 '12 at 17:28
465544
1,41611015
1,41611015
1
i did find "pulse" but i couldn't find "pulse:Mix:0" or anything like mix 0. i just went to preferences and then devices and i clicked on recording and it was only pulse there,where can i find pulse:mix:0?
– AmirRazoR
Dec 16 '12 at 16:47
@AmirRazoR Update to reflect current version of Ubuntu.
– 465544
Dec 17 '12 at 15:05
1
Each step happens as you describe, but ultimately no audio is recorded in Audacity (Ubuntu 14.04). What does the*
afterpulse*
mean?
– Drew Noakes
Aug 24 '14 at 16:29
1
Haven't tried it in 14.04. pulse* here means anything that begin with pulse in it's name.
– 465544
Aug 24 '14 at 16:34
1
Works on Linux Mint.
– possumkeys
Feb 20 '17 at 7:04
|
show 10 more comments
1
i did find "pulse" but i couldn't find "pulse:Mix:0" or anything like mix 0. i just went to preferences and then devices and i clicked on recording and it was only pulse there,where can i find pulse:mix:0?
– AmirRazoR
Dec 16 '12 at 16:47
@AmirRazoR Update to reflect current version of Ubuntu.
– 465544
Dec 17 '12 at 15:05
1
Each step happens as you describe, but ultimately no audio is recorded in Audacity (Ubuntu 14.04). What does the*
afterpulse*
mean?
– Drew Noakes
Aug 24 '14 at 16:29
1
Haven't tried it in 14.04. pulse* here means anything that begin with pulse in it's name.
– 465544
Aug 24 '14 at 16:34
1
Works on Linux Mint.
– possumkeys
Feb 20 '17 at 7:04
1
1
i did find "pulse" but i couldn't find "pulse:Mix:0" or anything like mix 0. i just went to preferences and then devices and i clicked on recording and it was only pulse there,where can i find pulse:mix:0?
– AmirRazoR
Dec 16 '12 at 16:47
i did find "pulse" but i couldn't find "pulse:Mix:0" or anything like mix 0. i just went to preferences and then devices and i clicked on recording and it was only pulse there,where can i find pulse:mix:0?
– AmirRazoR
Dec 16 '12 at 16:47
@AmirRazoR Update to reflect current version of Ubuntu.
– 465544
Dec 17 '12 at 15:05
@AmirRazoR Update to reflect current version of Ubuntu.
– 465544
Dec 17 '12 at 15:05
1
1
Each step happens as you describe, but ultimately no audio is recorded in Audacity (Ubuntu 14.04). What does the
*
after pulse*
mean?– Drew Noakes
Aug 24 '14 at 16:29
Each step happens as you describe, but ultimately no audio is recorded in Audacity (Ubuntu 14.04). What does the
*
after pulse*
mean?– Drew Noakes
Aug 24 '14 at 16:29
1
1
Haven't tried it in 14.04. pulse* here means anything that begin with pulse in it's name.
– 465544
Aug 24 '14 at 16:34
Haven't tried it in 14.04. pulse* here means anything that begin with pulse in it's name.
– 465544
Aug 24 '14 at 16:34
1
1
Works on Linux Mint.
– possumkeys
Feb 20 '17 at 7:04
Works on Linux Mint.
– possumkeys
Feb 20 '17 at 7:04
|
show 10 more comments
up vote
49
down vote
A very small, bare-bones software that does exactly what you need, is called (rather obviously) "Audio Recorder", installed like this:
sudo add-apt-repository ppa:audio-recorder/ppa
sudo apt-get update && sudo apt-get install audio-recorder
Files are saved automatically to the ~/Audio
directory.
1
It works like a charm, too! :)
– conualfy
Oct 10 '13 at 1:41
1
This is lovely, thank you! Very neat, and though Audacity setup works, if you just need to record audio (to ogg, wav, mp3, etc), this is the solution.
– karni
Oct 10 '13 at 16:48
Very simple and neat tool!
– SunLiWei
Nov 12 '14 at 10:02
2
Why would you go thru all the "hustle" with Audacity when this one does the job you need with a single click ... beats me.
– poelinca
Jun 11 '15 at 8:22
audio-recorder currently doesn't work in Ubuntu 14.04: audio-recorder: symbol lookup error: audio-recorder: undefined symbol: _gst_message_type
– Aleksander Alekseev
Feb 26 '16 at 8:29
|
show 4 more comments
up vote
49
down vote
A very small, bare-bones software that does exactly what you need, is called (rather obviously) "Audio Recorder", installed like this:
sudo add-apt-repository ppa:audio-recorder/ppa
sudo apt-get update && sudo apt-get install audio-recorder
Files are saved automatically to the ~/Audio
directory.
1
It works like a charm, too! :)
– conualfy
Oct 10 '13 at 1:41
1
This is lovely, thank you! Very neat, and though Audacity setup works, if you just need to record audio (to ogg, wav, mp3, etc), this is the solution.
– karni
Oct 10 '13 at 16:48
Very simple and neat tool!
– SunLiWei
Nov 12 '14 at 10:02
2
Why would you go thru all the "hustle" with Audacity when this one does the job you need with a single click ... beats me.
– poelinca
Jun 11 '15 at 8:22
audio-recorder currently doesn't work in Ubuntu 14.04: audio-recorder: symbol lookup error: audio-recorder: undefined symbol: _gst_message_type
– Aleksander Alekseev
Feb 26 '16 at 8:29
|
show 4 more comments
up vote
49
down vote
up vote
49
down vote
A very small, bare-bones software that does exactly what you need, is called (rather obviously) "Audio Recorder", installed like this:
sudo add-apt-repository ppa:audio-recorder/ppa
sudo apt-get update && sudo apt-get install audio-recorder
Files are saved automatically to the ~/Audio
directory.
A very small, bare-bones software that does exactly what you need, is called (rather obviously) "Audio Recorder", installed like this:
sudo add-apt-repository ppa:audio-recorder/ppa
sudo apt-get update && sudo apt-get install audio-recorder
Files are saved automatically to the ~/Audio
directory.
edited Jul 16 at 22:53
David Foerster
27.6k1364109
27.6k1364109
answered May 21 '13 at 17:17
user78915
49943
49943
1
It works like a charm, too! :)
– conualfy
Oct 10 '13 at 1:41
1
This is lovely, thank you! Very neat, and though Audacity setup works, if you just need to record audio (to ogg, wav, mp3, etc), this is the solution.
– karni
Oct 10 '13 at 16:48
Very simple and neat tool!
– SunLiWei
Nov 12 '14 at 10:02
2
Why would you go thru all the "hustle" with Audacity when this one does the job you need with a single click ... beats me.
– poelinca
Jun 11 '15 at 8:22
audio-recorder currently doesn't work in Ubuntu 14.04: audio-recorder: symbol lookup error: audio-recorder: undefined symbol: _gst_message_type
– Aleksander Alekseev
Feb 26 '16 at 8:29
|
show 4 more comments
1
It works like a charm, too! :)
– conualfy
Oct 10 '13 at 1:41
1
This is lovely, thank you! Very neat, and though Audacity setup works, if you just need to record audio (to ogg, wav, mp3, etc), this is the solution.
– karni
Oct 10 '13 at 16:48
Very simple and neat tool!
– SunLiWei
Nov 12 '14 at 10:02
2
Why would you go thru all the "hustle" with Audacity when this one does the job you need with a single click ... beats me.
– poelinca
Jun 11 '15 at 8:22
audio-recorder currently doesn't work in Ubuntu 14.04: audio-recorder: symbol lookup error: audio-recorder: undefined symbol: _gst_message_type
– Aleksander Alekseev
Feb 26 '16 at 8:29
1
1
It works like a charm, too! :)
– conualfy
Oct 10 '13 at 1:41
It works like a charm, too! :)
– conualfy
Oct 10 '13 at 1:41
1
1
This is lovely, thank you! Very neat, and though Audacity setup works, if you just need to record audio (to ogg, wav, mp3, etc), this is the solution.
– karni
Oct 10 '13 at 16:48
This is lovely, thank you! Very neat, and though Audacity setup works, if you just need to record audio (to ogg, wav, mp3, etc), this is the solution.
– karni
Oct 10 '13 at 16:48
Very simple and neat tool!
– SunLiWei
Nov 12 '14 at 10:02
Very simple and neat tool!
– SunLiWei
Nov 12 '14 at 10:02
2
2
Why would you go thru all the "hustle" with Audacity when this one does the job you need with a single click ... beats me.
– poelinca
Jun 11 '15 at 8:22
Why would you go thru all the "hustle" with Audacity when this one does the job you need with a single click ... beats me.
– poelinca
Jun 11 '15 at 8:22
audio-recorder currently doesn't work in Ubuntu 14.04: audio-recorder: symbol lookup error: audio-recorder: undefined symbol: _gst_message_type
– Aleksander Alekseev
Feb 26 '16 at 8:29
audio-recorder currently doesn't work in Ubuntu 14.04: audio-recorder: symbol lookup error: audio-recorder: undefined symbol: _gst_message_type
– Aleksander Alekseev
Feb 26 '16 at 8:29
|
show 4 more comments
up vote
24
down vote
Command Line
- Install
sudo apt-get install pulseaudio-utils lame mpg123
Search for your speakers and tap into your speaker's monitor stream
pacmd list-sinks | grep -e 'name:' -e 'index' -e 'Speakers'
Play anything you want to record and type in
parec -d alsa_output.pci-0000_00_1f.3.analog-stereo.monitor | lame -r -V0 - out.mp3
Hit
ctrl+c
to stop recording and play the recorded filempg123 out.mp3
Minimalistic GUI
I fixed up a very simple GUI to do this. Pull all the files from here and run install.sh
Goto Dash and search for Record Speakers
5
Best solution... <3
– Peque
Dec 28 '16 at 23:55
1
Of course it's for playback. It's also useful for testing loopback recording software that the software can intercept what is played back. Andparec
wasn't able to interceptaplay
's playback in my test on Ubuntu 14.04.
– Ruslan
Feb 19 '17 at 7:37
5
Consider removing the| lame [...]
pipe and use--file-format=wav output.wav
(for example). You can list the supported formats withparec --list-file-formats
. Also, consider making a bit more clear the fact that you need to specify the device with the.monitor
at the end. ^^
– Peque
Apr 5 '17 at 15:53
1
Nice, as this can do stereo playback recording. Looks like audacity can't do that.
– Peter Thomassen
Sep 21 at 17:07
1
you don't need necessarily the name of the source... you can also choose the index of the source :parec -d 0 | lame -r -V0 - out.mp3
– and-bri
Oct 20 at 15:37
|
show 13 more comments
up vote
24
down vote
Command Line
- Install
sudo apt-get install pulseaudio-utils lame mpg123
Search for your speakers and tap into your speaker's monitor stream
pacmd list-sinks | grep -e 'name:' -e 'index' -e 'Speakers'
Play anything you want to record and type in
parec -d alsa_output.pci-0000_00_1f.3.analog-stereo.monitor | lame -r -V0 - out.mp3
Hit
ctrl+c
to stop recording and play the recorded filempg123 out.mp3
Minimalistic GUI
I fixed up a very simple GUI to do this. Pull all the files from here and run install.sh
Goto Dash and search for Record Speakers
5
Best solution... <3
– Peque
Dec 28 '16 at 23:55
1
Of course it's for playback. It's also useful for testing loopback recording software that the software can intercept what is played back. Andparec
wasn't able to interceptaplay
's playback in my test on Ubuntu 14.04.
– Ruslan
Feb 19 '17 at 7:37
5
Consider removing the| lame [...]
pipe and use--file-format=wav output.wav
(for example). You can list the supported formats withparec --list-file-formats
. Also, consider making a bit more clear the fact that you need to specify the device with the.monitor
at the end. ^^
– Peque
Apr 5 '17 at 15:53
1
Nice, as this can do stereo playback recording. Looks like audacity can't do that.
– Peter Thomassen
Sep 21 at 17:07
1
you don't need necessarily the name of the source... you can also choose the index of the source :parec -d 0 | lame -r -V0 - out.mp3
– and-bri
Oct 20 at 15:37
|
show 13 more comments
up vote
24
down vote
up vote
24
down vote
Command Line
- Install
sudo apt-get install pulseaudio-utils lame mpg123
Search for your speakers and tap into your speaker's monitor stream
pacmd list-sinks | grep -e 'name:' -e 'index' -e 'Speakers'
Play anything you want to record and type in
parec -d alsa_output.pci-0000_00_1f.3.analog-stereo.monitor | lame -r -V0 - out.mp3
Hit
ctrl+c
to stop recording and play the recorded filempg123 out.mp3
Minimalistic GUI
I fixed up a very simple GUI to do this. Pull all the files from here and run install.sh
Goto Dash and search for Record Speakers
Command Line
- Install
sudo apt-get install pulseaudio-utils lame mpg123
Search for your speakers and tap into your speaker's monitor stream
pacmd list-sinks | grep -e 'name:' -e 'index' -e 'Speakers'
Play anything you want to record and type in
parec -d alsa_output.pci-0000_00_1f.3.analog-stereo.monitor | lame -r -V0 - out.mp3
Hit
ctrl+c
to stop recording and play the recorded filempg123 out.mp3
Minimalistic GUI
I fixed up a very simple GUI to do this. Pull all the files from here and run install.sh
Goto Dash and search for Record Speakers
edited Dec 11 at 20:17
answered Nov 16 '16 at 16:49
b-ak
2,03041929
2,03041929
5
Best solution... <3
– Peque
Dec 28 '16 at 23:55
1
Of course it's for playback. It's also useful for testing loopback recording software that the software can intercept what is played back. Andparec
wasn't able to interceptaplay
's playback in my test on Ubuntu 14.04.
– Ruslan
Feb 19 '17 at 7:37
5
Consider removing the| lame [...]
pipe and use--file-format=wav output.wav
(for example). You can list the supported formats withparec --list-file-formats
. Also, consider making a bit more clear the fact that you need to specify the device with the.monitor
at the end. ^^
– Peque
Apr 5 '17 at 15:53
1
Nice, as this can do stereo playback recording. Looks like audacity can't do that.
– Peter Thomassen
Sep 21 at 17:07
1
you don't need necessarily the name of the source... you can also choose the index of the source :parec -d 0 | lame -r -V0 - out.mp3
– and-bri
Oct 20 at 15:37
|
show 13 more comments
5
Best solution... <3
– Peque
Dec 28 '16 at 23:55
1
Of course it's for playback. It's also useful for testing loopback recording software that the software can intercept what is played back. Andparec
wasn't able to interceptaplay
's playback in my test on Ubuntu 14.04.
– Ruslan
Feb 19 '17 at 7:37
5
Consider removing the| lame [...]
pipe and use--file-format=wav output.wav
(for example). You can list the supported formats withparec --list-file-formats
. Also, consider making a bit more clear the fact that you need to specify the device with the.monitor
at the end. ^^
– Peque
Apr 5 '17 at 15:53
1
Nice, as this can do stereo playback recording. Looks like audacity can't do that.
– Peter Thomassen
Sep 21 at 17:07
1
you don't need necessarily the name of the source... you can also choose the index of the source :parec -d 0 | lame -r -V0 - out.mp3
– and-bri
Oct 20 at 15:37
5
5
Best solution... <3
– Peque
Dec 28 '16 at 23:55
Best solution... <3
– Peque
Dec 28 '16 at 23:55
1
1
Of course it's for playback. It's also useful for testing loopback recording software that the software can intercept what is played back. And
parec
wasn't able to intercept aplay
's playback in my test on Ubuntu 14.04.– Ruslan
Feb 19 '17 at 7:37
Of course it's for playback. It's also useful for testing loopback recording software that the software can intercept what is played back. And
parec
wasn't able to intercept aplay
's playback in my test on Ubuntu 14.04.– Ruslan
Feb 19 '17 at 7:37
5
5
Consider removing the
| lame [...]
pipe and use --file-format=wav output.wav
(for example). You can list the supported formats with parec --list-file-formats
. Also, consider making a bit more clear the fact that you need to specify the device with the .monitor
at the end. ^^– Peque
Apr 5 '17 at 15:53
Consider removing the
| lame [...]
pipe and use --file-format=wav output.wav
(for example). You can list the supported formats with parec --list-file-formats
. Also, consider making a bit more clear the fact that you need to specify the device with the .monitor
at the end. ^^– Peque
Apr 5 '17 at 15:53
1
1
Nice, as this can do stereo playback recording. Looks like audacity can't do that.
– Peter Thomassen
Sep 21 at 17:07
Nice, as this can do stereo playback recording. Looks like audacity can't do that.
– Peter Thomassen
Sep 21 at 17:07
1
1
you don't need necessarily the name of the source... you can also choose the index of the source :
parec -d 0 | lame -r -V0 - out.mp3
– and-bri
Oct 20 at 15:37
you don't need necessarily the name of the source... you can also choose the index of the source :
parec -d 0 | lame -r -V0 - out.mp3
– and-bri
Oct 20 at 15:37
|
show 13 more comments
up vote
2
down vote
I just made a small alias to record the PC audio output with one single command and stored in opus format instead of mp3.
Install the required packages:
sudo apt-get install pulseaudio-utils opus-tools
Edit your
.bashrc
file:
nano ~/.bashrc
Copy the line below and append it to the end of your
~.bashrc
:
alias recaudio="parec --monitor-stream="$(pacmd list-sink-inputs | awk '$1 == "index:" {print $2}')" | opusenc --raw - $(xdg-user-dir MUSIC)/recording-$(date +"%F_%H-%M-%S").opus"
Save the file by pressing Ctrl+X (to close
nano
), then Y (for "Yes") and Enter (to confirm the file name).
Now load the new
~/.bashrc
(or simply open a new terminal):
source $HOME/.bashrc
Then try, just type
recaudio
It will create a file in your Music home folder called recording-[DATE].opus
.
Enjoy.
What does the--monitor-stream=...
part do/mean? My list-sink-inputs is zero unless something's actually playing sound, then it would return a number. So this would have to be started after the sound is already playing?
– Xen2050
Nov 28 '17 at 4:27
add a comment |
up vote
2
down vote
I just made a small alias to record the PC audio output with one single command and stored in opus format instead of mp3.
Install the required packages:
sudo apt-get install pulseaudio-utils opus-tools
Edit your
.bashrc
file:
nano ~/.bashrc
Copy the line below and append it to the end of your
~.bashrc
:
alias recaudio="parec --monitor-stream="$(pacmd list-sink-inputs | awk '$1 == "index:" {print $2}')" | opusenc --raw - $(xdg-user-dir MUSIC)/recording-$(date +"%F_%H-%M-%S").opus"
Save the file by pressing Ctrl+X (to close
nano
), then Y (for "Yes") and Enter (to confirm the file name).
Now load the new
~/.bashrc
(or simply open a new terminal):
source $HOME/.bashrc
Then try, just type
recaudio
It will create a file in your Music home folder called recording-[DATE].opus
.
Enjoy.
What does the--monitor-stream=...
part do/mean? My list-sink-inputs is zero unless something's actually playing sound, then it would return a number. So this would have to be started after the sound is already playing?
– Xen2050
Nov 28 '17 at 4:27
add a comment |
up vote
2
down vote
up vote
2
down vote
I just made a small alias to record the PC audio output with one single command and stored in opus format instead of mp3.
Install the required packages:
sudo apt-get install pulseaudio-utils opus-tools
Edit your
.bashrc
file:
nano ~/.bashrc
Copy the line below and append it to the end of your
~.bashrc
:
alias recaudio="parec --monitor-stream="$(pacmd list-sink-inputs | awk '$1 == "index:" {print $2}')" | opusenc --raw - $(xdg-user-dir MUSIC)/recording-$(date +"%F_%H-%M-%S").opus"
Save the file by pressing Ctrl+X (to close
nano
), then Y (for "Yes") and Enter (to confirm the file name).
Now load the new
~/.bashrc
(or simply open a new terminal):
source $HOME/.bashrc
Then try, just type
recaudio
It will create a file in your Music home folder called recording-[DATE].opus
.
Enjoy.
I just made a small alias to record the PC audio output with one single command and stored in opus format instead of mp3.
Install the required packages:
sudo apt-get install pulseaudio-utils opus-tools
Edit your
.bashrc
file:
nano ~/.bashrc
Copy the line below and append it to the end of your
~.bashrc
:
alias recaudio="parec --monitor-stream="$(pacmd list-sink-inputs | awk '$1 == "index:" {print $2}')" | opusenc --raw - $(xdg-user-dir MUSIC)/recording-$(date +"%F_%H-%M-%S").opus"
Save the file by pressing Ctrl+X (to close
nano
), then Y (for "Yes") and Enter (to confirm the file name).
Now load the new
~/.bashrc
(or simply open a new terminal):
source $HOME/.bashrc
Then try, just type
recaudio
It will create a file in your Music home folder called recording-[DATE].opus
.
Enjoy.
edited Dec 29 '16 at 17:16
Byte Commander
62.6k26169285
62.6k26169285
answered Dec 29 '16 at 15:32
user2758162
291
291
What does the--monitor-stream=...
part do/mean? My list-sink-inputs is zero unless something's actually playing sound, then it would return a number. So this would have to be started after the sound is already playing?
– Xen2050
Nov 28 '17 at 4:27
add a comment |
What does the--monitor-stream=...
part do/mean? My list-sink-inputs is zero unless something's actually playing sound, then it would return a number. So this would have to be started after the sound is already playing?
– Xen2050
Nov 28 '17 at 4:27
What does the
--monitor-stream=...
part do/mean? My list-sink-inputs is zero unless something's actually playing sound, then it would return a number. So this would have to be started after the sound is already playing?– Xen2050
Nov 28 '17 at 4:27
What does the
--monitor-stream=...
part do/mean? My list-sink-inputs is zero unless something's actually playing sound, then it would return a number. So this would have to be started after the sound is already playing?– Xen2050
Nov 28 '17 at 4:27
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f229352%2fhow-to-record-output-to-speakers%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Why do you want to record sound from inside the computer??
– jPlatte
Dec 15 '12 at 16:48
1
there is a virtual piano website, and i want to play piano and record it while i'm listening to it from my headphones and not outloud.
– AmirRazoR
Dec 15 '12 at 16:56
3
So you just want to record the output sound of a website? I think almost everyone here thought you were talking about sounds of your computer components :D
– jPlatte
Dec 15 '12 at 17:42
My answer on this similar question might be helpful: askubuntu.com/questions/167061
– user76204
Dec 21 '12 at 0:02
2
See also How to record any internal sound in and out using Ubuntu and Audacity. There this answer did work for me, unlike all answers given here.
– Ruslan
Feb 18 '17 at 10:52