Skip to main content

Official Python client for the oruk Speech API: English transcription, calibrated multilabel emotion and speaking-style labels, and unified audio analysis.

Project description

oruk — Python client for the oruk Speech API

Official Python SDK for oruk, the speech lab building audio models for English transcription, calibrated multilabel emotion detection, speaking-style classification, and unified audio analysis.

The API is file-based: send a prerecorded English audio file (WAV, FLAC, MP3, M4A, OGG, or WebM; up to 30 MB / 60 minutes), get structured results back. Usage is metered per second of audio.

Install

pip install oruk

Quickstart

Create an account at oruk.ai ($5 trial credit, no card required) and create an API key in the developer portal.

import os
from oruk import Oruk

with Oruk(api_key=os.environ["ORUK_API_KEY"]) as client:
    result = client.analyze("sample.wav", model="oruk-resonance")

print(result["text"])       # English transcript
print(result["emotions"])   # calibrated multilabel emotion scores
print(result["styles"])     # calibrated multilabel speaking-style scores

Endpoints

Method API endpoint Returns
client.transcribe(file) POST /v1/audio/transcriptions English transcript
client.emotions(file) POST /v1/audio/emotions 15 calibrated emotion labels
client.styles(file) POST /v1/audio/styles 16 calibrated speaking-style labels
client.affect(file) POST /v1/audio/affect emotion + style, no transcript
client.analyze(file) POST /v1/audio/analysis transcript, labels, segments, tagged text

Every method accepts a path, Path, or binary file object, plus optional model= (oruk-resonance, oruk-spectra-1) and request_id= arguments.

The client sends a unique request ID per call and retries only 429 and transient 5xx responses with jittered backoff. Errors raise OrukAPIError with status, code, and request_id attributes.

Links

License

MIT

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

oruk-0.1.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

oruk-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file oruk-0.1.0.tar.gz.

File metadata

  • Download URL: oruk-0.1.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for oruk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ae64d38314d91876ae2da28c6ed13887f4dadce9abf2d23bece340b7569bb738
MD5 5281b1ee1bc62d9e570374602f01005f
BLAKE2b-256 0e20f10f552c95ed6af3679e93e17f26e4413119e57780df3781f987cfb4a9e8

See more details on using hashes here.

File details

Details for the file oruk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: oruk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for oruk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2d17df3e64efa62baed5e66f9c83c0dd63a84eb4c20b54069fc72532b0cfadf5
MD5 754aaa00575d82a850203b75335bc99c
BLAKE2b-256 9744421b650180a98850b45435605b77be5446d2629fecb8960b51ae578217ed

See more details on using hashes here.

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