Skip to content

๐Ÿ“ Turn audio into text effortlessly. Audio transcription powered by OpenAI's Whisper API.

License

Notifications You must be signed in to change notification settings

franckferman/Whisper_Transcriber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Contributors Forks Stargazers License

๐Ÿ“ Whisper_Transcriber

Turn audio into text effortlessly.
Audio transcription powered by OpenAI's Whisper API.

๐Ÿ“œ Table of Contents

Click to collapse/expand
  1. ๐Ÿ“– About
  2. ๐Ÿ› ๏ธ Installation
  3. ๐ŸŽฎ Usage
  4. ๐Ÿค Contributing
  5. ๐ŸŒ  Star Evolution
  6. ๐Ÿ“œ License
  7. ๐Ÿ“ž Contact

๐Ÿ“– About

Whisper_Transcriber is a Python CLI tool designed to transcribe audio files using OpenAI's Whisper API. It handles the entire transcription process, from audio validation to output generation.

Whisper_Transcriber was originally developed to work alongside audio_splitter, which splits large audio files into smaller parts before transcription. Together, they provide a complete and efficient workflow โ€” split & transcribe โ€” ideal for long recordings and managing Whisper API limitations and costs.

โš™๏ธ Key Features

  • โœ… Transcribe audio files using OpenAI's Whisper API.
  • โœ… Automatic language detection or manual selection (French / English).
  • โœ… Export transcriptions as JSON files (optional).

(๐Ÿ”ผ Back to top)

๐Ÿš€ Installation

Before getting started, make sure you meet the following prerequisites.

Prerequisites

  1. Python 3: Ensure Python 3 is installed on your system.

โš ๏ธ Note: Whisper_Transcriber has been tested on Python 3.11.10 under Linux. While it might work on other versions or operating systems, compatibility is officially guaranteed only for this specific setup.

  1. Dependencies: Install the required Python dependencies using pip:
pip install -r requirements.txt

โš ๏ธ Note: Whisper_Transcriber requires a valid OpenAI API Key to function.

Installation Methods

  1. Clone the repository via Git:
git clone https://github.com/franckferman/Whisper_Transcriber.git

2. Direct Download from GitHub

  1. Go to GitHub repo.
  2. Click <> Code โ†’ Download ZIP.
  3. Extract the archive to your desired location.

(๐Ÿ”ผ Back to top)

๐ŸŽฎ Usage

Below you'll find common commands and usage examples for Whisper_Transcriber.

๐Ÿšฆ Quick Start

To quickly view all available commands and options:

python3 src/Whisper_Transcriber.py --help

๐Ÿ“– Available Commands

  • transcribe: Transcribes an audio file using OpenAI's Whisper API.
  • clean: Cleans temporary and unwanted files (e.g., .pyc, pycache, logs).

๐Ÿ“ Transcribing Audio Files

Use the transcribe command to transcribe audio files via Whisper API.

โœ… Basic Transcription Example

Transcribe an audio file with automatic language detection:

python3 src/Whisper_Transcriber.py transcribe -f ./audio/my_audio.mp3 -k sk-APIKEY
๐ŸŒ Specifying Language & Exporting Output

Transcribe an audio file with a specified language (English or French) and save output to a JSON file:

python3 src/Whisper_Transcriber.py transcribe -f ./audio/my_audio.mp3 -k sk-APIKEY -l en -o ./output/transcription.json
โš™๏ธ Options Explained
Options Explained
Option Description Example
-f, --file Path to the audio file to transcribe ./audio/my_audio.mp3
-k, --key OpenAI API key for authentication sk-APIKEY
-l, --lang, --language (Optional) Language for transcription: fr or en -l fr
-o, --output (Optional) Path to save the transcription in JSON format -o ./output/transcription.json
--debug (Optional) Enable verbose debug logging --debug

๐Ÿงน Cleaning Temporary Files

Use the clean command to remove temporary files from your project (e.g., .pyc, pycache, log files).

Basic Cleanup Example

Clean temporary files in the current directory:

python3 src/Whisper_Transcriber.py clean

(๐Ÿ”ผ Back to top)

๐Ÿค Contributing

We truly appreciate and welcome community involvement. Your contributions, feedback, and suggestions play a crucial role in improving the project for everyone. If you're interested in contributing or have ideas for enhancements, please feel free to open an issue or submit a pull request on our GitHub repository. Every contribution, no matter how big or small, is highly valued and greatly appreciated!

(๐Ÿ”ผ Back to top)

๐ŸŒ  Star Evolution

Explore the star history of this project and see how it has evolved over time:

Star History Chart

Your support is greatly appreciated. We're grateful for every star! Your backing fuels our passion. โœจ

(๐Ÿ”ผ Back to top)

๐Ÿ“š License

This project is licensed under the GNU Affero General Public License, Version 3.0. For more details, please refer to the LICENSE file in the repository: Read the license on GitHub

(๐Ÿ”ผ Back to top)

๐Ÿ“ž Contact

ProtonMail LinkedIn Twitter

(๐Ÿ”ผ Back to top)