Chopping wav samples

"K. H. Hom via Sox-users" <[email protected]>
Newsgroups gmane.comp.audio.sox
Message-ID <lRjG5buel7kaPQteWtgv5V2iFrzzyiSQVQvmTVCLRbyfHB5uOOujLqIuXrIvE9PjhFTeQZvkTWmUD-q2EkWGIk9T-Z--BRzQgREDSU8oeF8=@protonmail.com>
Hi,
when i navigate to the folder with the source file and manually execute the following command it works:
sox threebursts.wav temp_outfile.wav silence 1 0.1 1 : newfile : restart

but if I craete a batch file which takes teh file as argument, it doent work:
sox "%~1" temp_outfile.wav silence 1 0.1 1% 1 0.1 1% : newfile : restart

it results into :
>sox "C:\Users\hom\Downloads\Desktop\New folder (3)\threebursts.wav" temp_outfile.wav silence 1 0.1 1 : newfile : restart

Any idea why that do not work please?

Cheers H

_______________________________________________
Sox-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sox-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.