Skip to content

Commit

Permalink
Use to_timestamp to make token timestamp readable
Browse files Browse the repository at this point in the history
  • Loading branch information
bobqianic authored Oct 30, 2023
1 parent 1477ce0 commit be4d1ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ bool output_json(
start_obj(nullptr);
value_s("text", whisper_token_to_str(ctx, token.id), false);
if(token.t0 > -1) {
value_i("from", token.t0 * 10, false);
value_s("from", to_timestamp(token.t0, true).c_str(), false);
}
if(token.t1 > -1) {
value_i("to", token.t1 * 10, false);
Expand Down

0 comments on commit be4d1ea

Please sign in to comment.