def _main():
    """ Command line interface for testing.
    """
    if len(sys.argv) != 2:
        print("Usage: python -m auvyon.imaging.spectrograms <mediafile>")
    else:
        try:
            print("Created %s" % spectrogram_image(sys.argv[1], dpi=103, outfile="spectrogram.jpg"))
        except subprocess.CalledProcessError, exc:
            print("Conversion error: %s" % exc)