Views
No views yet
openai/whisper-large-v3 with output_attentions=True for word-level timestamp support in transformers.js.1import { pipeline } from "@huggingface/transformers";
2
3const transcriber = await pipeline("automatic-speech-recognition", "edersonff/whisper-large-v3_timestamped", {
4 dtype: { encoder_model: "fp32", decoder_model_merged: "q8" },
5 device: "webgpu",
6});
7
8const result = await transcriber(audio, {
9 return_timestamps: "word",
10 chunk_length_s: 29,
11 stride_length_s: 5,
12 language: "en",
13});attn_implementation="eager" and output_attentions=Truealignment_heads configured in generation_config.json