-
i'm pretty new to using whisper, sorry if my question is too noob. How could i export as SRT and specify the max_line_count and max_line_width in a python code? I tried to search for those functions on the util.py but got confused. Right now i only managed to achieve this by using the cli. Here is my current python code:
Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I would love to hear the answer to this! I am having trouble too |
Beta Was this translation helpful? Give feedback.
-
This is how I would do it expanding your code:
Added word_options, that allow you to define all those additional options, then use get_writer to convert result to SRT. Hope that helps! BTW You will need additional import
|
Beta Was this translation helpful? Give feedback.
This is how I would do it expanding your code:
Added word_options, that allow you to define all those additional options, then use get_writer to convert result to SRT. Hope that helps!
BTW You will need additional import