Home > asr > saParamSet.m

saParamSet

PURPOSE ^

====== Find the path to the executable

SYNOPSIS ^

function saParam=saParamSet(language)

DESCRIPTION ^

 ====== Find the path to the executable

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function saParam=saParamSet(language)
0002 
0003 % ====== Find the path to the executable
0004 [parentDir, junk, junk, junk]=fileparts(which(mfilename));
0005 exeDir=[parentDir, '\exe'];
0006 
0007 saParam.language=language;
0008 switch (language)
0009     case 'chinese'
0010         % === º~»y«÷­µ (tcc300.mac)
0011         saParam.file=[exeDir, '\chinese.sa.prm'];
0012         saParam.qiYinFile=[exeDir, '\asraData\chinese\chinese.qiYin'];
0013         saParam.executable='assess.exe';
0014     %    % === ªø©°«÷­µ (taihua.mac)
0015     %    saParam.file=[exeDir, '\chinese1.asr.prm'];
0016     %    saParam.qiYinFile=[exeDir, '\asraData\chinese\taihua.qiYin'];
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'        % We need to use recog.exe for Japanese since we don't have word-to-PA conversion.
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;

Generated on Tue 01-Jun-2010 09:50:19 by m2html © 2003