I'm trying to duplicate the "Process Files..." function within MATLAB.
Currently I'm using the block processing model that executes with the command:
[SYS, out] = process(SYS, {in}, x);
where x is the number of blocks I want to process at one time.
This works well for short files; however, if I want to run a 5min audio clip through my .awd framework the system runs extremely slow. I need a solution that allows me to run audio files in non-real time (as fast as my computer can execute) through my .awd framework within MATLAB.
The "Tools/Process Files..." function runs extremely fast (with large files) and I can process audio manually using this tool. I'd like to build an automated tool within MATLAB that mimics this performance (time to execute).
Thoughts on how to achieve this?
Doug
11:39am
Hi Doug,
Unfortunately this method of processing files is inherently slow since data goes over the tuning interface. The other methods of "Tools/Process Files" or the command line method work natively so time to execute is quite a bit faster.
1:06pm
Thanks for the feedback!
Can you provide a quick example on how (if) I could run the "Tools/Process Files" from within Matlab using a command line?
4:02pm
Hi Doug,
The command line usage in Matlab would be as follows:
AWE_ProcessFile <Input AWB file path>, <Input wav file path>,
<Output wav file path>, <Encryption: En0|En1>, <Log Level: 0:3>(optional).
Ex1:
AWE_ProcessFile Example.awb SoundOfSunshine48kHz.wav out.wav En0 3
Ex2:
Windows requires you to double quote file names if there are embedded spaces:
AWE_ProcessFile "Example - Process Files.awb" SoundOfSunshine48kHz.wav out.wav En0 3
4:46pm
Ok... It's my understanding then that this tool is only accessible "within" Matlab via a system('...') command. with the command line details included within the system call.
I don't see a direct access to AWE_ProcessFile or equivalent function within the DSPConcepts Matlab tools.
Is my understanding correct?
In this form the integration (or lack of it) does limit some of the benefits of controlling and processing audio through AWD frameworks within Matlab.
10:50pm
Hi Doug,
I believe this is correct, but will stay apprised of any alternatives or developments in processing files via Matlab and let you know if I come up with anything.