generating audio file through m.script
조회 수: 11 (최근 30일)
이전 댓글 표시
hi, i need an audiofile to generate any speech for particular frequency and for particular time. can u suggest me how to generate audiofile using m-file.... ?
Thanks Deepa.R
댓글 수: 0
채택된 답변
madhan ravi
2018년 8월 27일
편집: madhan ravi
2018년 8월 27일
Try the below code:
recorder = audiorecorder;
disp('Start speaking.')
recorder.record(100); %100 refers to the seconds
while recorder.isrecording()
pause(0.1);
plot(recorder.getaudiodata());
drawnow();
end
disp('End of Recording.');
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Code Generation and Deployment에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!