Transcribe Media Files
Project description
ak_transcribe
Table of Contents
Getting Started
Prerequisites
Python 3.11 or above
Note for Ubuntu/Debian:
This project uses python-magic
to identify file types. So the libmagic C library needs to be installed need to be installed. See python-magic for more information.
For Debian/Ubuntu systems:
sudo apt-get install libmagic1
For OSX:
- When using Homebrew:
brew install libmagic
- When using macports:
port install file
For Windows:
- No additional requirements
Installation
pip install ak_transcribe
Check configs
import ak_transcribe
ak_transcribe.test_configs()
Usage
from ak_transcribe import Transcriber
from pathlib import Path
Transcriber.process(filepath=Path("path/to/media/file"))
# Return Srt file
Transcriber.srt
# Embed subtitle file into the video
Transcriber.embed_srt(filepath=Path("path/to/media/file"))
# Return Transcript text
Transcriber.txt
# Return the json text string
Transcriber.json
# Extract txt from srt file
from ak_transcribe import converter
converter.srt_to_txt("path/to/srt/file")
License
See LICENSE for more information.
Contact
Arun Kishore - @rpakishore
Project Link: https://github.com/rpakishore/ak_transcribe
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
ak_transcribe-0.0.3.tar.gz
(13.3 kB
view details)
Built Distribution
File details
Details for the file ak_transcribe-0.0.3.tar.gz
.
File metadata
- Download URL: ak_transcribe-0.0.3.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a45107a0529c4d5c4b49dce08d4b62801182f827e2d88ffcacbac2cb9874e0ed |
|
MD5 | bf5e459234f39669a872907cbb65cff4 |
|
BLAKE2b-256 | d60ae23be27c0c53d83ae88c5065a4b4f17814d97a6f11b8b06f5351d382dd3b |
File details
Details for the file ak_transcribe-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: ak_transcribe-0.0.3-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96fb516a69628e2f75c1026260645571552978596a895a711dc6d93f23c84f39 |
|
MD5 | d3ddc297dbd1aea98c7bfafcbab5bd34 |
|
BLAKE2b-256 | f9daa9fb113b5c05cad0d9a5e02420606f795d68774a64ca6b395528addd508f |