Mercurial > hg > emotion-detection-top-level
comparison Code/Descriptors/Matlab/MPEG7/FromWeb/VoiceSauce/func_getfileinx.m @ 4:92ca03a8fa99 tip
Update to ICASSP 2013 benchmark
author | Dawn Black |
---|---|
date | Wed, 13 Feb 2013 11:02:39 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
3:e1cfa7765647 | 4:92ca03a8fa99 |
---|---|
1 function fileinx = func_getfileinx(param) | |
2 % fileinx = func_getfileinx(param) | |
3 % Input: param | |
4 % Output: file index | |
5 % Notes: Function is a helper function for outputting to text. | |
6 % | |
7 % Author: Yen-Liang Shue, Speech Processing and Auditory Perception Laboratory, UCLA | |
8 % Copyright UCLA SPAPL 2009 | |
9 | |
10 switch (param) | |
11 case {'F0 - Straight (strF0)', 'F0 - Snack (sF0)', 'F0 - Praat (pF0)', 'F0 - Other (oF0)', 'shrF0 (shrF0)', 'CPP (CPP)', 'Energy (Energy)', 'HNR05 (HNR05)', 'HNR15 (HNR15)', 'HNR25 (HNR25)', 'HNR35 (HNR35)'} | |
12 fileinx = 1; | |
13 case {'F1 - Snack (sF1)', 'F2 - Snack (sF2)', 'F3 - Snack (sF3)', 'F4 - Snack (sF4)', 'F1 - Praat (pF1)', 'F2 - Praat (pF2)', 'F3 - Praat (pF3)', 'F4 - Praat (pF4)', 'F1 - Other (oF1)', 'F2 - Other (oF2)', 'F3 - Other (oF3)', 'F4 - Other (oF4)', 'B1 - Snack (sB1)', 'B2 - Snack (sB2)', 'B3 - Snack (sB3)', 'B4 - Snack (sB4)', 'B1 - Other (oB1)', 'B2 - Other (oB2)', 'B3 - Other (oB3)', 'B4 - Other (oB4)'} | |
14 fileinx = 2; | |
15 case {'H1* (H1c)', 'H2* (H2c)', 'H4* (H4c)', 'A1* (A1c)', 'A2* (A2c)', 'A3* (A3c)', 'H1 (H1u)', 'H2 (H2u)', 'H4 (H4u)', 'A1 (A1u)', 'A2 (A2u)', 'A3 (A3u)'} | |
16 fileinx = 3; | |
17 case {'H1*-H2* (H1H2c)', 'H2*-H4* (H2H4c)', 'H1-H2 (H1H2u)', 'H2-H4 (H2H4u)', 'SHR (SHR)'} | |
18 fileinx = 4; | |
19 case {'H1*-A1* (H1A1c)', 'H1*-A2* (H1A2c)', 'H1*-A3* (H1A3c)', 'H1-A1 (H1A1u)', 'H1-A2 (H1A2u)', 'H1-A3 (H1A3u)'} | |
20 fileinx = 5; | |
21 otherwise | |
22 fileinx = -1; | |
23 end |