Skip to content

Team-Audio/audio2spectrogram

Repository files navigation

Convert Audio to Spectrograms

Total alerts Language grade: Python

TODO-List:

  • reshape the output format to rgb instead of rgba (4->3)
  • implement tree conversion
  • (optional:?) allow data-feeding via stdin and output via stdout

Usage

Usage:
    convert.py dir <input_directory> ( <output_directory> | -s )  [ -v | -vv | -vvv ] [-g [-l]] [-f=RGX]
    convert.py file <input_file> ( <output_file> | -s ) [ -v | -vv | -vvv ]
    convert.py ( -h | --help)
    convert.py --version
    convert.py ( -m | --modules)

Options:
    -h --help     Show this screen.
    --version     Show version.
    -m --modules  Show installed modules.
    -v            Increase output verbosity
    -s            Use stdout and stdin
    -g            glue the output together and create one glued.npy
    -f RGX        regex filter that the file needs to match against
    -l            when gluing together files also glue the labels