convert_to_sec

ketos.audio.annotation.convert_to_sec(x)[source]

Convert a time duration specified as a string with SI units, e.g. “22min” to a float with units of seconds.

Args:
x: str

Time duration specified as a string with SI units, e.g. “22min”

Returns:
: float

Time duration in seconds.