summaryrefslogtreecommitdiff
path: root/tnet_io/cwrapper.h
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2015-05-29 23:06:58 +0800
committerDeterminant <[email protected]>2015-05-29 23:06:58 +0800
commit74b9f7cb88cd21cfac3c2e50c8efb802485df0c5 (patch)
treebd6e583088a086144acc2d8af3eaca59691194ff /tnet_io/cwrapper.h
init
Diffstat (limited to 'tnet_io/cwrapper.h')
-rw-r--r--tnet_io/cwrapper.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/tnet_io/cwrapper.h b/tnet_io/cwrapper.h
new file mode 100644
index 0000000..7a9449a
--- /dev/null
+++ b/tnet_io/cwrapper.h
@@ -0,0 +1,33 @@
+#ifndef NERV_TNET_IO_CWRAPPER
+#define NERV_TNET_IO_CWRAPPER
+#include "../../matrix/generic/matrix.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);
+ 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);
+ 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);
+
+ void tnet_label_repo_destroy(TNetLabelRepo *repo);
+#ifdef __cplusplus
+}
+#endif
+#endif