Data Acquisition Toolbox
MATLAB and Simulink support Microsoft Windows compatible sound cards by using the Data Acquisition Toolbox.
Using MATLAB to Acquire and Generate Audio Data
The Data Acquisition Toolbox allows users to easily acquire sound directly from sound cards into MATLAB, or to generate live sound from MATLAB to sound cards.
Note: Sound card support from Data Acquisition Toolbox requires the Legacy interface and the 32-bit version of Data Acquisition Toolbox and MATLAB. The 32-bit versions of Data Acquisition Toolbox and MATLAB can be installed on a 64-bit Windows OS.
MATLAB Sound Examples:
Download the MATLAB sound code example to get started using MATLAB for audio acquisition.
Functionality only available with the toolbox includes the ability to buffer the acquisition so that you can analyze the data in MATLAB as it is being acquired. The toolbox also enables you to easily switch hardware from a sound card to another supported data acquisition device with minimal changes to your MATLAB script.
Using Simulink to Acquire and Generate Audio Data
Data Acquisition Toolbox provides Simulink blocks that enable you to acquire live sound data directly into Simulink models, or to output live sound data from your Simulink models. You can verify and validate your model against live, measured data as part of Model-Based Design.
Simulink Sound Examples:
Download the Simulink sound example to get started using Simulink for audio acquisition.
The toolbox enables you to easily switch hardware from a sound card to another supported data acquisition device with minimal changes to your Simulink model.