Skip to content

Extend the python api #167

@scottmonster

Description

@scottmonster

The new whisper.cpp v1.8.4 bindings use the default context params

struct whisper_context_wrapper whisper_init_from_file_wrapper(const char * path_model){
    struct whisper_context_params cparams = whisper_context_default_params();
    struct whisper_context * ctx = whisper_init_from_file_with_params(path_model, cparams);
    struct whisper_context_wrapper ctw_w;
    ctw_w.ptr = ctx;
    return ctw_w;
}

I did this in order to have the smallest change on the python side.

That is fine and it works but the api should be extended to expose the context params. I am working on extending the api here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions