11-756 / 18799D Design and Implementation of ASR Systems

11-756/18799D ASR: Assignment 1, Live Audio Capture

Problem

Write a routine to capture audio from a microphone connected to your computer. The program should

The audio must be recorded at a sampling rate of 16000 Hz. Samples must be 16-bit PCM by default. However, the code must have the option of setting sampling rate and sample format from command line.

Please refer to the notes from class 2 for some brief info on audio capture.

If you are not familiar with audio capture, you may want to use portaudio, aailable from www.portaudio.com. Port audio is available for Linux, Windows and Mac. It provides both call-back-based and blocking APIs for audio capture.