Owning Class: audio
Requires: MathScript RT Module
wavrecord(n)
wavrecord(n, fs)
wavrecord(n, fs, type)
c = wavrecord(n)
c = wavrecord(n, fs)
c = wavrecord(n, fs, type)
Records audio signals.
| Name | Description | ||||
|---|---|---|---|---|---|
| n | Specifies the number of samples you want to acquire. | ||||
| fs | Specifies the sampling frequency. Valid values of fs are 8000, 11025, 22050, and 44100 Hz. fs is a scalar. The default is 11025. | ||||
| type | Specifies whether LabVIEW acquires a mono signal or a stereo signal. type accepts the following values.
|
| Name | Description |
|---|---|
| c | Returns the content of the acquired audio signal. c is a vector that represents a mono channel, or a matrix of two columns where each column represents one of the two stereo channels. |
z = wavrecord(22050, 11025);
wavplay(z')
plot(z)