Multiple data fields
OBS: The destination branch is currently set to master
. This perhaps should be changed to development
?
This merge request generalizes functions and classes in the database_interface
and audio_loader
modules to handle multiple audio representations (i.e. for the same audio clip, multiple representations are generated). For example, it is now possible to call the create_database
method as follows,
rep1 = {'type': 'Waveform'}
rep2 = {'type': 'Mag', 'window':0.5, 'step':0.1}
di.create_database(output_file='db.h5', data_dir='data/', selections=sel_table, audio_repres=[rep1,rep2], data_name=['wf','spec'])
This will create an hdf5 database with a table that has two data columns named wf
and spec
which contain waveforms and magnitude spectrograms, respectively.