real-凯发k8网页登录

main content

real-time audio in simulink

create model using audio toolbox simulink model templates

the audio toolbox™ simulink® model templates provide a simulink environment suitable for audio signal processing.

to create a model using the audio toolbox simulink model templates:

  1. open the simulink start page by typing simulink at the matlab® command prompt.

  2. under audio toolbox, click the model template you want.

    the two audio toolbox simulink model templates are:

    • audio system – creates a blank model configured with settings recommended for audio toolbox.

    • basic audio player – creates an audio model configured with settings recommended for audio toolbox. this model uses a block to read multimedia files, and an 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 block.

add audio toolbox blocks to model

  1. create a model using an audio toolbox template.

  2. open the simulink library browser and select audio toolbox.

  3. select a block from one of the audio toolbox block library categories and add it to your model.

  4. in this example, a 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.

block characteristics

you can type at the matlab command line to generate a table showing characteristics of simulink blocks in audio toolbox.

related topics

    网站地图