RSS Subscription
Linux Howtos & Tutorials

Enter your email:

Delivered by


NOTE:New tutorials are from LinuxCareer.com

Poll

Do you own or wish to have iPhone?
 


Linux eBooks FREE Download
A guide to programming Linux kernel modules
Introduction to Linux - A Hands on Guide
A Newbie's Getting Started Guide to Linux

Linux from Scratch - Create Your Own Linux System - Free eBook

Linux: The Hacking Solution (v.3.0)

SQLite 3 with PHP Essential Training – Free Video Training Tutorials

This guide will introduce you to the world of GNU/Linux

The GNU/Linux Advanced Administration

A Complete Beginner's Manual for Ubuntu 10.04 (Lucid Lynx)

Advanced Bash-Scripting Guide

Set up, maintain, and secure a small office email server

Partner Linux Sites:
How-To.LinuxCareer.com
Jobs.LinuxCareer.com
TuxMachines
Monsterb
LinuxBloggers
AdamsInfo
LinuxScrew
All For Linux

How to test microphone with Audio Linux Sound Architecture - ALSA

Article Index
1. List of sound devices
2. Test MIC
3. Play test-mic.wav

Sometime a need comes to test microphone for use with VOIP applications such us Skype. The simplest and easiest way to test microphone ( MIC ) on your linux system is to use default alsa tools which come with alsa sound system package. First we need to check if alsa had recognized and our sound device.

1. List of sound devices

$ cat /proc/asound/cards
0 [NVidia         ]: HDA-Intel - HDA NVidia
HDA NVidia at 0xefff0000 irq 20

you may get bunch of devices but we are interested in the one which seems to familiar to you or the one which has IRQ. Another command to use to check which sound devices are recognized by your alsa system is arecord -l:

$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: AD198x Analog
[AD198x Analog]
Subdevices: 3/3
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2

2. Test MIC

to test microphone we would used arecord on the command line. This small utility will record sound from your default alsa default sound device. No special arguments as device name are not required since we I have only one sound card.

$ arecord -d 10 /tmp/test-mic.wav

this will record 10 seconds.

3. Play test-mic.wav

Now it is easy to play your wav file with another simple alsa utility a play:

$ aplay /tmp/test-mic.wav

NOTE:
If you have a more sound devices on your system and you need to use the non default sound card you can specify it to arecord with -D option. For example:

$ arecord  hw:1,0 -d 10  /tmp/test-mic.wav

will use second sound card where 1 refers to card and 0 refers to device as returned by arecord -l command. If you want to change your default alsa sound device globally on the system here is a link to unofficial alsa wiki which you might find helpful:
http://alsa.opensrc.org/index.php/FAQ026

 

Share this linux post:

Submit How to test microphone with Audio Linux Sound Architecture - ALSA in Delicious Submit How to test microphone with Audio Linux Sound Architecture - ALSA in Digg Submit How to test microphone with Audio Linux Sound Architecture - ALSA in FaceBook Submit How to test microphone with Audio Linux Sound Architecture - ALSA in Google Bookmarks Submit How to test microphone with Audio Linux Sound Architecture - ALSA in Stumbleupon Submit How to test microphone with Audio Linux Sound Architecture - ALSA in Technorati Submit How to test microphone with Audio Linux Sound Architecture - ALSA in Twitter
 
Comments for this page are closed !!!
Please visit our new Linux Forum for additional help or discussion.


Linux eBooks FREE Download