Database Interface
‘data_handling.database_interface’ module within the ketos library
This module provides functions to create and use HDF5 databases as storage for acoustic data including metadata and annotations.
An audio segment or spectrogram is said to be ‘weakly annotated’, if it is assigned a single (integer) label, and is said to be ‘strongly annotated’, if it is assigned one or several labels, each accompanied by a start and end time, and potentially also a minimum and maximum frequecy.
|
Saves waveform or spectrogram objects to a database file (.h5). |
|
Create a database from a selection table. |
|
Create a new table. |
|
Create column |
|
Find all audio objects in the table with the specified label. |
|
Retrieve all the audio objects in a table or a subset specified by the index_list |
|
Open an HDF5 database file. |
|
Open a table from an HDF5 file. |
|
Description of table structure for storing audio signals or spectrograms. |
|
Table descriptions for strong annotations. |
|
Write waveform or spectrogram and annotations to HDF5 tables. |
|
Write annotations to a HDF5 table. |
|
Write an audio object, typically a waveform or spectrogram, to a HDF5 table. |
|
Writes the audio representation attributes into the HDF5 database, where they become stored as table attributes. |