Git Product home page Git Product logo

audioplot's Introduction

Step 1. Prepare for processing

Step 1.1 get FFMPEG

  • Download ffmpeg from ffmpeg, you should select Static linking and get a zip file.
  • extract the zip file into ffmpeg folder, so that there exists ffmpeg/bin/ffmeg.exe.

Step 1.2 get SOX

  • Download sox from SOund eXchange, you should get a zip file.
  • extract zip file into the sox folder. so that there exists sox/sox.exe.

Step 1.3 specify the path to ffmpeg and sox

  • On MacOSX, you can substitude Step 1.1, 1.2 by brew install ffmpeg sox
  • edit user_config.py and make sure the FFMPEG_PATH and SOX_PATH is correct.

Step 2. Uniforming Audio files with same *.wav format:

python3 ./convert_file.py ./rawfile/

Step 3. Output spectrogram and waveform images

Step 3.1 Convert wavfiles to spectrogram

python3 wavfile2spectrum.py ./wavfile/

  • put spectrograms into images/spectrum/

Step 3.2 Convert wavfiles to waveform

python3 wavfile2waveform.py ./wavfile/

  • put waveforms into images/waveform/

audioplot's People

Contributors

haoyunhong avatar ritou11 avatar zhenchen avatar zhenchen3419 avatar zhengwx1995 avatar

Watchers

 avatar  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.