| | |
| | | int main(int argc, char *argv[]) |
| | | { |
| | | |
| | | if (argc < 3) |
| | | if (argc < 4) |
| | | { |
| | | printf("Usage: %s /path/to/model_dir /path/to/wav/file quantize(true or false)", argv[0]); |
| | | printf("Usage: %s /path/to/model_dir /path/to/wav/file quantize(true or false) \n", argv[0]); |
| | | exit(-1); |
| | | } |
| | | struct timeval start, end; |
| | |
| | | string msg = RapidAsrGetResult(Result, 0); |
| | | setbuf(stdout, NULL); |
| | | cout << "Result: \""; |
| | | cout << msg << endl; |
| | | cout << "\"." << endl; |
| | | cout << msg << "\"." << endl; |
| | | snippet_time = RapidAsrGetRetSnippetTime(Result); |
| | | RapidAsrFreeResult(Result); |
| | | } |