function trOpt=trOptSet %% EPD fs=16000; epdPrm=epdPrmSet(fs); epdPrm.maxSilBetweenSegment=3; % To avoid one side being eliminated! %epdOpt.fixedSegmentCount=4; %% PT nbits=16; pfType=1; % 0 for AMDF, 1 for ACF ptOpt=ptOptSet(fs, nbits, pfType); ptOpt.frameSize=640; ptOpt.overlap=640-160; % frameSize 是 HTK 的兩倍,frame rate=100, 搭配語音辨識使用 ptOpt.useVolThreshold=0; ptOpt.useClarityThreshold=0; %ptOpt.pitchDiffMax=1; ptOpt.pitchDiffTh=0.5; % Control the smoothness of pitch %ptOpt.mainFun='maxPickingOverPf'; %% Feature option feaOpt.polyOrder=3; %% Combined output trOpt.epdOpt=epdPrm; trOpt.ptOpt=ptOpt; trOpt.feaOpt=feaOpt;