I am creating a batch file to change the raw files to wav files and change the file name with a number stored in buffer and increment them.
D:
cd Sphinx_UE4_Demo\Plugins\sphinx-ue4\voice_data
@echo off
setlocal enabledelayedexpansion
set /p i=<buffer.txt
for %x in (*.raw) do (
..\sox-14-4-2\sox -r 16k -e signed -b 16 -c 1 %x %i%.wav
set /A i+=1
)
endlocal
problem is its not getting incremented, what is the mistake?
So if buffer.txt has 0 then expected output is 0.wav,1.wav,2.wav but only 0.wav is getting generated