audiorecorder
Object for recording audio
Description
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.
Creation
Syntax
Description
recorder = audiorecorderaudiorecorder object with these properties:
- SampleRate:- 8000
- BitsPerSample:- 8
- NumChannels:- 1
Input Arguments
Properties
Object Functions
| get | Query property values for audiorecorderobject | 
| getaudiodata | Store recorded audio signal in numeric array | 
| getplayer | Create associated audioplayerobject | 
| isrecording | Determine if recording is in progress | 
| pause | Pause playback of audioplayerobject or recording ofaudiorecorderobject | 
| play | Play audio from audiorecorderobject | 
| record | Record audio to audiorecorderobject | 
| recordblocking | Record audio to audiorecorderobject; hold control until recording
      completes | 
| resume | Resume playback of audioplayerobject or recording ofaudiorecorderobject from paused state | 
| set | Set property values for audiorecorderobject | 
| stop | Stop playback of audioplayerobject or recording ofaudiorecorderobject | 
Examples
Limitations
- These limitations apply when using - audiorecorderin MATLAB Online™ or MATLAB Web App Server™:- You cannot create an - audioplayerobject from an- audiorecorderobject.
- audiorecorderignores- nBits. Instead, it records audio data using the default number of bits per sample of the input audio device.
- Valid values of the sample rate - Fsmay not be the same as they are in MATLAB Desktop.
 
Tips
- audiorecorderin MATLAB Online and MATLAB Web App Server is supported in Google Chrome®.
- Note - Security Considerations When Using MATLAB Online or MATLAB Web App Server: When using - audiorecorderin MATLAB Online or MATLAB Web App Server, certain features and settings help you keep control of your privacy.- To reduce the likelihood of unwanted applications using your microphone, turn off automatic access to your audio device. You can change these settings at any time. After granting permission to a website once, your browser may be able to access your microphone automatically for that site on future visits. Use the browser settings for Google Chrome to revoke access for specific sites after you have initially allowed access. - You can also access the MATLAB Online website or MATLAB Web App Server using the private browsing mode in Google Chrome. When you do this, Chrome® automatically asks you for permission every time it tries to access your microphone, regardless of your browser settings. 
Version History
Introduced before R2006a