Views
No views yet
primeline/distil-whisper-large-v3-german
prepared for use with Transformers.js.fp32, fp16, q4, q8.onnx/1import { pipeline } from "@huggingface/transformers";
2
3const transcriber = await pipeline("automatic-speech-recognition", "<your-hf-username>/distil-whisper-large-v3-german_timestamped-ONNX", {
4 device: "webgpu",
5 dtype: "fp16", // or "fp32", "q4", "q8"
6});
7
8const output = await transcriber("audio.mp3", {
9 chunk_length_s: 30,
10 return_timestamps: "word",
11});
12
13console.log(output.text);
14console.log(output.chunks?.slice(0, 3));fp32: highest precision, typically for server-side or high-memory WebGPUfp16: smaller WebGPU model with good speed/quality tradeoffq8: smaller CPU/WASM modelq4: smallest model, best for constrained devicesprimeline/distil-whisper-large-v3-german