kaldi-native-fbank C++ API
Kaldi-compatible feature extraction C++ API
Loading...
Searching...
No Matches
feature-splice.h
Go to the documentation of this file.
1
2//
3// Copyright 2009-2011 Karel Vesely; Petr Motlicek; Microsoft Corporation
4// 2014 IMSL, PKU-HKUST (author: Wei Shi)
5// 2016 Johns Hopkins University (author: Daniel Povey)
6// Copyright (c) 2026 Xiaomi Corporation
7//
8// This file is copied/modified from kaldi/src/feat/feature-functions.h
9//
11//
12// See ../../LICENSE for more information
13
31
32#ifndef KALDI_NATIVE_FBANK_CSRC_FEATURE_SPLICE_H_
33#define KALDI_NATIVE_FBANK_CSRC_FEATURE_SPLICE_H_
34
35#include <stdint.h>
36
38
39namespace knf {
40
47 int32_t left_context = 3;
48
51 int32_t right_context = 3;
52};
53
84MatrixF SpliceFrames(const MatrixF &feats, const SpliceOptions &opts);
85
86} // namespace knf
87
88#endif // KALDI_NATIVE_FBANK_CSRC_FEATURE_SPLICE_H_
kaldi-native-fbank/kaldi-native-fbank/csrc/feature-matrix.h
This file is part of kaldi-native-fbank.
Definition feature-cmvn.h:42
MatrixF SpliceFrames(const MatrixF &feats, const SpliceOptions &opts)
Concatenate each frame with its left/right context neighbors.
Eigen::Matrix< float, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > MatrixF
Row-major feature matrix: rows are frames, columns are features.
Definition feature-matrix.h:26
Options for SpliceFrames(); mirrors kaldi's splice-feats flags.
Definition feature-splice.h:44
int32_t left_context
Number of preceding frames to append (kaldi splice-feats --left-context).
Definition feature-splice.h:47
int32_t right_context
Number of following frames to append (kaldi splice-feats --right-context).
Definition feature-splice.h:51