Function Reference
— Function File: record (sec, sampling_rate)

Records sec seconds of audio input into the vector x. The default value for sampling_rate is 8000 samples per second, or 8kHz. The program waits until the user types <RET> and then immediately starts to record.