Skip to main content

Convert lectures/talks from video/audio/YouTube into text (#GodamSahur 2025)

Project description

citrailmu

Convert lectures/talks from video/audio/YouTube into text (#GodamSahur 2025).

CitraIlmu Web UI

Installation

pip install citrailmu

Key Features

  • 🎥 Media Processing
    • YouTube Video Support
    • Local Video/Audio Files
    • Web URL Support
    • Automatic Audio Compression
  • 🔄 Content Analysis
    • Full Speech Transcription
    • Topic & Theme Analysis
    • Multi-language Support
    • PDF Report Generation
  • 🌐 Flexible Integration
    • Interactive Web UI
    • Python Library
    • File & URL Processing

Usage

Python Library

from citrailmu import CitraIlmu

# Initialize
client = CitraIlmu(
    mode="default",               # Mode (default/webui)
    api_key="YOUR_KEY",           # AI service API key
    model="gemini-1.5-flash-8b",  # AI model to use
    yt_api=False,                 # Use YouTube API (optional)
    yt_api_key="YOUR_YT_API_KEY"  # YouTube API key (optional)
)

# Process media (file/URL)
audio_file, pdf_file, markdown_text = client.process_media(
    input_path="path/to/video.mp4",     # Audio/video file path or URL
    target_language="Bahasa Malaysia",  # Target language
    processing_mode="Analysis"          # Analysis/Transcript
)

Web UI

Start the Gradio web interface:

client = CitraIlmu(mode="webui")
# OR
client.start_webui(
    host="0.0.0.0",      # Server host
    port=7860,           # Server port
    browser=False,       # Launch browser
    upload_size="100MB", # Max upload size
    public=False,        # Enable public URL
    limit=10,            # Max concurrent requests
    quiet=False          # Quiet mode
)

Configuration

Target Languages

  • Bahasa Malaysia
  • Arabic
  • English
  • Mandarin
  • Tamil

Processing Modes

  • Analysis: Full content analysis with topics and themes
  • Transcript: Complete speech-to-text conversion

YouTube Processing Options

  • API Mode: Uses web API for video downloading (requires API key)
  • Default Mode: Uses native method for video downloading (no API key required)

PDF Result Format

  • Title and Overview
  • Topics and Themes (Analysis mode)
  • Full Transcript
  • Clean Typography and Layout
  • RTL Support for Arabic

License

See LICENSE for details.

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

citrailmu-25.3.6.tar.gz (21.9 kB view details)

Uploaded Source

Built Distribution

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

citrailmu-25.3.6-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

Details for the file citrailmu-25.3.6.tar.gz.

File metadata

  • Download URL: citrailmu-25.3.6.tar.gz
  • Upload date:
  • Size: 21.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.11

File hashes

Hashes for citrailmu-25.3.6.tar.gz
Algorithm Hash digest
SHA256 bf71843ff41fdc9b1b8a97b6e09cfd7ccc7f9c995b0c0ae3f3004b5d81d916b7
MD5 07354dad4aaf3028f2948e1ef2d1831f
BLAKE2b-256 59269877c3b238a1636aeef49380ecda2414a59f8a506153309449e5fb212b40

See more details on using hashes here.

File details

Details for the file citrailmu-25.3.6-py3-none-any.whl.

File metadata

  • Download URL: citrailmu-25.3.6-py3-none-any.whl
  • Upload date:
  • Size: 21.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.11

File hashes

Hashes for citrailmu-25.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 0b37410868cc85d54c2be61524a11a0ab801b8bc25f4ca61e04df122bd8c58de
MD5 39d8e507d1aad0b2a72ab3f58e65c52c
BLAKE2b-256 f2c7d08e5a4c6953b04fe19ec6f18d086dd02a1617292ec3f8f91aab074af8a8

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