diff options
author | Determinant <[email protected]> | 2016-02-24 17:00:40 +0800 |
---|---|---|
committer | Determinant <[email protected]> | 2016-02-24 17:00:40 +0800 |
commit | 39b1967870e6fabe6764360bccefad8a2a9db24d (patch) | |
tree | 0a60f3e6d5137b6b32f82e496b9701e13e52f9d4 /kaldi_io/src/test.c | |
parent | 3f742c01540b8bad940d66331d562082a63d975b (diff) |
adjust the code according to the changes made in nerv/wrapped-handleswrapped-handles
Diffstat (limited to 'kaldi_io/src/test.c')
-rw-r--r-- | kaldi_io/src/test.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/kaldi_io/src/test.c b/kaldi_io/src/test.c index e92b4c9..e3368df 100644 --- a/kaldi_io/src/test.c +++ b/kaldi_io/src/test.c @@ -7,8 +7,11 @@ **********************************************************************************/ #include "cwrapper_kaldi.h" +#include "nerv/lib/matrix/mmatrix.h" #include <stdio.h> +MContext context; + char feature_rspecifier[] = {"ark:/slfs6/users/ymz09/kaldi/src/featbin/copy-feats scp:/slfs6/users/ymz09/swb_ivec/train_bp.scp ark:- |"}; void print_nerv_matrix(Matrix *mat) { @@ -30,13 +33,13 @@ int main(int argc, char *argv[]) Matrix *mat; KaldiFeatureRepo *repo = kaldi_feature_repo_new(feature_rspecifier); - mat = kaldi_feature_repo_read_utterance(repo, NULL, 1); + mat = kaldi_feature_repo_read_utterance(repo, NULL, 1, &context); printf("1st uttrance\n"); print_nerv_matrix(mat); kaldi_feature_repo_next(repo); - mat = kaldi_feature_repo_read_utterance(repo, NULL, 1); + mat = kaldi_feature_repo_read_utterance(repo, NULL, 1, &context); printf("2nd uttrance\n"); print_nerv_matrix(mat); |