Skip to content

About

Runnable Oruk speech API examples: transcription, browser dictation, diarization, emotion recognition, and Hume migration.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Oruk speech API examples

Small, runnable integrations for Oruk's hosted speech API. Python 3.10+ for file examples; Node.js 22+ for the browser demo. API documentation · Current plans and allowances.

Integration Run instructions Canonical guide
Fourier 2B English transcription (oruk-fourier-2b) Fourier 2B recipe Models & pricing · Benchmarks
Python transcription (Orukeet) Python recipe Orukeet Python transcription
Transcription with diarization Speaker recipe Orukeet speaker diarization
Browser dictation Browser recipe Orukeet browser dictation
Speech emotion recognition Emotion recipe Speech emotion recognition API
Hume file-analysis migration Migration recipe Hume migration guide

For highest-accuracy English batch transcription, use oruk-fourier-2b (Fourier 2B recipe; $0.0080/min, up to 30 MiB / 60 min; live #7/68 overall and #1 single-model open-weights on the HF Open ASR Leaderboard v1.16.3, 4.95% 7-split public English mean WER vs. 5.75% base Qwen/Qwen3-ASR-1.7B-hf, 10.92% Open ASR Long-Form, #1/16 GigaSpeechBench English Accents & Vertical-Domain, 6.33% #2/35 AudioBench, 8.57% #4/43 Omi Medical). For low-cost short-clip transcription or diarization, start with the Orukeet hosted model and API quickstart. For vocal delivery, read what paralinguistics measures, listen to the voice emotion analyzer, or integrate the speech emotion recognition API.

Use the speech API with a coding agent

Connect Claude Code to the hosted Oruk MCP server:

claude mcp add --transport http oruk https://oruk.ai/mcp

Call oruk_list_models to read the catalog without an API key. For a short audio test, oruk_create_trial_key can issue a temporary key for three requests in 30 minutes, subject to the shared trial budget. Keep permanent API keys in server-side configuration. Client setup and tool permissions.

For hosted API recipes, give your coding agent the Context7 library ID /oruk-ai/speech-api-examples. Browse the indexed examples on Context7.

For local transcription with the downloadable Orukeet model, use the separate Context7 library ID /oruk-ai/orukeet. Local setup guide · Orukeet on Context7.

Install and get the sample

Run commands from this repository's root:

git clone https://github.com/Oruk-AI/speech-api-examples.git
cd speech-api-examples
python3 -m venv .venv
source .venv/bin/activate
python -m pip install https://oruk.ai/sdk/oruk-0.2.15-py3-none-any.whl
mkdir -p samples results
curl --fail --location -o samples/grocery.wav https://oruk.ai/samples/conversations/02-grocery-prices.wav
python -c "import hashlib,pathlib; p=pathlib.Path('samples/grocery.wav'); assert p.stat().st_size == 1387244; assert hashlib.sha256(p.read_bytes()).hexdigest() == '72b99dab1f5670436f542ec41269d9e41a6bd5367b74a6d36427ca846a421a99'; print('Sample verified')"

On Windows activate .venv\Scripts\activate. The versioned wheel installs the hosted client oruk==0.2.15; it is separate from the downloadable Orukeet model/runtime. The browser demo needs no npm packages and downloads and verifies this same sample itself.

The 14.45-second recording is from Open Yap 1K, The Agentic Data Company (2026), licensed under CC BY 4.0, excerpted and downmixed by Oruk. Original dataset · Full attribution. Preserve that notice with redistributed audio and transcript-derived results. The creators do not endorse Oruk or these outputs. Audio is downloaded rather than bundled here.

Authentication and cost

Set ORUK_API_KEY in your environment using your normal secret-management method. Keep the key on your local machine or backend, never in a browser script, committed file, command-line argument or shared output. This package reads the environment directly; it does not load .env files. Create a key at API keys.

Live calls require eligible API access and an active trial, subscription allowance or existing credit entitlement. A subscription is required for new ongoing API usage. Fourier 2B (oruk-fourier-2b) is $0.0080 per audio minute ($0.48/hour, billed per audio second, 1 s minimum) from the shared speech-understanding allowance. Orukeet base transcription is $0.027 per audio hour, with its own subscription allowance; diarization adds $0.004 per minute from that allowance. Resonance 1 also uses the speech-understanding allowance. Check current prices, caps and trial terms before submitting audio. These are metered requests, including sample submissions.

You can inspect the Hume migration response without an API key, SDK install or network request:

python3 examples/hume-to-oruk.py --saved-response examples/acquisition/hume-replacement.json

Actual saved outputs

All four JSON files in examples/acquisition preserve actual responses captured on November 11, 2026 (UTC). Their adjacent provenance records contain endpoint, request options, timestamps and sample/response SHA-256 values. The transcription, diarization and emotion captures were direct multipart Node.js HTTP requests, not Python captures. The Hume replacement capture came from the exact included Python script using Python 3.12.13 and SDK 0.2.15. Do not describe these as a browser microphone validation or a comparative quality benchmark.

The captures used an existing legacy prepaid demonstration account. Returned usage, reference rates and estimated costs remain unchanged; they are not subscription invoice totals. New requests can return different IDs, timings, transcripts and scores. A response does not expose an immutable model revision. Scores are acoustic model annotations, not facts about a speaker's private feelings; validate on your own representative data.

Errors and production integration

All examples disable automatic inference retries. File recipes reject missing/oversized inputs. Fourier 2B (oruk-fourier-2b) accepts English audio (en, en-US, en-GB) up to 30 MiB and 60 minutes (3,600 s) per request via server-side chunking; the Python example reserves 64 KiB of the 30 MiB cap for multipart overhead. Orukeet requires short English audio: at most 60 seconds and 4 MiB for the whole multipart request; the Python example reserves 64 KiB of that limit for request overhead. Resonance 1 accepts supported English recordings up to 30 MB and 60 minutes. The browser demo caps recordings at 55 seconds and 3 MiB.

For 401/403, fix authentication or access; for usage/budget failures, check your account; for 413/415, correct the input. On 429/5xx, follow the production retry guide. After a timeout or disconnect, the server may have processed the request: preserve the request ID where present and check Usage before deciding whether to send again. Trace IDs are not a general idempotency guarantee.

The browser server binds only 127.0.0.1:8787, verifies Host/Origin, permits one request at a time, and keeps the API key server-side. It is a local demo. Before any public deployment, add your own authenticated users, quotas, storage controls and abuse protection.

Licensing

Example code and authored guides are MIT licensed. The recording and source-derived transcript material retain their separate CC BY 4.0 attribution; the MIT license does not replace it. SDK dependencies retain their own licenses. No model weights are included.

About

Runnable Oruk speech API examples: transcription, browser dictation, diarization, emotion recognition, and Hume migration.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors