Giter Site home page Giter Site logo

maple's Introduction

This is the homepage for my project maple, an open source software I have developed for self-monitoring your dog. The tool features audio event detection and classification, interactive plots for analyzing dog behavior, and intervening logic so that you can praise your dog for being quiet, console it for whining, scold it for barking, with pre-recorded audio of yourself.

Development blog

The development of this entire project has been meticulously blogged and can be found here

Installation

Dependencies

The installation instructions assume you have conda. conda isn't a requirement for installing, but if you don't want to use it, you're on your own.

A primary module is pyaudio, which has portaudio as a dependency. If you're MacOS and aren't averse to brew, you can easily install portaudio with

brew install portaudio

If you're on a different OS or don't like brew, check out the portaudio installation recommendations from this lovely discussion.

Procedure

Deactivate from any conda environments you are currently in, and then create a new conda environment called maple:

conda deactivate
conda create -n maple python=3.8.8
conda activate maple

Verify you're running 3.8.8

$ python
Python 3.8.8 (default, Apr 13 2021, 12:59:45)
[Clang 10.0.0 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()

Install all of the dependencies:

conda install -y -c conda-forge python-sounddevice
conda install -y -c anaconda pyaudio
conda install -y numpy
conda install -y pandas
conda install -y scipy
conda install -y scikit-learn
conda install -y matplotlib
conda install -y plotly
conda install -y -c conda-forge tabulate
conda install -y -c anaconda joblib
pip install noisereduce

Now, its time to fetch a copy of the codebase:

git clone https://github.com/ekiefl/maple.git
cd maple

Finally, create a script that runs whenever the conda environment is activated. This script modifies $PATH and $PYTHONPATH so that python knows where to find maple libraries and the shell knows where to find the maple binary. These path modifications live safely inside the maple conda environment, and do not propagate into your global environment:

mkdir -p ${CONDA_PREFIX}/etc/conda/activate.d
cat <<EOF >${CONDA_PREFIX}/etc/conda/activate.d/maple.sh
export PYTHONPATH=\$PYTHONPATH:$(pwd)
export PATH=\$PATH:$(pwd)/bin
EOF

Upon activating your conda environment once more (conda activate maple), maple is now a binary that can be run anywhere in your filesystem whenever you are in the maple conda environment. Time to test your installation by recording your first session:

maple run

maple's People

Contributors

almogbaku avatar ekiefl avatar

Stargazers

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