transformers.js icon indicating copy to clipboard operation
transformers.js copied to clipboard

Add Whisper language detection

Open ae9is opened this issue 1 year ago • 7 comments

See #302

Adds support for automatically detecting language to Whisper tasks.

The existing HuggingFace and Whisper implementations in Python were used as reference: Hugging Face Transformers Original Whisper

Also updates the existing Whisper test suites, including adding a string similarity check for actual model output (as opposed to just output length). Please note that the "new" development dependency for these tests, "fastest-levenshtein" is already used by "webpack-cli".

ae9is avatar Dec 13 '24 13:12 ae9is