Object for recording audio
Use an audiorecorder object to record audio data from an input
device such as a microphone for processing in MATLAB®. The audiorecorder object contains properties that enable
additional flexibility during recording. For example, you can pause, resume, or define
callbacks using the audiorecorder object functions.
creates and returns
an recorder = audiorecorderaudiorecorder object with these properties:
Sampling frequency Fs = 8000 hertz
Bits per sample nBits = 8
Number of channels nChannels = 1
sets the sample rate recorder = audiorecorder(Fs,nBits,NumChannels)Fs (in hertz), the bits per sample
nBits, and the number of channels
nChannels.
sets the audio input device to the device specified by recorder = audiorecorder(Fs,nBits,NumChannels,ID)ID.
get | Query property values for audiorecorder object |
getaudiodata | Store recorded audio signal in numeric array |
getplayer | Creates associated audioplayer object |
isrecording | Determine if recording is in progress |
pause | Pause playback or recording |
play | Play audio from audiorecorder object |
record | Record audio to audiorecorder object |
recordblocking | Record audio to audiorecorder object, hold control until recording
completes |
resume | Resume playback or recording from paused state |
set | Set property values for audiorecorder object |
stop | Stop playback or recording |