-
So I am writing a python script to generate SRT file |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 3 replies
-
this is a new feature in development, you should instead use the stable version, in colab, rather than
you do
|
Beta Was this translation helpful? Give feedback.
-
What is the |
Beta Was this translation helpful? Give feedback.
-
Had the same issue trying to integrate into a python program and save different output format types
Error seemed to be caused by this section of the Whisper
As a workaround I made the following changes to my application, and passed in some default options values.
Another option may just be to construct args in python and use the CLI whisper command formatting. |
Beta Was this translation helpful? Give feedback.
-
Never Thought I am going to open this discussion again. The Code can be found at Here https://github.com/blusewill/ytvideo-whisper/tree/dev |
Beta Was this translation helpful? Give feedback.
-
@blusewill There was a breaking change made to this API. @Mdsajal5 and @bradsec already documented workarounds above so this is just another way of solving the problem. Depending on your need you can either call writer( result, file, {} ) or with the complete set of options, for SRT files for example: writer(result, file, {"max_line_width":55, "max_line_count":2, "highlight_words":False} ) The Line 103 in 0a60fca |
Beta Was this translation helpful? Give feedback.
-
this error went away when I installed a certain version of whisper: |
Beta Was this translation helpful? Give feedback.
-
@glangford Thanks for Mentioning. I am currently testing these options and see it will work in my code or not |
Beta Was this translation helpful? Give feedback.
-
these directions are not clear. I am going to make a new support ticket as a bug. |
Beta Was this translation helpful? Give feedback.
Had the same issue trying to integrate into a python program and save different output format types
.srt
.json
etc - even usingpip install git+https://github.com/openai/whisper.git --upgrade
. Running as a CLI seemed to work fine, however trying to run like in the below code, regardless of file type the options error always displayedTypeError: ResultWriter.__call__() missing 1 required positional argument: 'options'