I am working on a project in matlab to take a predetermined audio file and change the sample rate dynamically from data generated in real time. I have hit a very stubborn roadblock with the dsp.audioplayer object. It doesn't allow change in either the sample rate or the sample size once it's state is locked. My thoughts right now are to vary the sample size that I pull from the wav file and scale it using a fir rate conversion filter. Is this an option worth perusing? Are there any other ways around this problem?

有帮助吗?

解决方案

In the latest MATLAB release samplerate is tunable in dsp.audioplayer. Tunable Means you can change the property value after the object is locked.

Your workaround is good when this is not possible.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top