Skip to content

Add support for Whisper Large v3 Model #81

@solaoi

Description

@solaoi

Whisper Large v3 missing mel_filters in preprocessor_config.json

Issue Description

Unlike the Tiny model, Whisper Large v3 doesn't include mel_filters in its preprocessor_config.json file.
Reference: Whisper Large v3 preprocessor_config.json

This omission causes the following error when attempting to use the model with ctranslate2-rs:

Error: missing field `mel_filters`

Potential Solution

The faster-whisper library, which implements ctranslate2, addresses this issue with the following approach:

model.feature_extractor.mel_filters = model.feature_extractor.get_mel_filters(
    model.feature_extractor.sampling_rate,
    model.feature_extractor.n_fft,
    n_mels=128
)

Reference: faster-whisper GitHub issue #547

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