Comments (8)
Hi, I should mention that this repository supports Python 3.6 and above, please consider updating your python version first.
from emotion-recognition-using-speech.
I have Python 3.7
from emotion-recognition-using-speech.
Oh. I have made a couple of changes to test.py . Please try pulling/cloning again.
from emotion-recognition-using-speech.
Thank you !
I downloaded the whole package and tried to run test.py but got a new issue at line 129 this time(the earlier issue was at line 180)
Rakeshs-MacBook-Air:emotion-recognition-using-speech-master-2 rakeshmohan$ python test.py
File "test.py", line 129
result = [ f'"{estimator.class.name}"' for estimator, _, _ in estimators ]
^
SyntaxError: invalid syntax
Rakeshs-MacBook-Air:emotion-recognition-using-speech-master-2 rakeshmohan$ pwd
/Users/rakeshmohan/Downloads/emotion-recognition-using-speech-master-2
I am sorry to bother you with all this, if you could , please have a look. Have a great day ahead !!
from emotion-recognition-using-speech.
I'm pretty sure that f-string formatting is Python 3.6+, try checking your python version by
import sys
print(sys.version)
I have removed f-string formatting from test.py.
from emotion-recognition-using-speech.
Thanks! however my python version has always been 3.7 so not sure why I was getting f-string errors..
The latest test.py is working now , though with some warning messages with sklearn module, like ->
Python 3.7.3 (default, Jun 19 2019, 07:38:49)
[Clang 10.0.1 (clang-1001.0.46.4)] on darwin
Type "help", "copyright", "credits" or "license()" for more information.
WARNING: The version of Tcl/Tk (8.5.9) in use may be unstable. Visit
http://www.python.org/download/mac/tcltk/ for current information.
RESTART: /Users/rakeshmohan/Downloads/emotion-recognition-using-speech-master-2/test.py
Warning (from warnings module):
File "/usr/local/lib/python3.7/site-packages/sklearn/base.py", line 306
UserWarning)
UserWarning: Trying to unpickle estimator SVC from version 0.20.2 when using version 0.21.2. This might lead to breaking code or invalid results. Use at your own risk.
Warning (from warnings module):
File "/usr/local/lib/python3.7/site-packages/sklearn/base.py", line 306
UserWarning)
UserWarning: Trying to unpickle estimator DecisionTreeClassifier from version 0.20.2 when using version 0.21.2. This might lead to breaking code or invalid results. Use at your own risk.
Warning (from warnings module):
File "/usr/local/lib/python3.7/site-packages/sklearn/base.py", line 306
UserWarning)
UserWarning: Trying to unpickle estimator AdaBoostClassifier from version 0.20.2 when using version 0.21.2. This might lead to breaking code or invalid results. Use at your own risk.
Also, the script is not stopping.. this may sound very stupid (apologies for that ) but in order to stop I just need to close the execution window? I thought it will record my voice for a few seconds and then display the sentiments before closing ...
Also not sure if the prediction is accurate .. I tried saying " I am not happy with all this and so I want to close my account , please can you call your manager" .. it gave output as 'neutral' and then like I said above, it went on with displaying neutral ,happy ,etc . I guess it was recording the noise after I stopped talking and trying to predict it...
+] Model trained
Test accuracy score: 90.181%
Please talk
neutral
neutral
happy
happy
happy
happy
happy
happy
neutral
Nothing urgent, whenever you have a min - can you please guide me?
After this , I have one favor to ask , but will eagerly wait for your reply :)
Thanks a lot again !!!
Good Night !!
from emotion-recognition-using-speech.
Hello buddy, I think this is not the place to discuss this, please consider emailing me... xD
test.py
script was designed just to test the project and the models, the model used in test.py
isn't even optimal, try testing Example 1 that is mentioned in README.md
.
- Note that this project is recognizing emotions using the speech tone ( not from speech to text and then analyzing the text ), so try being sad or happy ( or even change the set of emotions ) in your tone. please check the data used and you'll understand ( in
data
folder ). - Also note that if
test.py
is bothering you, and you want to test emotion just once, then you need to delete thewhile loop
in line 170.
from emotion-recognition-using-speech.
Thanks again !!
Is there a way to integrate text analysis as well ? or do you think that is not a good idea?
As per your knowledge, can we add GUI around this ? which can show what person is speaking in text format and also display some graphs to show the emotions. I know I am asking a lot but its not intended to trouble you , just trying to understand the possibilities.
from emotion-recognition-using-speech.
Related Issues (20)
- Testing on WAV files from Youtube? HOT 3
- Test without training again HOT 3
- How to do it step by step
- Where is the main-run program? HOT 1
- Different Results in Example 2 HOT 1
- Rnn in deep learning usage is problematic in terms of feature space HOT 1
- References paper HOT 1
- Problem with GridSearch HOT 6
- Where the SVC () model is saved? HOT 1
- The relationship between LSTM and classifier HOT 1
- ModuleNotFoundError: No module named 'numba.decorators' HOT 6
- Error while running the pretrained model: No such file or directory: 'train_custom.csv' HOT 5
- I could not run the example in the readme HOT 2
- Error - All the input arrays must have same number of dimensions HOT 1
- SVR parameters commented HOT 3
- ImportError: numpy.core.multiarray failed to import HOT 1
- extract_feature, did not work. HOT 1
- librosa.feature.melspectrogram出错 HOT 1
- Regarding set up of project
- Confusion matrix incomplete problem 混淆矩阵不完整 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emotion-recognition-using-speech.