Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 1.25 KB

README.md

File metadata and controls

36 lines (24 loc) · 1.25 KB

Whisper streamlit app

This is a Streamlit app that uses the Whisper and WhisperX ASR APIs to transcribe audio files into text. The app also provides an option to translate the transcribed text into a different language using the Whisper ASR API.

Installation

  1. Clone this repository to your local machine.
  2. Navigate to the project directory in your terminal.
  3. Install the required Python packages using the following command:
pip install -r requirements.txt

pip install git+https://github.com/m-bain/whisperx.git

Usage

  1. Create a .env file in /ops and put your openai api key there.

  2. Run the Streamlit app using the following command:

streamlit run src/main.py
  1. The app will open in your default web browser. You can also manually navigate to the app by entering the following URL into your web browser's address bar:
http://localhost:8501
  1. Use the file upload option to upload an audio file that you want to transcribe.
  2. Choose whether you want to use Whisper or WhisperX for transcription.
  3. The transcribed text will be displayed on the screen.
  4. If you want to translate the transcribed text into a different language, select the desired language from the dropdown menu and click the 'Translate' button.