| File was renamed from funasr/runtime/onnxruntime/tester/tester.cpp |
| | |
| | | #endif |
| | | |
| | | #include "libfunasrapi.h" |
| | | |
| | | #include <iostream> |
| | | #include <fstream> |
| | | #include <sstream> |
| | | using namespace std; |
| | | |
| | |
| | | printf("Model initialization takes %lfs.\n", (double)modle_init_micros / 1000000); |
| | | |
| | | gettimeofday(&start, NULL); |
| | | float snippet_time = 0.0f; |
| | | |
| | | FUNASR_RESULT Result=FunASRRecogFile(AsrHanlde, argv[2], RASR_NONE, NULL, use_vad); |
| | | |
| | | gettimeofday(&end, NULL); |
| | | |
| | | |
| | | float snippet_time = 0.0f; |
| | | if (Result) |
| | | { |
| | | string msg = FunASRGetResult(Result, 0); |
| | |
| | | } |
| | | else |
| | | { |
| | | cout <<"no return data!"; |
| | | printf("no return data!"); |
| | | } |
| | | |
| | | printf("Audio length %lfs.\n", (double)snippet_time); |