How to use the audiofile.AudioDatabase function in audiofile

To help you get started, we’ve selected a few audiofile examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Pezz89 / PySoundConcat / src / sppysound / main.py View on Github external
def main():
    #Parse arguments
    main_args = parse_arguments()
    #check_args(main_args)

    # ----------
    # Begin processing audio files here:
    # ----------
    # Creates a database structure at the location given and returns a list of
    # AnalysedAudioObjects for each item in the database
    database = af.AudioDatabase(main_args.database)
    database.generate_analyses()
    """
    #Create audio file instances
    input_audio = af.AnalysedAudioFile(main_args.input_file, mode = 'r')
    output_audio = af.AnalysedAudioFile(
        main_args.output_file,
        mode = 'w',
        format = input_audio.format(),
        channels = input_audio.channels(),
        samplerate = input_audio.samplerate()
    )

    if main_args.verbose > 1:
        input_audio.audio_file_info()
        output_audio.audio_file_info()
    """

audiofile

Fast reading of all kind of audio files

MIT
Latest version published 5 months ago

Package Health Score

63 / 100
Full package analysis

Similar packages