diff --git a/Convert-ToWave.ps1 b/Convert-ToWave.ps1 new file mode 100644 index 0000000..f32d394 --- /dev/null +++ b/Convert-ToWave.ps1 @@ -0,0 +1,12 @@ +$basepath="." +$in_put="$basepath/Input" +$output="$basepath/Output" +$ffmpeg=Get-Command ffmpeg +if ($ffmpeg -eq $null) { + $ffmpeg="$basepath/ffmpeg.exe" +} +$toconvert=Get-ChildItem "$in_put/" +$toconvert|%{ + $outfn=$_ -replace '\.[a-zA-Z0-9]+$','.wav' + & $ffmpeg -i "$in_put/$_" -acodec pcm_s16le -ac 1 -ar 8000 "$output/$outfn" +} \ No newline at end of file