Get samples from audioplayer object

2 views (last 30 days)
Ryan Sinfield
Ryan Sinfield on 15 Nov 2016
Answered: Rajanya on 19 Dec 2024
Is there any way to get the samples that make up an audioplayer object after it's been instantiated?
a = audioplayer(y, fs)
s = get(a, 'AllSamples');

Answers (1)

Rajanya
Rajanya on 19 Dec 2024
I understand that you are trying to get the audio data from the 'audioplayer' object after it has been instantiated. Here's a link to a similar question which addresses the issue -
Thanks!

Products

Community Treasure Hunt

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

Start Hunting!