Coder Social home page Coder Social logo

igerman00 / buttercup-chrome Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 0.0 349 KB

A Chrome(ium) extension to replace YouTube's auto-captions with Whisper-generated ones

Home Page: https://buttercup.igerman.cc

JavaScript 89.49% HTML 10.51%
asr captions request-interception whisper whisper-ai youtube

buttercup-chrome's Introduction

Buttercup - Better YouTube Captions

cute icon but ai generated very unfortunate

A Chrome(ium) extension to enhance your YouTube caption experience. Say goodbye to those horrible auto-generated captions. Powered by whisper-jax, thanks to the API provided by Sanchit Gandhi.

Features

  • Whisper-Generated Captions: Leverages Whisper AI tech for decent captions.
  • Automatic Replacement: Replaces YouTube's default auto-captions with Buttercup, not affecting videos with existing real captions. Real captions always take priority over automatically generated ones.
  • Caching System: Utilizes an optional caching database to store video IDs and generated captions for enhanced performance and to avoid hammering the Whisper API.
  • Translation: Seamlessly translate all speech to English. An option and a separated database for English-translated captions are available.

Installation

  1. Enable Developer Mode in Chrome Extensions.
  2. Download this repository and unpack the ZIP file to a safe location.
  3. Load the unpacked extension in Chrome(ium) through the Extensions (chrome://extensions) menu.

Privacy and Data Usage

Buttercup has no need to spy on you, however:

  • You can opt out of using the cache database in the extension settings.
  • IP addresses are stored briefly for rate limiting and are not linked to captions or video IDs.
  • The database source code is not yet available.

Getting Started

After installation, simply navigate to any YouTube video and play it. Upon clicking the captions button, the icon of which will be replaced with BC, Buttercup will automatically replace YouTube's captions with the enhanced ones, unless real captions are available. No additional steps or configurations are needed.

Translation

When you enable translation after clicking the extension's icon, all requests will only interact with the English part of the database, so you will have a different set of cached captions, and your generated captions will be stored in the database with a flag. The Whisper api will translate all speech to English as best it can. Only English can be supported, no other translation languages will be supported.

Support & Feedback

Encountered an issue? Have suggestions? Feel free to open an issue or a pull request on this GitHub repository. I'm always looking to improve Buttercup and appreciate your feedback.

Credits

  • Sanchit Gandhi for the public API for whisper-jax
  • DualSubs project and Virgil Clyne specifically for some help on overriding the responses for YouTube's captions API
  • Cloudflare for providing the free and easy-to-use serverless architecture and KV database API for the cache database service

buttercup-chrome's People

Contributors

igerman00 avatar

Stargazers

 avatar  avatar Alex Kovacs avatar Virgil Clyne avatar  avatar Enes Genç avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.