blob: 7a9449a9d37ef572568fb445830b4f870d306000 (
plain) (
tree)
|
|
#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
|