Parsing

Parsing module within the ketos library

This module provides utilities to parse various string structures.

encode_audio_representation(s)

Encode audio representation.

encode_parameter(name, value)

Encode paramater as a string with an SI unit, according to the unit specified in the audio_std_params dictionary.

load_audio_representation(path[, name, ...])

Load audio representation from JSON file.

parse_audio_representation(audio_representations)

Parse audio representation parameters.

parse_parameter(name, value)

Parse the parameter value according to the type and unit specified in the audio_std_params dictionary.

str2bool(v)

Convert most common answers to yes/no questions to boolean

ureg

Standard audio-representation parameters recognized by Ketos.