React Hooks 小记(七)_useReducer

阅读 31

2024-06-29

lang="en"
constVideo = VideoConst("GV9AMT")
combineMp3Path = constVideo.getCombineMp3Path(lang)
srtPath = constVideo.getOutSrtAsrFixPath(lang=lang)
result, json_object = utilTts.whisper_transcribe_en(combineMp3Path)
srt_writer = get_writer("srt", constVideo.videoDir)
srt_writer(result, srtPath)

 

参考:

How to Customize Subtitles with Whisper - CodePull

https://github.com/openai/whisper

精彩评论(0)

0 0 举报