[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to record sound to mp3 [wav, for those who can]



On Thu 25 Mar 2021 at 17:40:51 (+0100), Nicolas George wrote:
> David Wright (12021-03-25):
> > > now i modify my requirement to how to use arecord to record sound being played to wav file
> 
> > To record, you could type, for example, in another xterm:
> > 
> > $ arecord -d 10 -f cd -v -v -v -D plughw:0,0 /tmp/audiofile.wav
> 
> This command does not record the sound being played.

… on your machine. That's why I wrote "If you can't get ALSA to work…".
You're a candidate for pulseaudio, I assume.

AFAICT, this recording facility is getting harder to find on most
computers, if you're not prepared to fork out for a sound card.
I've been fortunate, in that just as my ancient Pentium III expired,
I have acquired a Dell Precision T3500 which has a well endowed
(integrated) sound card.

I'm still finding my way round it: for example, it also has HDMI
playback, but I haven't yet worked out how to exploit it. The machine
has one DVI output and two DisplayPorts, so I need to find a
DisplayPort/HDMI adapter to see if that would yield anything.

It also has two Capture devices, and I don't know whether that means
there are two independent sound paths. If so, then I should be able to
record from the browser to one file, and from a TV (my UK one has
headphone output) or the Roku remote control to another file at the
same time.

Anyway, I just recorded a bit of audio from Abbey Road (the live webcam¹,
not the album), and printed the settings of all the controls (attached).
AIUI at present, the critical section is at the end, specifically:

Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Mic' 'Line' 'Stereo Mix'
  Item0: 'Stereo Mix'

IOW, I'm recording from the mixer.

¹ https://www.abbeyroad.com/Crossing

Cheers,
David.
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 31
  Mono: Playback 31 [100%] [0.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 39
  Mono:
  Front Left: Playback 0 [0%] [-58.50dB] [on]
  Front Right: Playback 0 [0%] [-58.50dB] [on]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 31
  Mono: Playback 0 [0%] [-46.50dB] [on]
Simple mixer control 'Line',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [on]
  Front Right: Playback 0 [0%] [-34.50dB] [on]
Simple mixer control 'Line Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'Line Out',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-46.50dB] [on]
  Front Right: Playback 0 [0%] [-46.50dB] [on]
Simple mixer control 'Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'Beep',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 15
  Mono: Playback 0 [0%] [-45.00dB] [off]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Speaker Only' 'Line Out+Speaker'
  Item0: 'Disabled'
Simple mixer control 'Independent HP',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Disabled'
Simple mixer control 'Loopback Mixing',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Disabled'
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 54
  Front Left: Capture 44 [81%] [7.50dB] [on]
  Front Right: Capture 44 [81%] [7.50dB] [on]
Simple mixer control 'Capture',1
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 54
  Front Left: Capture 33 [61%] [-9.00dB] [on]
  Front Right: Capture 33 [61%] [-9.00dB] [on]
Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Mic' 'Line' 'Stereo Mix'
  Item0: 'Stereo Mix'
Simple mixer control 'Input Source',1
  Capabilities: cenum
  Items: 'Mic' 'Line' 'Stereo Mix'
  Item0: 'Line'

Reply to: