Skip to content
Discussion options

You must be logged in to vote

Had the same issue trying to integrate into a python program and save different output format types .srt .json etc - even using pip 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 displayed TypeError: ResultWriter.__call__() missing 1 required positional argument: 'options'

def whisper_transcription(input_audio, whisper_model):

    model = whisper.load_model(whisper_model)
    result = model.transcribe(input_audio, verbose=True)
    output_directory = "."

    txt_writer = get_writer("txt", output_directory)
    txt_writer(result, input_audio)
…

Replies: 8 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@erkkimon
Comment options

@erkkimon
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by blusewill
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
8 participants