Skip to content

Python script which will segment an audio file locally or download from URL link and send the segment to OpenAI Whisper for Transcription

License

Notifications You must be signed in to change notification settings

CodesInDarkness/OpenAI_AudioTranscription_Segment

Repository files navigation

OpenAI_AudioTranscription_Segment

Python script which will segment an audio file locally or download from URL link and send the segment to OpenAI Whisper for Transcription

Getting Started

Prerequisites

Ensure the following is installed:

  • Python 3
  • Pip (Python Package Installer)

Installing

  1. Clone the repository
    • git clone https://github.com/CodesInDarkness/OpenAI_AudioTranscription_Segment.git
  2. Navigate to the Project Directory
    • cd OpenAI_AudioTranscription_Segment
  3. Create a Python virtualenv
    • python -m venv env
  4. Use the current virtualenv (linux)
    • source env/bin/activate
  5. Install the required Python Libraries
    • pip install -r requirements.txt
  6. Add OpenAI API Key to .env file
    • nano .env
  7. In the file add the following Variable and include your OpenAI API Key
    • OPENAI_API_KEY=

Running the Program

Once the above requirements have been satisfied all you need to do is run the script. If you have a link or local file you will pass the full URL or full path to the file into the script when asked

To run the script all you need to do is call it:

python3 OpenAI_AudioTranscription_SegementAudio.py

About

Python script which will segment an audio file locally or download from URL link and send the segment to OpenAI Whisper for Transcription

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages