Skip to main content

KFA

[Google Colab]

A fast Khmer Forced Aligner powered by Wav2Vec2CTC and Phonetisaurus.

  • Built-in Speech Enhancement
  • Word-level Alignment
pip install kfa

CLI

kfa -a audio.wav -t text.txt -o alignments.jsonl

# Output as Whisper style JSON format
kfa -a audio.wav -t text.txt --format whisper -o alignments.json

Python

from kfa import align, create_session
import librosa

with open("test.txt") as infile:
    text = infile.read()

y, sr = librosa.load("text.wav", sr=16000, mono=True)
session = create_session()

for alignment in align(y, sr, text, session=session):
  print(alignment)

References

License

Apache-2.0

Metadata

Release files for kfa 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kfa 0.2.0
File Size Uploaded Provenance Actions
kfa-0.2.0.tar.gz 10.8 MB Without provenance Details for kfa-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kfa 0.2.0
File Interpreter ABI Platform Actions
kfa-0.2.0-py3-none-any.whl Python 3 none any Details for kfa-0.2.0-py3-none-any.whl

Total release size: 21.6 MB

Release files / kfa-0.2.0.tar.gz

Download URL kfa-0.2.0.tar.gz
Size 10.8 MB
Tags Source
SHA-256 checksum
How to use checksums
c85fd577bbda4f9eb0653e8a8c64d62cebd046ef6097a6ca69eb4d9f237c0f9d
BLAKE2b-256 checksum
How to use checksums
64a598832f08c0b3000c819e18bfb0cf4eb6959c28df3247e1f829d2bc20478a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.8.1

Release files / kfa-0.2.0-py3-none-any.whl

Download URL kfa-0.2.0-py3-none-any.whl
Size 10.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
c06eea8e84140f7e2c0a4c026db5a84706eaf94890ac3840aded02c5477e771d
BLAKE2b-256 checksum
How to use checksums
3864c640f39466f4c27e03579258dba41bb610232e01703291704789492a65ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.8.1

Security for kfa 0.2.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page