nico-martin/realtime-captions

realtime captions with transformersJS and WebGPU

TypeScript

5

11 commits

updated Oct 22, 2024

See the code

README

Realtime Captions

Realtime Captions

This is an example of how we can use Transformers.js and WebGPU to run Whisper (whisper-base) directly in the browser to generate realtime captions.

The RealtimeCaptions implementation was heavily influenced by the WebGPU Whisper example by Xenova but comes with some improvements so no history is lost while still being as performant as possible.

This repository contains a TypeScript Class that could be used with any framework as well as a React Hook abstraction used in the demo application.

Contributors

nico-martin

11 commits

nico-martin/realtime-captions

realtime captions with transformersJS and WebGPU

TypeScript

5

11 commits

updated Oct 22, 2024

See the code

README

Realtime Captions

Realtime Captions

This is an example of how we can use Transformers.js and WebGPU to run Whisper (whisper-base) directly in the browser to generate realtime captions.

The RealtimeCaptions implementation was heavily influenced by the WebGPU Whisper example by Xenova but comes with some improvements so no history is lost while still being as performant as possible.

This repository contains a TypeScript Class that could be used with any framework as well as a React Hook abstraction used in the demo application.

Contributors

nico-martin

11 commits

Languages

TypeScript

71.0%

CSS

22.9%

JavaScript

5.0%

HTML

1.2%