Whisper icon indicating copy to clipboard operation
Whisper copied to clipboard

视频转SRT,时间戳太长

Open canaskpw opened this issue 1 year ago • 4 comments

请问视频转译SRT视频的时候,目前是一段话一个时间戳,这样在屏幕上显示太长了,能否做到一句话一个时间戳,

canaskpw avatar Apr 05 '23 09:04 canaskpw

由于缺少 word-level 时间戳,作者大概暂时无法解决。不过 openai/whisper 已经加入了词级时间戳的功能。这个版本的 whisper 依赖于 whisper.cpp,而 whisper.cpp 还没有更新词级时间戳,所以这个版本还暂时无法加入词级时间戳的功能,进而无法精确分句。

等吧。词级时间戳功能的加入,已经有人提 issue 了,在 #59 ,这应该要等 whisper.cpp 的更新。

然后作者是欧洲人,英文母语者,你这样提 issue,他是看不懂的。


To @Const-me :

This issue says the result sometimes generate a very long sentece, whishing to split the long result into reasonable shorter pieces.

I assume this would require the word-level timestamp #59 (which openai/whisper has already done), since this version is a Windows port of the whisper.cpp implementation, so it would up to when whisper.cpp would add the word-level timestamp feature.

HaujetZhao avatar Apr 05 '23 16:04 HaujetZhao

试试 mc 或者 ml 命令,限制一下输出的长度。

dogvane avatar Apr 17 '23 15:04 dogvane

请问 我源文件是中文语音,默认转的是英文字幕,使用cli -l 后面接怎么可以指定中文输出?我试了 -l cn /Chinese/zn 都不行 May I ask how to convert the CLI to Chinese subtitles .\main.exe -m ..\WhisperDesktop\ggml-medium.bin -osrt "Chinese.mp4"

------------------ 原始邮件 ------------------ 发件人: Haujet Zhao @.> 发送时间: 2023年4月6日 00:24 收件人: Const-me/Whisper @.> 抄送: canaskpw @.>, Author @.> 主题: Re: [Const-me/Whisper] 视频转SRT,时间戳太长 (Issue #79)

由于缺少 word-level 时间戳,作者大概暂时无法解决。不过 openai/whisper 已经加入了词级时间戳的功能。这个版本的 whisper 依赖于 whisper.cpp,而 whisper.cpp 还没有更新词级时间戳,所以这个版本还暂时无法加入词级时间戳的功能,进而无法精确分句。

等吧。词级时间戳功能的加入,已经有人提 issue 了,在 #59 ,这应该要等 whisper.cpp 的更新。

然后作者是欧洲人,英文母语者,你这样提 issue,他是看不懂的。

To @Const-me :

This issue says the result sometimes generate a very long sentece, whishing to split the long result into reasonable shorter pieces.

I assume this would require the word-level timestamp #58 (which openai/whisper has already done), since this version is a Windows port of the whisper.cpp implementation, so it would up to when whisper.cpp would add the word-level timestamp feature.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

canaskpw avatar Apr 18 '23 01:04 canaskpw

中文通常用 zh

dogvane avatar Apr 22 '23 17:04 dogvane