Coder Social home page Coder Social logo

whisper-live's Introduction

Whisper Live


Table of Contents

Description

Warning

This project is still a work in progress! See Issues for a list of known bugs and missing features.

whisper-live is a CLI tool for real-time audio transcription using Whisper-based models.

It currently loads models using the HuggingFace transformers library.

Implementation logic

The implementation is highly based on https://github.com/davabase/whisper_real_time. More advanced logic could be considered for future releases.

The process is as follows:

  • The audio is recorded via the microphone using a background thread
  • Every N seconds, an audio chunk is created. N is defined by the --recording-duration argument.
  • The audio chunk is sent to the model for transcription.
  • The transcription is printed to the console.

Note: audio chunks (and transcriptions) are not aware of previous chunks. Once a chunk is processed, its audio is discarded. Once a transcription is printed, its text is not considered anymore.

Contributing

  1. Clone this repo
  2. Make sure you have hatch installed. If not, follow the guide here.
  3. Create a virtual environment hatch env create and activate it hatch shell
  4. Install pre-commit hooks for linting: pre-commit install

Warning

No unit tests are currently implemented!

License

whisper-live is distributed under the terms of the MIT license.

Inspirations and Related Work

This project was inspired by:

whisper-live's People

Contributors

pre-commit-ci[bot] avatar edabati avatar

Stargazers

Dong Zhang avatar  avatar kontorol avatar Yuan-Man avatar Vaibhav Srivastav avatar

Watchers

 avatar

whisper-live's Issues

Add logs for inference time

We need to test different Whisper libraries, configs and models.
It will be useful to have an indication of the model inference time in the logs

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.