Here's a basic demo using these two tools. Transformers.js is typically used within a web worker for several important performance reasons:
This is a barebones demo showing Transformers.js working with Whisper in the browser for realtime audio to text transcription. It uses whisper-base, a 290mb model, and is able to transcribe audio in all of the languages listed here. It can be ran entirely offline once the model is loaded in.

This code is deployed here - https://nuxt-transformersjs-realtime-transcription.vercel.app/
npm install
npm run dev
You may be running into the a webgpu error. Check your browser's console to see if "Uncaught (in promise) Error: no available backend found. ERR: [webgpu] Error: Failed to get GPU adapter. You may need to enable flag "--enable-unsafe-webgpu" if you are using Chrome." is showing, do the following:
9 commits
Vue
74.5%
TypeScript
25.5%
Here's a basic demo using these two tools. Transformers.js is typically used within a web worker for several important performance reasons:
This is a barebones demo showing Transformers.js working with Whisper in the browser for realtime audio to text transcription. It uses whisper-base, a 290mb model, and is able to transcribe audio in all of the languages listed here. It can be ran entirely offline once the model is loaded in.

This code is deployed here - https://nuxt-transformersjs-realtime-transcription.vercel.app/
npm install
npm run dev
You may be running into the a webgpu error. Check your browser's console to see if "Uncaught (in promise) Error: no available backend found. ERR: [webgpu] Error: Failed to get GPU adapter. You may need to enable flag "--enable-unsafe-webgpu" if you are using Chrome." is showing, do the following:
9 commits
Vue
74.5%
TypeScript
25.5%