Giter Site home page Giter Site logo

tensorflow13 / audio-sentiment-analysis-pipeline Goto Github PK

View Code? Open in Web Editor NEW

This project forked from avewells/audio-sentiment-analysis-pipeline

1.0 0.0 0.0 2.76 MB

An end-to-end Python pipeline for performing sentiment analysis on audio files of call-center conversations.

Python 63.76% PHP 32.19% C++ 2.68% Assembly 1.37%

audio-sentiment-analysis-pipeline's Introduction

Audio Sentiment Analysis Pipeline (ASAP)

An end-to-end Python pipeline for performing sentiment analysis on audio files of call-center conversations.

Installation

Directions for installing and running the pipeline.

Required Libraries

  • pyAudioAnalysis: Refer to this suggested commit to make changes to audioSegmentation.py in the library so that the library may be properly imported.
  • openSMILE: Follow directions from tutorial so that openSMILE can be run from the command line with SMILExtract.
  • Lasagne is required for ASAP with an LSTM. With a Lasagne install you should also get Theano.
  • pydub
  • hmmlearn

ASAP

Once the above libraries are installed just clone this repo to get ASAP.

Using ASAP

  • NOTE: Unfortunately, pyAudioAnalysis doesn't support python 3.0+ so the pipeline must be run with python v2.7.
  • To run the whole pipeline end-to-end run AudioSentimentPipeline.py. Running AudioSentimentPipeline.py -h will give a description of the input requirements and options.
  • The input to ASAP is a CSV where the first column is the name of the audio file and the last column is the label. Each row corresponds to a different input file. Currently the input CSV must be in the same directory as all of the input audio files.
  • Each step of the pipeline can be run separately. Run process_raw_data.py -h, classify.py -h, and lstm.py -h for how to use each individually.
  • Refer to openSMILE documentation for how to change the feature extraction. Config files are in the opensmile_conf folder. Default extraction uses IS09 features. To change from full file features to sliding window features edit FrameModeFunctionals.conf.inc.

Example

This example uses files that are not from call centers so do not contain two speakers and use fake labels just to show everything working. python AudioSentimentPipeline.py -i data/input.csv -o outputs/ --hmm

audio-sentiment-analysis-pipeline's People

Contributors

avewells avatar

Stargazers

Ayushi Amin 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.