Dieses Dokuwiki verwendet ein von Anymorphic Webdesign erstelltes Thema.

Bulk Convert Batch file for converting to Ulaw


: Gerard O'Rourke
: Michael Brophy
: Version 1.1

@echo off
cls

set confirm=N
echo ***************************
echo Audio Mu-LAW (Ulaw) Converting tool
echo ***************************
echo The sox.exe must be located in the current folder or on the OS PATH.
echo Download sox from http://sox.sourceforge.net/
echo ******************************************************************
echo. 
set /P confirm=Do you want to proceed and overwrite and convert existing.wav files from ulaw to alaw(Y/N)?

IF "%confirm%" == "Y" goto convert
IF "%confirm%" == "y" goto convert
goto noconvert


:convert
echo Converting files now.
echo please wait.....
echo.
FOR /R . %%i IN ("*.wav") DO (
sox "%%i" -r 8k -c 1 -e u-law "%%~pni-temp.wav"
move "%%~pni-temp.wav" "%%~pni.wav"
)

pause
exit

:noconvert
echo No converation took place
pause
exit
general/scripts/convert-to-ulaw.txt ยท Last modified: 2014/11/11 17:46 by gerardorourke
You are here: homegeneralscriptsconvert-to-ulaw
Dieses Dokuwiki verwendet ein von Anymorphic Webdesign erstelltes Thema.
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0