コード例 #1
0
 public StreamHTKCepstrum(float frameShiftMs, float frameSizeMs, bool bigEndian, int sampleRate)
 {
     this.initLogger();
     this.bigEndian  = bigEndian;
     this.sampleRate = sampleRate;
     this.frameShift = DataUtil.getSamplesPerWindow(sampleRate, frameShiftMs);
     this.frameSize  = DataUtil.getSamplesPerShift(sampleRate, frameSizeMs);
 }
コード例 #2
0
 public StreamCepstrumSource(int cepstrumLength, bool binary, float frameShiftMs, float frameSizeMs, int sampleRate)
 {
     this.initLogger();
     this.cepstrumLength = cepstrumLength;
     this.binary         = binary;
     this.sampleRate     = sampleRate;
     this.frameShift     = DataUtil.getSamplesPerWindow(sampleRate, frameShiftMs);
     this.frameSize      = DataUtil.getSamplesPerShift(sampleRate, frameSizeMs);
 }
コード例 #3
0
        public override void newProperties(PropertySheet ps)
        {
            base.newProperties(ps);
            float @float = ps.getFloat("frameShiftInMs");
            float float2 = ps.getFloat("frameSizeInMs");

            this.bigEndian  = ps.getBoolean("bigEndian").booleanValue();
            this.sampleRate = ps.getInt("sampleRate");
            this.frameShift = DataUtil.getSamplesPerWindow(this.sampleRate, @float);
            this.frameSize  = DataUtil.getSamplesPerShift(this.sampleRate, float2);
            this.logger     = ps.getLogger();
        }