Configuration Profiles
- Added support for multiple named configuration profiles in the config.json file
- The file now has the following structure:
{
"default": {
},
"heterodyne": {
}
}
- It's a dictionary of dictionaries, each one representing a named set of parameters
- On the command line, the profile to use is specified using:
- This can be specified for the spectrogram plotting, noise detection and audio processing options
- If no profile is specified, the default profile is used
- For example, to process a file using the heterodyne processing parameters, the command line would be:
source ./venv/bin/activate
python -m spectrogram --config config.json --profile "heterodyne" --input /path/to/audio/file.wav --output /path/to/output/file.wav --process