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

@@ -27,6 +27,8 @@ struct OfflineRecognitionResult {
/// timestamps.size() == tokens.size()
/// timestamps[i] records the time in seconds when tokens[i] is decoded.
std::vector<float> timestamps;
std::string AsJsonString() const;
};
struct OfflineFeatureExtractorConfig {