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); }
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); }
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(); }