summaryrefslogtreecommitdiff
path: root/htk_io/src/cwrapper.h
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2015-06-25 12:56:45 +0800
committerDeterminant <[email protected]>2015-06-25 12:56:45 +0800
commita74183ddb4ab8383bfe214b3745eb8a0a99ee47a (patch)
treed5e69cf8c4c2db2e3a4722778352fc3c95953bb2 /htk_io/src/cwrapper.h
parentb6301089cde20f4c825c7f5deaf179082aad63da (diff)
let HTK I/O implementation be a single package
Diffstat (limited to 'htk_io/src/cwrapper.h')
-rw-r--r--htk_io/src/cwrapper.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/htk_io/src/cwrapper.h b/htk_io/src/cwrapper.h
new file mode 100644
index 0000000..e1bce6e
--- /dev/null
+++ b/htk_io/src/cwrapper.h
@@ -0,0 +1,37 @@
+#ifndef NERV_TNET_IO_CWRAPPER
+#define NERV_TNET_IO_CWRAPPER
+#include "nerv/matrix/matrix.h"
+#include "nerv/common.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ typedef struct TNetFeatureRepo TNetFeatureRepo;
+
+ TNetFeatureRepo *tnet_feature_repo_new(const char *scp,
+ const char *config, int context);
+ Matrix *tnet_feature_repo_read_utterance(TNetFeatureRepo *repo, lua_State *L, int debug);
+ size_t tnet_feature_repo_current_samplerate(TNetFeatureRepo *repo);
+ const char *tnet_feature_repo_current_tag(TNetFeatureRepo *repo);
+ void tnet_feature_repo_next(TNetFeatureRepo *repo);
+ int tnet_feature_repo_is_end(TNetFeatureRepo *repo);
+ void tnet_feature_repo_destroy(TNetFeatureRepo *repo);
+
+ typedef struct TNetLabelRepo TNetLabelRepo;
+
+ TNetLabelRepo *tnet_label_repo_new(const char *mlf, const char *fmt,
+ const char *fmt_arg, const char *dir,
+ const char *ext);
+
+ Matrix *tnet_label_repo_read_utterance(TNetLabelRepo *repo,
+ size_t frames,
+ size_t sample_rate,
+ const char *tag,
+ lua_State *L,
+ int debug);
+
+ void tnet_label_repo_destroy(TNetLabelRepo *repo);
+#ifdef __cplusplus
+}
+#endif
+#endif