필터 지우기
필터 지우기

Audio recorder using app designer

조회 수: 3 (최근 30일)
Harsha KVK
Harsha KVK 2022년 7월 28일
댓글: Abderrahim. B 2022년 7월 28일
Hello, I am trying to bulid a audio recorder app based on the following code I wrote in a Script:
Fs = 8000;
recObj = audiorecorder;
while 1
a = input('0 to start,1 to stop,2 to pause,3 to resume');
switch a
case 0
record(recObj);
disp('started recording')
case 1
stop(recObj);
break;
case 2
pause(recObj);
case 3
resume(recObj);
end
end
audioData = getaudiodata(recObj);
filename = 'C:\Users\Lenovo\OneDrive\Desktop\MySpeech.wav';
audiowrite(filename, audioData,Fs);
disp('done recording');
But I am not able to record any audio using the app, an empty file is being saved. Can anyone please help me with this?
  댓글 수: 1
Abderrahim. B
Abderrahim. B 2022년 7월 28일
Hi!
I can't see any command related to app designer ! Clarify further.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by