Skip to main content

Unified language SDK — detection, transcription, romanization, translation, TTS routing

Project description

LoqalKit

Unified language SDK — detection, transcription, romanization, translation, and TTS routing.

LoqalKit is the client library for the Loqal language platform. It gives you one consistent API across language detection, speech-to-text, romanization, translation, and text-to-speech, and routes each request to the right engine for the target language.

Install

pip install loqalkit

Optional extras:

pip install "loqalkit[vad]"        # voice-activity gating + segment timestamp refinement
pip install "loqalkit[localize]"   # OOXML document localization
pip install "loqalkit[serve]"      # run the bundled HTTP service

vad is strongly recommended for server use. Without it the voice-activity gate is skipped and the transcription model is fed silence and noise, which it will readily hallucinate whole languages over. Transcription still works without the extra — it is simply less accurate.

Authentication

LoqalKit routes model calls through the Loqal platform, which requires a key. The library raises on first use without one — it performs no useful work standalone.

export MANABU_APP_SECRET="..."

Keys are issued from the Loqal dashboard. Contact support@loqal.digital for access.

Usage

from pathlib import Path

from loqalkit import (
    detect_language_from_text,
    romanize_batch,
    transcribe,
)

result = transcribe(Path("meeting.wav"), language="he", diarize=True)

detected = detect_language_from_text(result["text"])

roman = romanize_batch(["こんにちは", "ありがとう"], lang_code="ja")

romanize_batch returns a list aligned 1:1 with its input, using None for entries the model did not romanize, so callers can fall back to untransliterated display. It never raises.

Supported Python

Python 3.11 and newer.

License

Proprietary — see LICENSE. Third-party components are listed in THIRD_PARTY_NOTICES.md.

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

loqalkit-1.6.4.tar.gz (2.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

loqalkit-1.6.4-py3-none-any.whl (2.1 MB view details)

Uploaded Python 3

File details

Details for the file loqalkit-1.6.4.tar.gz.

File metadata

  • Download URL: loqalkit-1.6.4.tar.gz
  • Upload date:
  • Size: 2.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for loqalkit-1.6.4.tar.gz
Algorithm Hash digest
SHA256 20bb45a3354cf6975a480103158b84571291a279887c890ed8fac54f65bee818
MD5 c1175bfcf933d4cb2f993415606c79c3
BLAKE2b-256 ed8f9aeaf2cb0f018ab049601289d61ff85d0b69387ffc0045aa596fdd67d2a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for loqalkit-1.6.4.tar.gz:

Publisher: publish.yml on SoratoGroup/loqalkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file loqalkit-1.6.4-py3-none-any.whl.

File metadata

  • Download URL: loqalkit-1.6.4-py3-none-any.whl
  • Upload date:
  • Size: 2.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for loqalkit-1.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 80dd871fed2f2fc350e6355058696529b380f3e78a127df4fb658cf0ac8c17c2
MD5 0b1ff5c90b66b6cba315c5bcad337307
BLAKE2b-256 daf89ab3fcb0586ec6b1c3dda19a83c597eedb1ae7a19c941a7135e1703e74bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for loqalkit-1.6.4-py3-none-any.whl:

Publisher: publish.yml on SoratoGroup/loqalkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page