Recording a sound and inserting to a matrix as a new column

조회 수: 1 (최근 30일)
Emre Akinci
Emre Akinci 2019년 6월 13일
I am recording sounds on MATLAB and user is deciding how many sound will record
I want to make
sound(recorded(:,1));
will give first sound and
sound(recorded(:,2));
will gice second sound. It will go like that if user recorded n sound
user can listen n-1. or n-2 column with
sound
command
what I need to do? there are my codes
while i < signalNum+1
fprintf('%d. sound: \n',i);
recorderA= audiorecorder(48000,16,2);
record(recorderA,3);
pause(time);
fprintf('end of record');
for a=3:-1:1
fprintf('Next record',a);
pause(1)
end
recordedS = getaudiodata(recordedA); %I have tried recordedS = getaudiodata(recordedA(:,i));
recordedA= recordedA(:,i);
i = i + 1;
end

답변 (0개)

카테고리

Help CenterFile Exchange에서 Audio I/O and Waveform Generation에 대해 자세히 알아보기

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by