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).
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="localhost", # 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
Release history Release notifications | RSS feed
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.7.tar.gz
(21.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file citrailmu-25.3.7.tar.gz.
File metadata
- Download URL: citrailmu-25.3.7.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf8ed1ce7ef129a4c2845aa1115391c4a5e5da04c8c1b00f387b870871d0acbe
|
|
| MD5 |
5999d216c41684efd66b2952686faa18
|
|
| BLAKE2b-256 |
68afcdfb7c7d5ae58177b5eb85bfc0470702638423af4850b3e2d1d3706d6a98
|
File details
Details for the file citrailmu-25.3.7-py3-none-any.whl.
File metadata
- Download URL: citrailmu-25.3.7-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d2964f35ade7fcbe3d44c9ead74b70120f4153f2b1b5a52daea48d3aaca2df9
|
|
| MD5 |
b2d18fcf0f7c66ea7c642c493708506a
|
|
| BLAKE2b-256 |
c7e136d50a73287d1294b842c6937f24cb20f255fac652144f5e4b516492f284
|