#include #include #include "kaldi_feature_wrapper.h" namespace py=pybind11; bool InitFbank( float samp_freq, // frame opts float frame_shift_ms, float frame_length_ms, float dither, float preemph_coeff, bool remove_dc_offset, std::string window_type, // e.g. Hamming window bool round_to_power_of_two, float blackman_coeff, bool snip_edges, bool allow_downsample, bool allow_upsample, int max_feature_vectors, int num_bins, // mel opts float low_freq, float high_freq, float vtln_low, float vtln_high, bool debug_mel, bool htk_mode, bool use_energy, // fbank opts float energy_floor, bool raw_energy, bool htk_compat, bool use_log_fbank, bool use_power); py::array_t ComputeFbank( float samp_freq, // frame opts float frame_shift_ms, float frame_length_ms, float dither, float preemph_coeff, bool remove_dc_offset, std::string window_type, // e.g. Hamming window bool round_to_power_of_two, kaldi::BaseFloat blackman_coeff, bool snip_edges, bool allow_downsample, bool allow_upsample, int max_feature_vectors, int num_bins, // mel opts float low_freq, float high_freq, float vtln_low, float vtln_high, bool debug_mel, bool htk_mode, bool use_energy, // fbank opts float energy_floor, bool raw_energy, bool htk_compat, bool use_log_fbank, bool use_power, const py::array_t& wav); py::array_t ComputeFbankStreaming(const py::array_t& wav); void ResetFbank(); py::array_t ComputeFbankStreaming(const py::array_t& wav); py::array_t TestFun(const py::array_t& wav);