Browse
 
Tools
Rss Categories

Main.cpp

Reference Number: AA-01513 Views: 2258 0 Rating/ Voters

C++ Code

  1. #include "AudioStreamer.h"
  2. #include "SimpleRecognizer.h"
  3. #include <iostream>
  4. int main()
  5. {
  6. SimpleRecognizer Reco;
  7. Reco.LoadGrammar("yesno","builtin:grammar/boolean");
  8. AudioStreamer Audio("1234.ulaw");
  9. Reco.Recognize(&Audio,"yesno");
  10. Reco.WaitUntilDone();
  11. std::cout << std::endl << Reco.GetResult() << std::endl;
  12. return 0;
  13. }