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
res = Transcriber.process(filepath=Path("path/to/media/file"))
# Write Json to file
with open(filepath.with_suffix('.json'), 'w', encoding='utf-8') as f:
f.write(res.json)
# Return Srt file contents
res.srt
# Embed subtitle file into the video
res.embed_srt(filepath=Path("path/to/media/file"))
# Return Transcript text
res.txt
# Extract txt from srt file
from ak_transcribe import converter
converter.srt_to_txt("path/to/srt/file")
# Read existing srt
from ak_transcribe import TranscribedContent
TranscribedContent(Path("path/to/JSON/file"))
## Alternatively, pass dictionary from json file
import json
with open(Path("path/to/JSON/file"), "r", encoding="utf-8") as f:
return TranscribedContent(results=json.load(f))
License
See LICENSE for more information.
Contact
Arun Kishore - @rpakishore
Project Link: https://github.com/rpakishore/ak_transcribe
Metadata
Release files for ak_transcribe 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ak_transcribe-0.0.7.tar.gz | 14.4 kB | Without provenance | Details for ak_transcribe-0.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ak_transcribe-0.0.7-py3-none-any.whl | Python 3 | none | any | Details for ak_transcribe-0.0.7-py3-none-any.whl |
Total release size: 28.0 kB
Release files / ak_transcribe-0.0.7.tar.gz
| Download URL | ak_transcribe-0.0.7.tar.gz |
|---|---|
| Size | 14.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f0574224cc24215b74e6eba2bcf927d9041e399b15971dd7c276c42233591be2
|
|
BLAKE2b-256 checksum How to use checksums |
dd83b41f34be9972dde7c7e905134ab8516a3f910f13599013021152d1837d26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.3
|
Release files / ak_transcribe-0.0.7-py3-none-any.whl
| Download URL | ak_transcribe-0.0.7-py3-none-any.whl |
|---|---|
| Size | 13.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9e92fbdba9da70f3ad27dc5a7bcd3be1db9a511561321908ffced8b2db5a53dc
|
|
BLAKE2b-256 checksum How to use checksums |
fc0f76819364faecaa0907e7e6dfa3af5ff26c742af2f37454891e76e0a72de3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.3
|
Security for ak_transcribe 0.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.