Coder Social home page Coder Social logo

ecs171-group-27-'s Introduction

How to run demo

Note: The demo may not work if you do not have ffmpeg installed on your computer. This is because the audio processing library we use, Librosa, requires it. There is some info on the bottom of this page for installing ffmpeg on various operating systems.

  1. Create virtual python environment with python -m venv environment
  2. Activate the virtual environment with source environment/bin/activate
  3. Install required python packages with pip install -r requirements.txt
  4. Cd into Webpage directory with cd Webpage
  5. Run the server with python server.py
  6. Open a web browser and connect to localhost:5000
    • Note: Some web browsers may not work correctly on your machine. I recommend first trying Firefox, and then trying Google Chrome if it does not work. This is because different browsers record audio in different formats, for example Firefox records in .ogg format while Chrome records in .webm. Depending on the audio codecs you have installed on your computer, some of these may not work. Our gradescope submission will also have a link to a YouTube video of the demo being run.
  7. Allow the web page to access your microphone
  8. Click the record button and speak for 3 seconds
  9. Wait for the server to return the models prediction.

Running Code For the Models and Other Scripts

  • After installing the packages with pip install -r requirements.txt, you can go into the directory Model Notebooks and run the .ipynb files (ANN.ipynb, KNN.ipynb, SVM.ipynb) to generate the accuracy results.
  • For the other scripts (Feature_Extraction.py, Feature_Visualizations.py, and Data_Analysis.py), you can go into the 'Scripts' directory and run them with python <script_name>. They generate plots that we used in our report, and will appear in the Images directory

ecs171-group-27-'s People

Contributors

rustyreich avatar mr23-49 avatar svuppu02 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.