audioread web app 에러

1 Ansicht (letzte 30 Tage)
종현
종현 am 7 Apr. 2023
Beantwortet: Sarthak am 21 Apr. 2023
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 Kommentar
Nihal Reddy
Nihal Reddy am 13 Apr. 2023
Can you share the error you are encountering while executing the "audioread" function in web app?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Sarthak
Sarthak am 21 Apr. 2023
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!

Kategorien

Mehr zu 설치 및 라이선스 부여 소개 finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!