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.
- Clone this repository to your local machine.
- Navigate to the project directory in your terminal.
- Install the required Python packages using the following command:
pip install -r requirements.txt
pip install git+https://github.com/m-bain/whisperx.git
-
Create a .env file in /ops and put your openai api key there.
-
Run the Streamlit app using the following command:
streamlit run src/main.py
- 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
- Use the file upload option to upload an audio file that you want to transcribe.
- Choose whether you want to use Whisper or WhisperX for transcription.
- The transcribed text will be displayed on the screen.
- 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.