Return timestamp info and tokens in offline ASR

Co-authored-by: zhangbaofeng@npnets.com <41259@Zbf>
This commit is contained in:
cooldoomsday
2023-05-06 10:20:46 +08:00
committed by GitHub
parent 8ce6fff9b6
commit 0bc571f6ee
4 changed files with 14 additions and 4 deletions

View File

@@ -101,7 +101,7 @@ for a list of pre-trained models to download.
fprintf(stderr, "Done!\n\n");
for (int32_t i = 1; i <= po.NumArgs(); ++i) {
fprintf(stderr, "%s\n%s\n----\n", po.GetArg(i).c_str(),
ss[i - 1]->GetResult().text.c_str());
ss[i - 1]->GetResult().AsJsonString().c_str());
}
float elapsed_seconds =