Giter Club home page Giter Club logo

insanely-fast-whisper-cli's Introduction

Insanely Fast Whisper (CLI)

GitHub License Python Version

Powered by 🤗 Transformers & Optimum and based on Vaibhavs10/insanely-fast-whisper.

TL;DR - 🎙️ Transcribe 300 minutes (5 hours) of audio in less than 10 minutes - with OpenAI's Whisper Large v2. Blazingly fast transcription is now a reality!⚡️

Features

ASR Model: Choose from different 🤗 Hugging Face ASR models, including all sizes of openai/whisper and even use an English-only variant (for non-large models).

🚀 Performance: Customizable optimizations ASR processing with options for batch size, data type, and BetterTransformer, all from the comfort of your terminal! 😎

📝 Timestamps: Get an SRT output file with accurate timestamps, allowing you to create subtitles for your audio or video content.

Installation

  • Clone git repository with git clone https://github.com/ochen1/insanely-fast-whisper-cli
  • Switch to that folder with cd insanely-fast-whisper-cli/
  • (optional) Create a new Python environment with python -m venv venv
  • (optional) Activate environment with source venv/bin/activate
  • Install packages from requirements with pip install -r requirements.txt
  • Run program with python insanely-fast-whisper.py

Usage

insanely-fast-whisper --model openai/whisper-base --device cuda:0 --dtype float32 --batch-size 8 --better-transformer --chunk-length 30 your_audio_file.wav
  • model: Specify the ASR model (default is "openai/whisper-base").
  • device: Choose the computation device (default is "cuda:0").
  • dtype: Set the data type for computation ("float32" or "float16").
  • batch-size: Adjust the batch size for processing (default is 8).
  • better-transformer: Use BetterTransformer for improved processing (flag).
  • chunk-length: Define audio chunk length in seconds (default is 30).

Example

Transcribing an audio file with English-only Whisper model and returning timestamps:

insanely-fast-whisper --model openai/whisper-base.en your_audio_file.wav

Output

The tool will save an SRT transcription of your audio file in the current working directory.

License

This project is licensed under the MIT License.

Acknowledgments

📞 Contact

Have questions or feedback? Feel free to create an issue!

🌟 Star this repository if you find it helpful!

Star History Chart


GitHub Issues GitHub Pull Requests

🚀 Happy transcribing with Insanely Fast Whisper! 🚀

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.