File: mksong.sh

package info (click to toggle)
tempest-for-eliza 1.0.5-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 340 kB
  • sloc: cpp: 420; sh: 349; makefile: 20
file content (14 lines) | stat: -rwxr-xr-x 264 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

set -e

echo target sampling rate is $1
echo input file is $2
echo output file is $3

echo first decoding mp3...
amp -convert -w $2 delme.wav
echo now converting into raw and resampling
sox delme.wav -r $1 -t raw -u -b -c 1 $3
rm delme.wav
echo done.