-
Notifications
You must be signed in to change notification settings - Fork 5
/
README.md~
35 lines (20 loc) · 1012 Bytes
/
README.md~
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
--------------------------------------------
Author: Shahan Ali Memon
Mentors: Rita Singh, Bhiksha Raj
Copyright (c) 2017 Carnegie Mellon University
--------------------------------------------
--------------------------------------------
REQUIREMENTS:
To run the voice2gender.py program, you would need the following libraries:
- keras
- numpy
- sox (python library via pip install sox)
- scipy
Once you have installed the above requirements (using pip install), you can run the
program as follows:
$ python voice2gender.py <full path to the wav file>
The above program will print 0/1 where 0 == Male, 1 == Female
PS. If the model does not load due to the error "Can't load_model with error “Optimizer weight shape [..]", then you would need to run the convert_to_old.py program as most probably this issue has to do with the version of keras you are using.
Now you should try to run the program again.
--------------------------------------------
--------------------------------------------