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.3.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.3-py3-none-any.whl (2.1 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: loqalkit-1.6.3.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.3.tar.gz
Algorithm Hash digest
SHA256 46e9d7fe3db81cb5dd15382c37d4243c72666bb467a307f606d3eba2c3c71090
MD5 765bb52a3266d2566b0a1bc6f73071d9
BLAKE2b-256 f165ccc735de632a56d129bc422cea74b8a2548afcf19421baba5c18beea717d

See more details on using hashes here.

Provenance

The following attestation bundles were made for loqalkit-1.6.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: loqalkit-1.6.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 dbe96828a32875721c537574cf36b3ff2449cb2db72ddc57e090d4346fddf677
MD5 1bda1bba19474656b32708b1deed2d22
BLAKE2b-256 def4751647a3b66e9a72ee11184116b162a53b13df0833c0425ebca8c3340f71

See more details on using hashes here.

Provenance

The following attestation bundles were made for loqalkit-1.6.3-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