Commit 6f8d161
authored
fix(cli): valid SRT timestamps + clear json duration fields (#2982)
- SRT: when the model returns no per-sentence timestamps, the fallback used a
bogus 99:59:59,999 end time. Now span the real audio duration so the SRT is
valid.
- json: duration_s was actually the processing time (a 60s file showed
duration_s: 2.3). Split into audio_duration_s (real audio length) and
processing_s (elapsed). Safe rename - the new CLI is unreleased.
Found by smoke-testing the funasr CLI as a new user.
Co-authored-by: LauraGPT <LauraGPT@users.noreply.github.com>1 parent c39ff39 commit 6f8d161
1 file changed
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
52 | 57 | | |
53 | 58 | | |
54 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
55 | 69 | | |
56 | 70 | | |
57 | 71 | | |
| |||
0 commit comments