Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- REM Set the local directory to find the python script
- REM SETLOCAL
- SET v=%CD%
- echo the pth is %v%
- echo
- call :treeProcess
- goto :eof
- REM
- REM recursively convert wave files to ogg
- REM Also create a file <wavnam_Dur>.txt file containing the
- REM string "Length s <duration of sound in seconds>
- REM
- :treeProcess
- rem Do whatever you want here over the files of this subdir, for example:
- for %%f in (*.wav) do (
- cd
- echo %%f
- sox --norm=-1 %%f --compression 7 %%~nf.ogg
- REM sox %%f -n stats 2>&1 | find "Length" | python "%v%\len.py" > %%~nf_Dur.txt
- )
- for /D %%d in (*) do (
- cd %%d
- call :treeProcess
- cd ..
- )
- exit /b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement