Skip to main content

A simple tool to transcribe audio files

Project description

Transcriber

A flexible Python package for transcribing audio and video from various sources (SoundCloud, YouTube, or local files) into multiple text formats (txt, docx, srt). The transcriber supports multiple speech recognition models (defaulting to Whisper "large-v3"). It leverages GPU acceleration for faster processing and utilizes concurrency through async and multiprocessing to improve performance.

Features

  • Multiple Input Sources: Transcribe from SoundCloud, YouTube, or local audio/video files
  • Multiple Models: Support for both faster-whisper and standard whisper models
  • GPU Acceleration: Utilize GPU processing for faster transcription
  • Concurrent Processing: Batch processing and VAD filtering for improved performance
  • Various Output Formats: Export transcriptions to multiple formats
  • Progress Tracking: Rich progress bars showing transcription status
  • Configurable: Extensive configuration options via environment variables or settings

Requirements

  • Python 3.11 or higher
  • GPU support (optional but recommended for better performance)

Installation

  1. Install the package:

    uv pip install Transcriber
    

Configuration

  1. Copy the example environment file:

    cp .env.example .env
    
  2. Configure the settings in .env:

    # Input settings
    INPUT__URLS_OR_PATHS=["Audio_To_Transcribe"]
    INPUT__SKIP_IF_OUTPUT_EXIST=false
    
    # Output settings
    OUTPUT__OUTPUT_FORMATS=["all"]
    OUTPUT__OUTPUT_DIR="Transcripts"
    
    # Whisper model settings
    WHISPER__LANGUAGE="ar"
    

Usage

Basic Usage

from Transcriber.transcriber import transcribe

# Configure input files in .env, then:
transcribe()

Command Line Usage

uv run --with Transcriber transcribe

Example Configuration

# Example settings in your .env file
INPUT__URLS_OR_PATHS=["path/to/audio.mp3", "https://youtube.com/watch?v=example"]
OUTPUT__OUTPUT_FORMATS=["txt", "srt"]
WHISPER__LANGUAGE="en"

Acknowledgments

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

transcriber-0.1.13.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

transcriber-0.1.13-py3-none-any.whl (21.6 kB view details)

Uploaded Python 3

File details

Details for the file transcriber-0.1.13.tar.gz.

File metadata

  • Download URL: transcriber-0.1.13.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.8

File hashes

Hashes for transcriber-0.1.13.tar.gz
Algorithm Hash digest
SHA256 7f91ff169663f0d920aafb96cffbe1c846c18f0b8d3386c901b408cac16c4f55
MD5 bd4489730fdbb93255156de3070fbfc4
BLAKE2b-256 b610fce539e75c68c94ca9f7a7be4faff6e3ce8b90248464acd6e976e954f726

See more details on using hashes here.

File details

Details for the file transcriber-0.1.13-py3-none-any.whl.

File metadata

File hashes

Hashes for transcriber-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 2dfc3cafebf692bf0670a2051492aa0a18ee795cf6a080b166e713b4da470540
MD5 21fa29d4e3b4cdaa4b8b4c02642a4b67
BLAKE2b-256 adbf60cc4bce633fc7ae2f43f569e86bd49c7623e73428f8b08a4cb2e2f521d5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page