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?
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?
If I'm not wrong, then I guess you are talking about recording "Stereo Mix" or loopback Output.
Here's how to do it:
pavucontrol
from Ubuntu Software Center.audacity
from Ubuntu Software Center.pulse*
as recording device in Audacity.A very small, bare-bones software that does exactly what you need, is called (rather obviously) "Audio Recorder", installed like this:
Files are saved automatically to the
~/Audio
directory.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'
or
pacmd list-sources | 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
A very simple GUI to do this, pull all the files from here and run
install.sh
Goto Dash and search forRecord Speakers
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:
Edit your
.bashrc
file:Copy the line below and append it to the end of your
~.bashrc
: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):Then try, just type
It will create a file in your Music home folder called
recording-[DATE].opus
.Enjoy.
Note: Okay this answer might seem like a cop-out but it works and its great software, especially if you want to additionally record your speaker output and microphone output at the same time. Or if you also need to video record your computer screen.
Anyways, been pulling my hair out forever googling for an answer that is simple to use and provides everything I need.
Install and use Open Broadcaster Software (OBS). Seriously, that's it. Googling it should bring up installation instructions tailored to your machine.
Just record with OBS and it will just make a video with your audio in it. If you only want to record audio, just record without a video source and it will make a blank video with your recording. If you want to record only speaker output and not the mic, simply mute the microphone with a press of a button. Intuitive.
(Note this gives you a video file. It doesn't bother me but if you need an audio file like an mp3 you would have to figure out how to convert the video file you made into an audio file (I don't know how to do that, but there are plenty of resources out there that tell you).)
I have found more better solution, because Audicity and pulse failed to record ubuntu audios when playing within any input of mic. Audicity don't record anything if you turn off your pc mic.
I found better solution using audio recorder.
Therefore, try out the following command in the shell and press Enter:
Click here to get step by step guidelines. Visit blog here for more updates.