Giter Site home page Giter Site logo

shreyashkgupta / whisper-service Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sauravpanda/whisper-service

0.0 0.0 0.0 1.34 MB

A deployable version of whisper as api model on cloud

License: MIT License

Python 27.50% Dockerfile 12.38% HCL 60.12%

whisper-service's Introduction

Whisper API Server

This project sets up a simple Flask server to provide an API for transcribing audio files using OpenAI's Whisper model. It allows users to upload audio files through an API endpoint, which are then processed by Whisper to return transcriptions.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Python 3.6 or higher
  • Pip (Python package manager)
  • FFmpeg (for audio processing)

Installation

To install the necessary dependencies for this project, follow these steps:

  1. Clone the repository:

    git clone https://github.com/sauravpanda/whisper-service.git
    cd whisper-api-server
  2. Install the required Python packages:

    pip install -r requirements.txt

    This will install Flask and Whisper.

  3. Make sure ffmpeg is installed on your system:

    • For Ubuntu/Debian: sudo apt-get install ffmpeg
    • For Fedora: sudo dnf install ffmpeg
    • For macOS (with Homebrew): brew install ffmpeg
    • For Windows, download and install from FFmpeg's official site.

Running the Server

To run the server, execute:

python app.py

This will start the Flask server on http://localhost:5000.

Usage

To transcribe an audio file, send a POST request to the /transcribe endpoint with the audio file. For example, using curl:

curl -X POST -F 'file=@sounds/southpark-the-coon.mp3' http://localhost:5000/transcribe

Replace sounds/southpark-the-coon.mp3 with the path to your audio file.

Contributing

Contributions to this project are welcome. To contribute:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes and commit them (git commit -am 'Add some feature').
  4. Push to the branch (git push origin feature-branch).
  5. Create a new Pull Request.

License

This project is licensed under the MIT License.

Contact

If you have any questions or feedback, please contact me at [[email protected]].

whisper-service's People

Contributors

sauravpanda 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.