Commit 7f6cf8f5 authored by mayong's avatar mayong
Browse files

Bugfix: RTF.

parent 5737fff6
...@@ -12,12 +12,6 @@ extern "C" { ...@@ -12,12 +12,6 @@ extern "C" {
_RAPIDASRAPI RPASR_HANDLE RapidAsrInit(const char* szModelDir, int nThreadNum) _RAPIDASRAPI RPASR_HANDLE RapidAsrInit(const char* szModelDir, int nThreadNum)
{ {
#ifdef NDEBUG
QMLIC_BOOL bMatched = QmLicCheckValid(QLFM_ASR);
if (!bMatched) {
return nullptr;
}
#endif
Model* mm = create_model(szModelDir, nThreadNum); Model* mm = create_model(szModelDir, nThreadNum);
......
...@@ -59,6 +59,8 @@ int main(int argc, char *argv[]) ...@@ -59,6 +59,8 @@ int main(int argc, char *argv[])
cout <<("no return data!"); cout <<("no return data!");
} }
printf("Audio length %lfs.\n", (double)snippet_time);
seconds = (end.tv_sec - start.tv_sec); seconds = (end.tv_sec - start.tv_sec);
long taking_micros = ((seconds * 1000000) + end.tv_usec) - (start.tv_usec); long taking_micros = ((seconds * 1000000) + end.tv_usec) - (start.tv_usec);
printf("Model inference takes %lfs.\n", (double)taking_micros / 1000000); printf("Model inference takes %lfs.\n", (double)taking_micros / 1000000);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment