Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I built a tool that uses arecord, but now i noticed that it doesn't work on some computers, as the format isn't supported by that hardware, how can i see/list what formats thats supported?

Arecords man page says:

-f --format=FORMAT
Sample format
Recognized sample formats are: S8 U8 S16_LE S16_BE U16_LE U16_BE S24_LE S24_BE U24_LE U24_BE S32_LE S32_BE U32_LE U32_BE FLOAT_LE FLOAT_BE FLOAT64_LE FLOAT64_BE IEC958_SUBFRAME_LE IEC958_SUBFRAME_BE MU_LAW A_LAW IMA_ADPCM MPEG GSM SPECIAL S24_3LE S24_3BE U24_3LE U24_3BE S20_3LE S20_3BE U20_3LE U20_3BE S18_3LE S18_3BE U18_3LE
Some of these may not be available on selected hardware

share|improve this question

In alsa-utils 1.0.26, arecord has the option --dump-hw-params for this.

share|improve this answer
good to know, but the computers have 1.0.25, as thats whats shiped with ubuntu – Puggan Se Oct 2 '12 at 11:54
The you'll have to download and compile it manually. – CL. Oct 2 '12 at 12:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.