Posts Tagged ‘flac’

convert german prompts

Monday, May 24th, 2010

Reduce file size from 48 to 16 khz:

1. ubuntu@ubuntu-desktop:~/Documents/201005/ralf-de/02$ for f in *.flac; do sox "$f" -t flac -r 16000 -c 1 "converted/${f%.flac}.flac"; done

2. ubuntu@ubuntu-desktop:~/Documents/201005/ralf-de/03-48khz$ for f in *.flac; do sox “$f” -t flac -r 16000 -c 1 “03/${f%.flac}.flac”; done

3. ubuntu@ubuntu-desktop:~/Documents/201005/ralf-de/04-convert$ for f in *.flac; do sox “$f” -t flac -r 16000 -c 1 “04/${f%.flac}.flac”; done

4. ubuntu@ubuntu-desktop:~/Documents/201005/ralf-de/05-convert$ for f in *.flac; do sox “$f” -t flac -r 16000 -c 1 “05/${f%.flac}.flac”; done

5. ubuntu@ubuntu-desktop:~/Documents/201005/ralf-de/06-convert$ for f in *.flac; do sox “$f” -t flac -r 16000 -c 1 “06/${f%.flac}.flac”; done

ubuntu@ubuntu-desktop:~/Documents/201005/ralf-de/07-convert$ for f in *.flac; do sox “$f” -t flac -r 16000 -c 1 “07/${f%.flac}.flac”; done

ubuntu@ubuntu-desktop:~/Documents/201005/ralf-de/08-convert$ for f in *.flac; do sox “$f” -t flac -r 16000 -c 1 “08/${f%.flac}.flac”; done

ubuntu@ubuntu-desktop:~/Documents/201005/ralf-de/09-convert$ for f in *.flac; do sox “$f” -t flac -r 16000 -c 1 “09/${f%.flac}.flac”; done

June 17, 2010: probably 10, 11, 12, 13, 14, 15 have been converted. Will continue with 16:

ubuntu@ubuntu-desktop:~/Documents/201005/ralf-de/16-convert$ for f in *.flac; do sox "$f" -t flac -r 16000 -c 1 --add-comment "License is GPLv3" "16/${f%.flac}.flac"; done

ubuntu@ubuntu-desktop:~/Documents/201005/ralf-de/17-convert$ for f in *.flac; do sox “$f” -t flac -r 16000 -c 1 –add-comment “License is GPLv3″ “17/${f%.flac}.flac”; done

ubuntu@ubuntu-desktop:~/Documents/201005/ralf-de/18-convert$ for f in *.flac; do sox “$f” -t flac -r 16000 -c 1 –add-comment “License is GPLv3″ “18/${f%.flac}.flac”; done

ubuntu@ubuntu-desktop:~/Documents/201005/ralf-de/18-convert$ cd /home/ubuntu/Documents/201005/ralf-de/19-convert
ubuntu@ubuntu-desktop:~/Documents/201005/ralf-de/19-convert$ mkdir 19
ubuntu@ubuntu-desktop:~/Documents/201005/ralf-de/19-convert$ mv prompts.xml 19/prompts.xml
ubuntu@ubuntu-desktop:~/Documents/201005/ralf-de/19-convert$ geany 19/prompts.xml
ubuntu@ubuntu-desktop:~/Documents/201005/ralf-de/19-convert$ for f in *.flac; do sox "$f" -t flac -r 16000 -c 1 --add-comment "License is GPLv3" "19/${f%.flac}.flac"; done

20-26 are missing

27.
ubuntu@ubuntu-desktop:~/Documents/201005/ralf-de/27-convert$ for f in *.flac; do sox "$f" -t flac -r 16000 -c 1 --add-comment "License is GPLv3" "27/${f%.flac}.flac"; done

28.
$ cd /home/ubuntu/Documents/201005/ralf-de/28-convert
$ mkdir /home/ubuntu/Documents/201005/ralf-de/28-convert/28
ubuntu@ubuntu-desktop:~/Documents/201005/ralf-de/28-convert$ for f in *.flac; do sox "$f" -t flac -r 16000 -c 1 --add-comment "License is GPLv3" "28/${f%.flac}.flac"; done
ubuntu@ubuntu-desktop:~/Documents/201005/ralf-de/28-convert$ mv /home/ubuntu/Documents/201005/ralf-de/28-convert/prompts.xml /home/ubuntu/Documents/201005/ralf-de/28-convert/28

29. file:///home/ubuntu/Documents/201005/ralf-de/29-convert
cd /home/ubuntu/Documents/201005/ralf-de/29-convert
mkdir /home/ubuntu/Documents/201005/ralf-de/29-convert/29
ubuntu@ubuntu-desktop:~/Documents/201005/ralf-de/29-convert$ for f in *.flac; do sox "$f" -t flac -r 16000 -c 1 --add-comment "License is GPLv3" "29/${f%.flac}.flac"; done
ubuntu@ubuntu-desktop:~/Documents/201005/ralf-de/29-convert$ mv /home/ubuntu/Documents/201005/ralf-de/29-convert/prompts.xml /home/ubuntu/Documents/201005/ralf-de/29-convert/29

30. 20100815 file:///home/ubuntu/Documents/201005/ralf-de/30-convert
cd /home/ubuntu/Documents/201005/ralf-de/30-convert
mkdir /home/ubuntu/Documents/201005/ralf-de/30-convert/30
for f in *.flac; do sox "$f" -t flac -r 16000 -c 1 --add-comment "License is GPLv3" "30/${f%.flac}.flac"; done
mv /home/ubuntu/Documents/201005/ralf-de/30-convert/prompts.xml /home/ubuntu/Documents/201005/ralf-de/30-convert/30

31. file:///home/ubuntu/Documents/201005/ralf-de/31-convert
cd /home/ubuntu/Documents/201005/ralf-de/31-convert
mkdir /home/ubuntu/Documents/201005/ralf-de/31-convert/31
for f in *.flac; do sox "$f" -t flac -r 16000 -c 1 --add-comment "License is GPLv3" "31/${f%.flac}.flac"; done
mv /home/ubuntu/Documents/201005/ralf-de/31-convert/prompts.xml /home/ubuntu/Documents/201005/ralf-de/31-convert/31

32. ubuntu@ubuntu-desktop:~$ cd /home/ubuntu/Documents/201005/ralf-de/32-convert
ubuntu@ubuntu-desktop:~/Documents/201005/ralf-de/32-convert$ mkdir /home/ubuntu/Documents/201005/ralf-de/32-convert/32
ubuntu@ubuntu-desktop:~/Documents/201005/ralf-de/32-convert$ for f in *.flac; do sox "$f" -t flac -r 16000 -c 1 --add-comment "License is GPLv3" "32/${f%.flac}.flac"; done
ubuntu@ubuntu-desktop:~/Documents/201005/ralf-de/32-convert$ mv /home/ubuntu/Documents/201005/ralf-de/31-convert/prompts.xml /home/ubuntu/Documents/201005/ralf-de/32-convert/32
mv: cannot stat `/home/ubuntu/Documents/201005/ralf-de/31-convert/prompts.xml': No such file or directory
ubuntu@ubuntu-desktop:~/Documents/201005/ralf-de/32-convert$ mv /home/ubuntu/Documents/201005/ralf-de/32-convert/prompts.xml /home/ubuntu/Documents/201005/ralf-de/32-convert/32