Annotation

‘audio.annotation’ module within the ketos library

This module provides utilities to handle annotations associated with waveform and spectrogram objects.

Contents:

AnnotationHandler class

AnnotationHandler([df])

Class for handling annotations of acoustic data.

add_index_level(df[, key])

Ensure the DataFrame has at least two indexing levels.

convert(x, unit)

Convert a quantity specified as a string with SI units, e.g.

convert_to_Hz(x)

Convert a frequency specified as a string with SI units, e.g.

convert_to_sec(x)

Convert a time duration specified as a string with SI units, e.g.

stack_annotations(handlers[, keys, level])

Create a handler to manage a stack of annotation sets.