Home | Hardware | Internet News |Web Hosting |IT Management |Network Storage
LinuxPlanet
Search 
  Power Search | Tips 

 Front Door
 Discussion
 LinuxEngine
 Opinions
 Reports
 Reviews
 Tutorials
 News
 Technology Jobs

 Browse by subject.
Free Newsletter

Linux Planet
Linux Today
More Free Newsletters

Be a Commerce Partner


















internet.com
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

Print this article
Email this article

   LinuxPlanet / Tutorials



Better Linux Sound Managment With ALSA, Part 2
Recording With ALSA

Carla Schroder
Thursday, March 6, 2008 09:28:40 AM

arecord is a recording utility included with ALSA. It's not a mighty mixer recorder with trainloads of features, but a simple utility for making audio recordings in WAV format. You can fine-tune your sampling rate, interrupts intervals, buffer size, sample format, and all manner of finicky settings. Me, I stick with the shortcuts: the -f cd option records in CD format, and -f dat for digital audio. It's great for scripting, and good quick test of your recording and playback:

$ arecord -vv  -D headset -fcd  test.wav
$ aplay -vv -D v8237 test.wav

Hit CTRL +C stop either command.

A couple of random nuggets: run cat /proc/asound/version to get your ALSA version.

The examples are from the onboard sound on my low-budget ECS motherboard. As you can see, it supports digital output (S/PDIF = Sony-Phillips Digital Interface) in addition to analog. However, I can't use it--there is neither connector nor headers on the motherboard. Beware when you are buying sound cards, because they often claim "24-bit digital sound!" or some such. All computer sound cards support digital sound- their main job is converting digital sound files for analog speakers. If you want digital output to digital speakers, read the specs carefully to be sure you're getting real 100% digital.

Resources

Carla Schroder is the author of the Linux Cookbook and the newly-released Linux Networking Cookbook, and is a regular contributor to LinuxPlanet.

« Back: Testing Sound Channels

Skip Ahead

1 Testing Sound Channels
2 Digging Into Sound Cards
3 Recording With ALSA





Linux is a trademark of Linus Torvalds.


internet.com home | search | help! | about us

Jupiter Online Media

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers