Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there an application capable of recording sound that I can run from the command line on XP?

Ideally I'd start it with one command and stop it with another. Or I could specify a duration with the starting command.

share|improve this question

3 Answers 3

up vote 7 down vote accepted

You can use SoX package.

rec recorded_track.wav 00:05

Records for 5 minutes.

More documentation on SoX manpage.

share|improve this answer

This is old but might be an alternative


This program encodes live audio from line-in or microphone directly into Ogg Vorbis, MP3, FLAC, Speex and other formats.

The current version only has built-in support for Ogg Vorbis and Speex. It means you can use any other encoders too, but for encoders other than Ogg Vorbis and Speex you'll need to manually specify the command-line.

share|improve this answer

Another Alternative:

Advantages (IMO):

  • Really small, 5,12 kilobytes
  • Single file


  • Only records it to a Wave file (.wav)


record [seconds] [outfile]
share|improve this answer

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.