Giter Site home page Giter Site logo

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

View Code? Open in Web Editor NEW
36.0 36.0 9.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 30.50% C++ 4.37% Assembly 1.37%

audio-sentiment-analysis-pipeline's People

Contributors

avewells avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

audio-sentiment-analysis-pipeline's Issues

AttributeError: 'numpy.float64' object has no attribute 'startswith'

Hi,

When trying to run the pipeline. We are getting the following error.

python AudioSentimentPipeline.py -i data/input.csv -o outputs/ --hmm
Splitting provided audio files into chunks and then extracting features.
Traceback (most recent call last):
File "AudioSentimentPipeline.py", line 73, in
main()
File "AudioSentimentPipeline.py", line 63, in main
process_raw_data.main(args, pipe=True)
File "/home/learning_user/audio_analysis/audio-sentiment-analysis-pipeline/audio_sentiment_analysis/process_raw_data.py", line 193, in main
process_csv_input(args.csv_loc, args.out_loc, args.split_flag, args.extract_flag)
File "/home/learning_user/audio_analysis/audio-sentiment-analysis-pipeline/audio_sentiment_analysis/process_raw_data.py", line 153, in process_csv_input
call_path = os.path.join(os.path.dirname(csv_loc), row[0])
File "/usr/lib/python2.7/posixpath.py", line 68, in join
if b.startswith('/'):
AttributeError: 'numpy.float64' object has no attribute 'startswith'

can not find file

python AudioSentimentPipeline.py -i data/input.csv -o outputs/ --hmm
Splitting provided audio files into chunks and then extracting features.
data/audio1.wav
didn't find file
Traceback (most recent call last):
File "AudioSentimentPipeline.py", line 73, in
main()
File "AudioSentimentPipeline.py", line 63, in main
process_raw_data.main(args, pipe=True)
File "/home/janhavi/Documents/audio-sentiment-analysis-pipeline-master/audio_sentiment_analysis/process_raw_data.py", line 193, in main
process_csv_input(args.csv_loc, args.out_loc, args.split_flag, args.extract_flag)
File "/home/janhavi/Documents/audio-sentiment-analysis-pipeline-master/audio_sentiment_analysis/process_raw_data.py", line 157, in process_csv_input
split_call_into_speakers(call_path + '.wav', out_loc)
File "/home/janhavi/Documents/audio-sentiment-analysis-pipeline-master/audio_sentiment_analysis/process_raw_data.py", line 57, in split_call_into_speakers
diarized = aS.speakerDiarization(temp_out_loc, 2, mtSize=0.5, mtStep=0.1)
File "/home/janhavi/Documents/audio-sentiment-analysis-pipeline-master/pyAudioAnalysis/audioSegmentation.py", line 703, in speakerDiarization
[Classifier1, MEAN1, STD1, classNames1, mtWin1, mtStep1, stWin1, stStep1, computeBEAT1] = aT.loadKNNModel(os.path.join("data","knnSpeakerAll"))
TypeError: 'NoneType' object is not iterable

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.