https://huggingface.co/openai/whisper-large-v3 with ONNX weights to be compatible with Transformers.js.
If you haven't already, you can install the Transformers.js JavaScript library from NPM using:
npm i @huggingface/transformers
Example: Transcribe audio from a URL.
import { pipeline } from '@huggingface/transformers';
const transcriber = await pipeline('automatic-speech-recognition', 'Xenova/whisper-large-v3');
const url = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/jfk.wav';
const output = await transcriber(url);
Note: Having a separate repo for ONNX weights is intended to be a temporary solution until WebML gains more traction. If you would like to make your models web-ready, we recommend converting to ONNX using 🤗 Optimum and structuring your repo like this one (with ONNX weights located in a subfolder named onnx).
onnx/decoder_model_fp16.onnx 1.7 GiBonnx/decoder_with_past_model_fp16.onnx 1.5 GiBonnx/encoder_model_fp16.onnx 1.2 GiBonnx/decoder_model_uint8.onnx 1.1 GiBonnx/decoder_model_int8.onnx 1.1 GiBonnx/decoder_with_past_model_uint8.onnx 1023 MiBonnx/decoder_with_past_model_int8.onnx 1023 MiBonnx/decoder_model_merged_quantized.onnx 873 MiBonnx/decoder_model_quantized.onnx 871 MiBonnx/decoder_with_past_model_quantized.onnx 770 MiBonnx/decoder_model_q4.onnx 759 MiBonnx/decoder_model_bnb4.onnx 709 MiBonnx/decoder_with_past_model_q4.onnx 697 MiBonnx/decoder_with_past_model_bnb4.onnx 653 MiBonnx/encoder_model_quantized.onnx 615 MiBonnx/encoder_model_uint8.onnx 615 MiBonnx/decoder_model_q4f16.onnx 580 MiBonnx/decoder_with_past_model_q4f16.onnx 524 MiBonnx/encoder_model_q4.onnx 405 MiBonnx/encoder_model_bnb4.onnx 368 MiBonnx/encoder_model_q4f16.onnx 353 MiBonnx/decoder_model_merged.onnx 3 MiBonnx/decoder_model.onnx 2 MiBonnx/decoder_with_past_model.onnx 1 MiBonnx/encoder_model.onnx 660.8 KiBopenai/whisper-large-v3