kaldi-native-fbank C++ API
Kaldi-compatible feature extraction C++ API
Loading...
Searching...
No Matches
online-feature.h File Reference

Copyright 2013 Johns Hopkins University (author: Daniel Povey) 2014 Yanqing Sun, Junjie Wang, Daniel Povey, Korbinian Riedhammer Copyright (c) 2022 Xiaomi Corporation (authors: Fangjun Kuang). More...

Include dependency graph for online-feature.h:

Go to the source code of this file.

Classes

class  knf::RecyclingVector
 This class serves as a storage for feature vectors with an option to limit the memory usage by removing old elements. More...
class  knf::OnlineGenericBaseFeature< C >
 This is a templated class for online feature extraction; it's templated on a class like MfccComputer or FbankComputer that does the basic feature extraction. More...

Namespaces

namespace  knf
 This file is part of kaldi-native-fbank.

Typedefs

using knf::OnlineRawAudioSamples = OnlineGenericBaseFeature<RawAudioSamplesComputer>
 Streaming raw audio samples, framed without any processing.
using knf::OnlineFbank = OnlineGenericBaseFeature<FbankComputer>
 Streaming filter-bank features; see FbankComputer.
using knf::OnlineMfcc = OnlineGenericBaseFeature<MfccComputer>
 Streaming MFCC features; see MfccComputer.
using knf::OnlineWhisperFbank = OnlineGenericBaseFeature<WhisperFeatureComputer>
 Streaming Whisper log-mel features; see WhisperFeatureComputer.

Detailed Description

Copyright 2013 Johns Hopkins University (author: Daniel Povey) 2014 Yanqing Sun, Junjie Wang, Daniel Povey, Korbinian Riedhammer Copyright (c) 2022 Xiaomi Corporation (authors: Fangjun Kuang).

This file is copied/modified from kaldi/src/feat/online-feature.h

See LICENSE for clarification regarding multiple authors

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Streaming feature extraction.

This file is copied/modified from src/feat/online-feature.h. It provides a templated online feature extractor, OnlineGenericBaseFeature, that wraps a per-frame computer such as FbankComputer or MfccComputer and manages the waveform buffering for streaming use.