Return timestamp info and tokens in offline ASR
Co-authored-by: zhangbaofeng@npnets.com <41259@Zbf>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user