-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
While using Whisper Web and trying to export to JSON i have encountered a bug.
The timestamp[1] does not have proper rounder values like the timestamp[0].
I have verified this is not a bug due to exporting to JSON, I believe that wrong variable is used when setting chunk.timestamp[1]
Please check this line here
chunk.timestamp[1] = time;This should be equal to rounded_time
- chunk.timestamp[1] = time;
+ chunk.timestamp[1] = rounded_time;How to reproduce
You can reproduce this bug by using the default audio link provided and then exporting to JSON
Expected behavior
timestamp[1] should have rounder values like the timestamp[0]
Logs/screenshots
Environment
- Transformers.js version: 2.2.0
Additional context
I have tried to make changes to the code.
- chunk.timestamp[1] = time;
+ chunk.timestamp[1] = rounded_time;This change does fix the problem.
You can assign this bug to me, and I can raise a PR with this fix.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working

