audiocapture
Connection between audio input device and Raspberry Pi hardware
Add-On Required: This feature requires the MATLAB Support Package for Raspberry Pi Hardware add-on.
Description
This object represents a connection between an audio input device and a Raspberry Pi® hardware. You can interact with the audio device using the functions listed in Object Functions.
Creation
Syntax
Description
creates an object that represents the connection to the audio input device, DeviceName, connected to
the Raspberry Pi hardware, audioCaptureObj
= audiocapture(mypi
,DeviceName
)mypi
. The Raspberry Pi hardware is represented by a raspi
object.
sets Properties using name-value
pairs. For example, audioCaptureObj
= audiocapture(mypi
,DeviceName
,Name,Value
)audioCaptureObj =
audiocapture(mypi,'plughw:1,0','SampleRate',44100)
reads audio data at a
sample rate of 44100. You can specify multiple name-value pairs. Enclose each property
name in single quotes.
Input Arguments
Properties
Object Functions
capture | Capture data from audio device connected to Raspberry Pi |
Examples
Extended Capabilities
Version History
Introduced in R2019b
See Also
capture
| play
| audioplayer