Skip to content

Commit

Permalink
Fix whisper-json2md to include first timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
marcuswhybrow committed Apr 18, 2024
1 parent 66f5b94 commit 33d1c14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/whisper-json2md/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func main() {
var whisperData WhisperData
json.Unmarshal(jsonContent, &whisperData)

prevSegmentStart := float32(-1)
prevSegmentStart := float32(-TimecodePeriod * 2)
for _, segment := range whisperData.Segments {
if segment.Start > prevSegmentStart+TimecodePeriod {
prevSegmentStart = segment.Start
Expand Down

0 comments on commit 33d1c14

Please sign in to comment.