Input frame size error - Audio Device Writer Simulink Block

Hi, I have just started using the Simulink Audio Toolbox, I'm doing some basic tests to see if it works for me, but getting the following error when connecting Colored Noise block to Audio Device Writer:
"The input frame size must be less than or equal to twice the sample rate (or two seconds of audio samples). Either increase the device sample rate or reduce the input frame size."
In the Audio Device Writer block, I have checked the 'inherit sample rate from input' so the sample rate of the input should match. In future I will be connecting other input sources, e.g. microphone as well as color noise blocks

Answers (1)

The message is telling you that you must configure for at most 2 seconds of data for each invocation of the block.
Normally these kinds of blocks would be part of a loop that was continually generating more data and outputting it in turn, so normally the end result would be continuous sound.

Products

Release

R2020b

Tags

Asked:

on 29 Aug 2024

Answered:

on 30 Aug 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!