Giter Club home page Giter Club logo

streaming-whisper-server's Introduction

WhisperLive

This module integrates Facebook's denoising technology with OpenAI's Whisper ASR (Automatic Speech Recognition) system to reduce noise in input audio streams, improving transcription accuracy and reducing hallucinations. The module supports multi-threading and can load various Whisper models, including language-specific models from Hugging Face, making it versatile for different transcription needs. The server-client architecture allows users to leverage Whisper's capabilities in their daily tasks. Features

  • Noise Reduction: Utilizes Facebook's denoising algorithm to clean input audio.
  • Whisper Integration: Leverages Whisper's robust ASR capabilities for accurate transcription.
  • Multi-Model Support: Easily load different Whisper models, including language-specific models from Hugging Face.
  • Server-Client Architecture: Runs Whisper on a server, with a client program for interfacing.
  • Real-Time Processing: Supports real-time audio processing for immediate feedback.
  • Multi-Threading: Handles multiple requests simultaneously for efficient processing.
  • Hot-word: you can specify the hot word in hotword file inside the server folder by which it can focus on particular words accoring to you needs

alt text

Install Instruction

pip install git+https://github.com/bolna-ai/streaming-whisper-server.git

pip install transformers

note: dont worry about version conflict

Create project

python3 -m CustomWhisper -c <project name> -dn <True,False (for denoise active or deactive)>

project have three folder ASR, NoiseWeights, VAD and two file hotwords and Server.py you have to make sure you put model in ASR folder, the server code automatically detect model from ASR folder so please make sure of that, if client send wrong model name then , first model is selected automatically

Project Structure

  • ASR: Directory for storing Whisper models. Ensure that all models are placed in this folder.
  • NoiseWeights: Directory containing the weights for the denoising model.
  • VAD: Directory for Voice Activity Detection components.
  • hotwords: File for hotword detection configuration.
  • Server.py: Main server script that runs the application.

Add ASR models

ct2-transformers-converter --model <model: openai/whisper-tiny> --copy_files preprocessor_config.json --output_dir <output_dir: ASR/whisper_tiny_ct> --quantization float16

note: add it on ASR folder

Run server

> cd my-project
> ls
ASR  NoiseWeights hotwords Server.py  VAD
> python3 Server.py -p 9000

there is no memory limiter in package , so be careful load up many client parallel load whisper models parallely in memory so be careful alt text

streaming-whisper-server's People

Contributors

anshjoseph avatar

Stargazers

Raphael Costa avatar  avatar  avatar Ishan Marikar avatar AAVISH GILBERT J avatar Bharat S avatar Adithya S K avatar Prayash Mohapatra avatar  avatar Prashant R Pandey avatar Marmik Pandya avatar

Watchers

Prateek Sachan avatar Marmik Pandya avatar

streaming-whisper-server's Issues

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.