This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.

Real-Time Audio in Simulink

Create Model Using Audio System Toolbox Simulink Model Templates

The Audio System Toolbox™ Simulink® model templates let you automatically configure the Simulink environment for audio signal processing. See Recommended Settings for Audio Signal Processing. These templates enable reuse of settings, including configuration parameters. For more information on Simulink model templates, see Create a Model (Simulink).

To create a model using the Audio System Toolbox Simulink model templates:

  1. Open the Simulink Start Page by typing simulink at the MATLAB® command prompt.

  2. Under Audio System Toolbox, click the model template you want, and then click .

    The two Audio System Toolbox Simulink model templates are:

    • Audio System – Creates a blank model configured with settings recommended for Audio System Toolbox.

    • Basic Audio Player – Creates an audio model configured with settings recommended for Audio System Toolbox. This model uses a From Multimedia File block to read multimedia files, and a Audio Device Writer block to send sound data to the default audio device of your computer. Adjust the model as needed to model your audio system. For example, to process live audio input, replace the From Multimedia File block with an Audio Device Reader block.

Add Audio System Toolbox Blocks to Model

  1. Create a model using an Audio System Toolbox template.

  2. Open the Simulink Library Browser and select Audio System Toolbox.

  3. The Audio System Toolbox Block Library has six categories: Dynamic Range Control, Effects, Filters, Measurements, Sinks, and Sources. Select a block from one of the categories, and add it to your model.

  4. In this example, a Compressor is added to the model by dragging and dropping from the Dynamic Range Control category of the Simulink Library Browser.

  5. To run your model, click the button.

  6. Open a block parameter user interface by double-clicking the block. You can modify parameters while the model runs. For example, if you added a Compressor block, you can adjust the Threshold (dB) dial to compress the dynamic range of your audio signal.

  7. Running a model in the Simulink environment does not save the model. Save your model by clicking the button.

Recommended Settings for Audio Signal Processing

Configuration ParameterSetting

Related Topics

Was this topic helpful?