Last active
August 29, 2015 14:02
-
-
Save avances123/06f864cdf4e775ef602e to your computer and use it in GitHub Desktop.
Un programa para subirle el volumen a los podcast, lo uso para oirlos cuando hago deporte o hay mucho ruido.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from pydub import AudioSegment | |
import sys | |
import argparse | |
parser = argparse.ArgumentParser(description='Sube el volumen a un mp3 (ideal para los podcasts cuando vamos a hacer deporte)') | |
parser.add_argument('file_orig', help='Fichero origen') | |
parser.add_argument('file_dest', help='Fichero destino') | |
parser.add_argument('--db',metavar='dB', type=int,default=6,help='Numero de decibelios a subir') | |
args = parser.parse_args() | |
print "Abriendo %s" % args.file_orig | |
x = AudioSegment.from_mp3(args.file_orig) | |
print "Sumando %s dB al original.." % args.db | |
y = x + args.db | |
print "Convirtiendo al fichero %s" % args.file_dest | |
y.export(args.file_dest,format="mp3") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo pip install -r requirements.txt | |
sudo cp subevolumen.py /usr/local/bin/ | |
sudo chmod +x /usr/local/bin/subevolumen.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pydub==0.9.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment