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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: loqalkit-1.6.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7402ddbece9d924a30937c2229fa4df4f1305e96cc3dbd42f53ee674aef7424a
MD5 7388630f1902ddf0fd5aae65446ef47c
BLAKE2b-256 29d6a271f1d92802b275f9c9e53e6e3e53ae2c4f2a596c292318a2f64522cd7f

See more details on using hashes here.

Provenance

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