STRAIGHTライブラリが提供する関数や型は、以下のような命名規則に基づいています。
stBool (*stCallbackFunc)(Straight straight, stCallbackType callbackType, void *callbackData, void *userData);
typedef struct _StraightConfig { unsigned long versionId; unsigned long defaultEngineVersionId; double samplingFrequency; double frameShift; double frameLength; double f0FrameShift; double f0Floor; double f0Ceil; long FFTLength; } StraightConfig; typedef struct _StraightSourceConfigV40 { unsigned long versionId; unsigned long engineVersionId; long numChannelsInOctave; /* nvo */ double windowStretchFactor; /* mu */ double smoothingLengthRelToFc; /* smp */ double minimumSmoothingLength; /* minsm */ double exponentForNonlinearSum; /* pcf0 */ long numHarmonicsForInitialEstimate; /* nh */ } StraightSourceConfigV40; #define StraightSourceConfig StraightSourceConfigV40 typedef struct _StraightSourceConfigTandemV008 { unsigned long versionId; unsigned long engineVersionId; long channelsPerOctave; long numberOfHarmonicsForExtraction; long numberOfHarmonicsForRefinement; double vuvThreshold; } StraightSourceConfigTandemV008; typedef struct _StraightSourceConfigTandemV009 { unsigned long versionId; unsigned long engineVersionId; long channelsPerOctave; long numberOfHarmonicsForExtraction; long numberOfHarmonicsForRefinement; double vuvThreshold; /*---- version 1.1.0 ----*/ long numberOfF0Candidates; } StraightSourceConfigTandemV009; #define StraightSourceConfigTandem StraightSourceConfigTandemV009 typedef struct _StraightSpecgramConfigV40 { unsigned long versionId; unsigned long engineVersionId; stBool fastFlag; double timeWindowStretch; /* eta */ double exponentForNonlinearity; /* pc */ double timeDomainCompensation; /* mag */ } StraightSpecgramConfigV40; #define StraightSpecgramConfig StraightSpecgramConfigV40 typedef struct _StraightSpecgramConfigTandemV008 { unsigned long versionId; unsigned long engineVersionId; double compensationCoefficient; double correctionForBlackman; stBool dcRemoval; } StraightSpecgramConfigTandemV008; typedef struct _StraightSpecgramConfigTandemMP002 { unsigned long versionId; unsigned long engineVersionId; double compensationCoefficient; double correctionForBlackman; stBool dcRemoval; /*---- version 1.1.0 ----*/ double exponentControl; stBool akagiriSmoothing; } StraightSpecgramConfigTandemMP002; #define StraightSpecgramConfigTandem StraightSpecgramConfigTandemMP002 typedef struct _StraightSynthConfigV40 { unsigned long versionId; unsigned long engineVersionId; double lowestF0; stBool zeroPhaseFlag; stBool groupDelayRandomizeFlag; double groupDelayStandardDeviation; /* delsp */ double groupDelaySpatialBandWidth; /* gdbw */ double groupDelayRandomizeCornerFrequency; /* cornf */ stBool groupDelayRatioToT0Flag; /* delfracind */ double groupDelayRatioToT0; /* delfrac */ } StraightSynthConfigV40; #define StraightSynthConfig StraightSynthConfigV40 typedef struct _StraightSynthConfigTandemV009 { unsigned long versionId; unsigned long engineVersionId; double unvoicedF0; stBool zeroPhaseFlag; stBool groupDelayRandomizeFlag; double groupDelayStandardDeviation; /* delsp */ double groupDelaySpatialBandWidth; /* gdbw */ double groupDelayRandomizeCornerFrequency; /* cornf */ stBool groupDelayRatioToT0Flag; /* delfracind */ double groupDelayRatioToT0; /* delfrac */ } StraightSynthConfigTandemV009; #define StraightSynthConfigTandem StraightSynthConfigTandemV009
typedef struct _Straight *Straight; typedef struct _StraightSource *StraightSource; typedef struct _StraightSpecgram *StraightSpecgram; typedef struct _StraightSynth *StraightSynth;
Last modified: "2013-04-08 17:43:26 hideki"