Coder Social home page Coder Social logo

audio_preprocessor's Introduction

audio_preprocessor

Under development now. Open for any suggestions.

Goal

To create a single HDF file,

  • that contains all the transforms of the audio files,
    • that are in a certain folder,
  • where the transforms can be specified w.r.t librosa
  • and so as the extensions of audio files
  • with a random order for training,
  • using multiprocessing

and I'm gonna use it for the training of my neural networks.

The structure of HDF

If melgram, cqt, stft have been acquired, there would be f.items() = ['melgram', 'cqt', 'stft']. Each dataset would be 4-dim numpy array, e.g. f['melgram'].shape = (1000, 1, 128, 200) when there is 1000 songs, 1 channel, n_mels=128, n_frame=200 (same is the formatting in Theano).

How to use

  1. Create or modify settings.json
  2. As in the example.py,
import audio_preprocessor

nogada = audio_preprocessor.Audio_Preprocessor(settings_path='settings.json')
nogada.index()
nogada.get_permutations()
nogada.convert_all()

Credits

Test music items are from http://www.bensound.com

audio_preprocessor's People

Contributors

keunwoochoi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.