Skip to content

Comments

fix: Use correct seek value in output, fix word timestamps when the initial timestamp is not zero#1141

Merged
MahmoudAshraf97 merged 3 commits intoSYSTRAN:masterfrom
heimoshuiyu:seek
Nov 15, 2024
Merged

fix: Use correct seek value in output, fix word timestamps when the initial timestamp is not zero#1141
MahmoudAshraf97 merged 3 commits intoSYSTRAN:masterfrom
heimoshuiyu:seek

Conversation

@heimoshuiyu
Copy link
Contributor

this fix #1140

code from commit before #856

time_offset = (
segments[0]["seek"]
* self.feature_extractor.hop_length
/ self.feature_extractor.sampling_rate
)

Copy link
Collaborator

@MahmoudAshraf97 MahmoudAshraf97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. I've made some additional fixes to address the core issue.

@MahmoudAshraf97 MahmoudAshraf97 changed the title fix: incorrect time_offset value fix: Use correct seek value in output, fix word timestamps when the initial timestamp is not zero Nov 15, 2024
@MahmoudAshraf97 MahmoudAshraf97 merged commit 53bbe54 into SYSTRAN:master Nov 15, 2024
@Purfview
Copy link
Contributor

Finally faster-whisper is fixed after that #856 mess. Good job!

BitSteve added a commit to cresta/faster-whisper that referenced this pull request Nov 15, 2024
fix: Use correct `seek` value in output, fix word timestamps when the initial timestamp is not zero (SYSTRAN#1141)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Some segment has a 1 second shifted after PR #856

3 participants