当前位置:   article > 正文

whisper get_writer srt_writer 参数说明

whisper get_writer srt_writer 参数说明
  1. lang="en"
  2. constVideo = VideoConst("GV9AMT")
  3. combineMp3Path = constVideo.getCombineMp3Path(lang)
  4. srtPath = constVideo.getOutSrtAsrFixPath(lang=lang)
  5. result, json_object = utilTts.whisper_transcribe_en(combineMp3Path)
  6. srt_writer = get_writer("srt", constVideo.videoDir)
  7. srt_writer(result, srtPath)

max_line_width 

the maximum number of characters in a line before breaking the line

换行前一行中的最大字符数

max_line_count 

the maximum number of lines in a segment

分段中的最大行数

highlight_words       

underline each word as it is spoken in srt and vtt

在srt和vtt中说出的每个单词下面加下划线

 

max_words_per_line 

no effect with --max_line_width) the maximum number of words in a segment

--max_line_width 有值是,max_words_per_line无效。 行中的最大单词数

 

参考:

How to Customize Subtitles with Whisper - CodePull

https://github.com/openai/whisper

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/IT小白/article/detail/768399
推荐阅读
相关标签
  

闽ICP备14008679号