Skip to content

kurkuruzo/whisper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Whisper Speech to Text

The purpose of this project is to transcribe audio files using the Whisper API.

Project Description

The project consists of three files:

  • api.py: This is the main file that contains the server implementation using FastAPI, which handles requests to transcribe audio files using the Whisper API.
  • whisper.html: This is the HTML file that contains the form to upload an audio file and displays the results of the transcription. script.js: This is the JavaScript file that handles the UI logic of the whisper.html page.
  • script.js: a JavaScript file that handles the file upload and form submission.
  • WhisperAPI: class to interact with Whisper API

Dependencies

The following dependencies are required to run this project:

  • Python 3.8 or higher
  • FastAPI
  • Jinja2
  • Uvicorn
  • aiohttp
  • pydub

How to Run

To run the project, follow these steps:

  1. Obtain OpenAI API key here https://beta.openai.com/signup/ and save it to the .env file as API_KEY=YOUR_KEY

  2. Clone the repository:

    git clone https://github.com/kurkuruzo/whisper.git
    cd whisper-speech-to-text
  3. Create a virtual environment:

    python -m venv venv
    source venv/bin/activate
  4. Install the dependencies:

    pip install -r requirements.txt
  5. Start the server:

    python api.py
  6. Open your web browser and go to http://localhost:8000/ to access the web app.

How to Use

  1. Open the web app in your web browser.
  2. Click the "Choose File" button and select an audio file to upload.
  3. Click the "Upload" button to submit the form.
  4. Wait for the server to transcribe the audio file.

The transcription will appear on the page once it is complete.

Credits

This project was created by Kurkuruzo and uses the OpenAI Whisper API for speech-to-text transcription.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors