Add timestamps for streaming ASR. (#123)

This commit is contained in:
Fangjun Kuang
2023-04-19 16:02:37 +08:00
committed by GitHub
parent 4b5d2887cb
commit ad05f52666
11 changed files with 170 additions and 19 deletions

View File

@@ -102,7 +102,7 @@ for a list of pre-trained models to download.
recognizer.DecodeStream(s.get());
}
std::string text = recognizer.GetResult(s.get()).text;
std::string text = recognizer.GetResult(s.get()).AsJsonString();
fprintf(stderr, "Done!\n");