from query import *
#from queryfreesound import *
import sys
import sox
import os

keywords = sys.argv[1:]
names = ['ambient', 'drum1', 'drum2', 'drum3', 'drum4', 'drum5', 'drum6', 'drum7', 'drum8']
for i,k in enumerate(keywords):
    retrieve_sound(k, names[i])


    # create trasnformer
    tfm = sox.Transformer()
    tfm.gain(gain_db=0.0, normalize=True, limiter=True, balance=None)
# create the output file.
    tfm.build('samples/'+names[i]+'.mp3', 'samples/'+names[i]+'.wav')

    os.remove('samples/'+names[i]+'.mp3')


29159e6c2a3e96a31e50f821488a6bc1b9d6b0cf
<mask token>

<mask token>
for i, k in enumerate(keywords):
    retrieve_sound(k, names[i])
    tfm = sox.Transformer()
    tfm.gain(gain_db=0.0, normalize=True, limiter=True, balance=None)
    tfm.build('samples/' + names[i] + '.mp3', 'samples/' + names[i] + '.wav')
    os.remove('samples/' + names[i] + '.mp3')

<mask token>
keywords = sys.argv[1:]
names = ['ambient', 'drum1', 'drum2', 'drum3', 'drum4', 'drum5', 'drum6',
    'drum7', 'drum8']
for i, k in enumerate(keywords):
    retrieve_sound(k, names[i])
    tfm = sox.Transformer()
    tfm.gain(gain_db=0.0, normalize=True, limiter=True, balance=None)
    tfm.build('samples/' + names[i] + '.mp3', 'samples/' + names[i] + '.wav')
    os.remove('samples/' + names[i] + '.mp3')

from query import *
import sys
import sox
import os
keywords = sys.argv[1:]
names = ['ambient', 'drum1', 'drum2', 'drum3', 'drum4', 'drum5', 'drum6',
    'drum7', 'drum8']
for i, k in enumerate(keywords):
    retrieve_sound(k, names[i])
    tfm = sox.Transformer()
    tfm.gain(gain_db=0.0, normalize=True, limiter=True, balance=None)
    tfm.build('samples/' + names[i] + '.mp3', 'samples/' + names[i] + '.wav')
    os.remove('samples/' + names[i] + '.mp3')

from query import *
#from queryfreesound import *
import sys
import sox
import os

keywords = sys.argv[1:]
names = ['ambient', 'drum1', 'drum2', 'drum3', 'drum4', 'drum5', 'drum6', 'drum7', 'drum8']
for i,k in enumerate(keywords):
    retrieve_sound(k, names[i])


    # create trasnformer
    tfm = sox.Transformer()
    tfm.gain(gain_db=0.0, normalize=True, limiter=True, balance=None)
# create the output file.
    tfm.build('samples/'+names[i]+'.mp3', 'samples/'+names[i]+'.wav')

    os.remove('samples/'+names[i]+'.mp3')

