필터 지우기
필터 지우기

audioread web app 에러

조회 수: 2 (최근 30일)
종현
종현 2023년 4월 7일
답변: Sarthak 2023년 4월 21일
appdesigner에서는 audioread가 정상 작동하는데 web app으로 넘어와서는 에러가 발생합니다.
도움 부탁드립니다.
Code:
[Fn, Fp] = uigetfile('*.wav;*.csv;*.xlsx;*.txt',"MultiSelect","on");
try
[~,~,ext] = fileparts(Fn);
if strcmp(ext,'.wav')
[audio,x] = audioread(fullfile(Fp,Fn));
  댓글 수: 1
Nihal Reddy
Nihal Reddy 2023년 4월 13일
Can you share the error you are encountering while executing the "audioread" function in web app?

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

답변 (1개)

Sarthak
Sarthak 2023년 4월 21일
Hi 종현,
As per my understanding, audioread may behave a bit differently when using with webapp since it runs on a webserver and has different permissions and file system access as compared to the local environment in appdesigner.
I would request you to verify that the webapp has permissions to read file from the specified file path and the file path of your audio file is in a valid webapp environment.
I hope this helps!

카테고리

Help CenterFile Exchange에서 앱 디자이너를 사용하여 앱 개발하기에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!