0001 function saParam=saParamSet(language)
0002
0003
0004 [parentDir, junk, junk, junk]=fileparts(which(mfilename));
0005 exeDir=[parentDir, '\exe'];
0006
0007 saParam.language=language;
0008 switch (language)
0009 case 'chinese'
0010
0011 saParam.file=[exeDir, '\chinese.sa.prm'];
0012 saParam.qiYinFile=[exeDir, '\asraData\chinese\chinese.qiYin'];
0013 saParam.executable='assess.exe';
0014
0015
0016
0017 case 'english'
0018 saParam.file=[exeDir, '\english.sa.prm'];
0019 saParam.qiYinFile=[exeDir, '\asraData\english\english.qiYin'];
0020 saParam.executable='assess.exe';
0021 case 'japanese'
0022 saParam.file=[exeDir, '\japanese.vc.prm'];
0023 saParam.qiYinFile=[exeDir, '\asraData\japanese\japanese.qiYin'];
0024 saParam.executable='recog.exe';
0025 otherwise
0026 error('Unknown language!');
0027 end
0028 saParam.useEpd=0;
0029 saParam.outputDir='output';
0030 saParam.sylFile='';
0031 saParam.netFile='';
0032 saParam.wpaFile='';
0033 saParam.getPitch=0;