Actualiser src/tadam.py #2

Merged
sortion merged 1 commits from babakounine/TadaridaTools:master into master 2024-05-17 18:37:33 +02:00

View File

@ -62,8 +62,11 @@ def usage():
def rate(infile, outfile, rate_ratio):
try:
data, samplerate = sf.read(infile)
new_samplerate = int(samplerate * rate_ratio)
except sf.LibsndfileError as e:
print("ERROR : {0}".format(e))
try:
sf.write(outfile, data, new_samplerate)
except: