Blog Archive

Thursday, August 18, 2011

how to convert sphere file into raw or wav with matlab or linux

% sph===> wav
    cmd_str=sprintf('sox -t sph  %s      -b 16  -t wav %s',inputSPH, tmpWav);
    system(cmd_str);


% sph===> raw
    cmd_str=sprintf('sox -t sph  %s      -b 16  -t raw %s',inputSPH, tmpWav);
    system(cmd_str);

sox -t sph xaab.sph -b 16  -t wav xaab.wav
sox -t sph xaab.sph -b 16  -t raw xaab.raw

No comments:

Post a Comment