kaldi-io-test.cc File Reference
#include <unistd.h>
#include "base/io-funcs.h"
#include "util/kaldi-io.h"
#include "base/kaldi-math.h"
#include "base/kaldi-utils.h"
Include dependency graph for kaldi-io-test.cc:

Go to the source code of this file.

Namespaces

 kaldi
 This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for mispronunciations detection tasks, the reference:
 

Functions

void UnitTestClassifyRxfilename ()
 
void UnitTestClassifyWxfilename ()
 
void UnitTestIoNew (bool binary)
 
void UnitTestIoPipe (bool binary)
 
void UnitTestIoStandard ()
 
void UnitTestNativeFilename ()
 
int main (int argc, const char **argv)
 

Function Documentation

◆ main()

int main ( int  argc,
const char **  argv 
)

Definition at line 351 of file kaldi-io-test.cc.

References KALDI_ASSERT, kaldi::UnitTestClassifyRxfilename(), kaldi::UnitTestClassifyWxfilename(), kaldi::UnitTestIoNew(), kaldi::UnitTestIoPipe(), kaldi::UnitTestIoStandard(), and kaldi::UnitTestNativeFilename().

351  {
352  using namespace kaldi;
353 #if defined(_MSC_VER) && !defined(KALDI_CYGWIN_COMPAT)
354  if (argc > 1 && strcmp(argv[1], "cat") == 0)
355  return TinyCat(argc - 2, argv + 2);
356 #endif
357 
359  UnitTestIoNew(false);
360  UnitTestIoNew(true);
361  UnitTestIoPipe(true);
362  UnitTestIoPipe(false);
366 
367  KALDI_ASSERT(1); // just wanted to check that KALDI_ASSERT does not fail
368  // for 1.
369  return 0;
370 }
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
Definition: chain.dox:20
void UnitTestClassifyWxfilename()
void UnitTestNativeFilename()
void UnitTestIoNew(bool binary)
void UnitTestIoStandard()
#define KALDI_ASSERT(cond)
Definition: kaldi-error.h:185
void UnitTestClassifyRxfilename()
void UnitTestIoPipe(bool binary)