Can't use audiowrite on linux server - stops with the Error invalidFileExtension
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Sebastian Roth
am 16 Jul. 2022
Bearbeitet: Andrej Voss
am 18 Jul. 2022
I'm executing this Code:
filename = ['EHG_HRIR_in.wav'];
disp(filename);
audiowrite(filename, combined_signal(:,side), Fs);
And the error message Matlab is throwing:
Error using message
In 'MATLAB:audiovideo:audiowrite:invalidFileExtension', parameter {1} must be a real scalar.
Error in audiowrite>validateExtension (line 379)
error(message('MATLAB:audiovideo:audiowrite:invalidFileExtension',...
Error in audiowrite>validateFilename (line 394)
validateExtension(filepath.Extension,filename)
Error in audiowrite (line 165)
[props.filename, fileExisted] = validateFilename( props.filename );
I'm very happy, if anyone could tell me what is going on.
0 Kommentare
Akzeptierte Antwort
Andrej Voss
am 18 Jul. 2022
Bearbeitet: Andrej Voss
am 18 Jul. 2022
The error message is wrong:
'MATLAB:audiovideo:audiowrite:invalidFileExtension', parameter {1} must be a real scalar.
The function get.WriteableFileTypes in PluginManager.m returns an empty array which indicates a missing C++ library.
@MathWorks Support Team An appropriate error message like "no writable file type found, check system's C++ sound libraries" would help a lot.
I'm not an expert but I could solve the problem by installing the necessary libraries e.g. by installing the Synthesis ToolKit in C++ (STK)
sudo apt-get install stk
'clear all' the console
Now it should work.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Point Cloud Processing 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!