Skip to content

Commit

Permalink
[binding] use seconds level timestamp (#1961)
Browse files Browse the repository at this point in the history
  • Loading branch information
robin1001 authored Aug 23, 2023
1 parent cc33767 commit c8dfffc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/core/api/wenet_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ class Recognizer {
for (const auto& word_piece : decoder_->result()[i].word_pieces) {
json::JSON piece;
piece["word"] = word_piece.word;
piece["start"] = word_piece.start;
piece["end"] = word_piece.end;
piece["start"] = static_cast<float>(word_piece.start) / 1000;
piece["end"] = static_cast<float>(word_piece.end) / 1000;
one["word_pieces"].append(piece);
}
}
Expand Down

0 comments on commit c8dfffc

Please sign in to comment.