Code Monkey home page Code Monkey logo

eavt's Introduction

EAVT

Eco-Acoustic Visualization Tools

Currently in development

How to use

First, create a directory with wav audio files named YYMMDD_HHMMSS.wav/flac or What_EVER_YYMMDD_HHMMSS.wav/flac. Then, use process.py to extract the eco-acoustic indices and the tagging. Finally, use the dash_app.py script to run the web application.

plot

Audio processing

First download the ResNet22 pretrained model using instructions here

python process.py [-h] [--data_path DATA_PATH] [--save_path SAVE_PATH] [--name NAME] [--process_tagging PROCESS_TAGGING] [--process_indices PROCESS_INDICES] [--audio_format AUDIO_FORMAT][--length_audio_segment LENGTH_AUDIO_SEGMENT] [--save_audio_flac SAVE_AUDIO_FLAC] [--Fmin FMIN] [--Fmax FMAX]

Script to process sound files recorded by Audiomoth

options:
  -h, --help            show this help message and exit
  --data_path DATA_PATH
                        Path to wav files
  --save_path SAVE_PATH
                        Path to save meta data
  --name NAME           name of measurement
  --process_tagging PROCESS_TAGGING
                        Process tagging 0 or 1
  --process_indices PROCESS_INDICES
                        Process indices 0 or 1
  --audio_format AUDIO_FORMAT
                        wav or flac
  --length_audio_segment LENGTH_AUDIO_SEGMENT
                        Length of analyzing window MUST BE LOWER THAN SIGNAL LENGTH
  --save_audio_flac SAVE_AUDIO_FLAC
                        Saving audio in flac format (needed to run visualization tool)
  --Fmin FMIN           Freq min (filter)
  --Fmax FMAX           Freq max (filter)

Example

python3 process.py --save_path example/metadata/ --data_path example/metadata/audio_0002/ --name 0004 --audio_format flac --length_audio_segment 3 --process_tagging 0

processing only ecoacoustic indices of flac format audio files on 3 s segment length.

Eco-acoustic indices can be added in the script indices.py. The name of the index must be added in the list name_indices and the calculation part in the function compute_ecoacoustics.

Each wav file is divided into 10 second segments and converted to flac.

Dash app

python dash_app.py [-h] [--save_path SAVE_PATH]

Script to display sound files recorded by Audiomoth

options:
  -h, --help            show this help message and exit
  --save_path SAVE_PATH
                        Path to save meta data
  --name NAME           name of measurement

Code for Audioset Tagging CNN from Qiu Qiang Kong Code for Eco-acoustic indices from Patric Guyot and Sylvain Haupert and Juan Sebastian Ulloa

eavt's People

Contributors

npaj avatar

Watchers

 avatar

Forkers

nicofarr

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.