Protocol-driven audio & video editor for PraisonAI — transcribe, clean, and edit media with AI
Project description
PraisonAI Editor
AI-powered audio & video editor for PraisonAI. Protocol-driven, modular, and ready for agent integration.
Install
pip install praisonai-editor
With local Whisper support:
pip install "praisonai-editor[local]"
With PraisonAI Agent integration:
pip install "praisonai-editor[agent]"
Quick Start
CLI
# Edit audio (transcribe → detect fillers/silence → render)
praisonai-editor edit podcast.mp3 --preset podcast --verbose
# Edit video
praisonai-editor edit interview.mp4 --output edited.mp4
# AI-guided editing with prompt
praisonai-editor edit podcast.mp3 --prompt "Remove intro and off-topic weather discussion"
# Transcribe
praisonai-editor transcribe audio.mp3 --format srt
# Convert MP4 → MP3
praisonai-editor convert video.mp4 --format mp3
# Probe file metadata
praisonai-editor probe media.mp4
Python API
from praisonai_editor import edit_media, transcribe_audio, convert_media
# Edit any media
result = edit_media("podcast.mp3", preset="podcast")
# Transcribe
transcript = transcribe_audio("audio.mp3")
print(transcript.to_srt())
# Convert
convert_media("video.mp4", "audio.mp3")
PraisonAI Agent
from praisonaiagents import Agent
from praisonai_editor.agent_tool import audio_editor_tool
agent = Agent(
instructions="You are an audio editor.",
tools=[audio_editor_tool],
)
Presets
| Preset | Fillers | Repetitions | Silence (min) |
|---|---|---|---|
| podcast | ✅ Remove | ✅ Remove | 1.5s |
| meeting | ✅ Remove | Keep | 2.0s |
| course | ✅ Remove | ✅ Remove | 1.0s |
| clean | ✅ Remove | ✅ Remove | 0.8s |
Requirements
- Python ≥ 3.10
- FFmpeg (for audio/video processing)
- OpenAI API key (for transcription) or
[local]extra for offline Whisper
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
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 praisonai_editor-0.1.6.tar.gz.
File metadata
- Download URL: praisonai_editor-0.1.6.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7451808e6524387d08836598fb5c6de8d077f29bc7dffb2ceaa1a1717625dd5e
|
|
| MD5 |
3f21500dba8e6525762d71f2f1b5f0aa
|
|
| BLAKE2b-256 |
44d8346bc69532a68afb91ef2a2ee459d372fc9bac061701f1fd236909715106
|
File details
Details for the file praisonai_editor-0.1.6-py3-none-any.whl.
File metadata
- Download URL: praisonai_editor-0.1.6-py3-none-any.whl
- Upload date:
- Size: 47.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e78d1494009a729df51cce05621615b266dff68bf5c3a403e1451aeef46a3b43
|
|
| MD5 |
f8450321a2f6a64f9865ac35c8e29252
|
|
| BLAKE2b-256 |
c44cbc92e4443e4d9948a81bfc04e16965bf3f846ac3bb9cefd983877ef03224
|