Migration guide
Move a Hume speech-analysis workflow to Oruk
Replace an English speech-analysis step with one native Oruk request for a transcript, timed emotion/style scores and speaker turns. The table below separates current Hume v1 from legacy batch jobs. Both require parser and decision-rule changes; neither is a key-and-base-URL swap.
Product and pricing sources reviewed · Current v1 and legacy batch kept separate
Map the endpoint, then the response
| Your Hume route | Native Oruk route | What changes |
|---|---|---|
Current POST /v1/expression/audio/file | POST /v1/audio/analysisResonance 1 | Replace utterances/measurements with segments. Oruk also returns text and optional speakers. Hume times are milliseconds; Oruk times are seconds. Windows and scores are not equivalent. |
Legacy /v0/batch/jobs, status and predictions | Same native file request | Remove job polling. Save the synchronous result and your own request record. Replace nested prosody/grouped predictions with Oruk segments. |
Current WSS /v1/expression/audio/realtime | /v1/realtime for transcript/phrase events, or /v1/audio/resonance-2/stream for acoustic-range commits | Rebuild session handling. These Oruk previews use different events, timing, selection and completion rules; Resonance 2 needs model access. |
| Image/video, Hume run records, EVI/TTS or Audio Decisions | No equivalent route in this example | Preserve exports and account records. Evaluate a separate service for unsupported functionality; do not silently discard fields. |
Current Hume host: api.cloud.hume.ai, X-Hume-Api-Key header. Oruk host: speech-api.oruk.ai, bearer key. The candidate Oruk /compat/hume runtime is not enabled for hosted inference. Use the native route below. Sources: Hume v1 overview and Oruk API reference.
- Inputs and limits for this example
- English WAV, FLAC, MP3, M4A, OGG or WebM; up to 30 MB and 60 minutes. The sample is a 14.45-second WAV. Hume v1 instead requires mono 16 kHz PCM16 WAV/raw and a 25 MB request.
- Output and availability
- Stable Resonance 1: transcript, seconds-based segments and selected scores from 15 emotions / 16 styles. Plan/trial access is required. This example does not depend on Resonance 2 approval.
- Oruk price
- Hobby $9/month includes 250 speech minutes; extra minutes cost $0.020 within the shared spending cap. A 60-second analysis consumes one minute, including diarization. Separate additional requests consume usage again.
- Pricing assumptions
- Monthly subscription, full allowance, no other speech usage or tax. Trial has 25% of the allowance and no overage. Hume bills audio including silence with a 10-second minimum per billable run; no current numeric Hume price was verified.
Oruk plans and caps · Hume billing rules. An old saved response’s usage rate is not today’s subscription price.
Run the native replacement example
One English recording goes to POST /v1/audio/analysis with model=oruk-resonance and diarize=true. It returns transcript, timed segments, selected emotion/style scores and recording-local speaker labels. The script saves the full response and prints its first segment. This changes your parser; it does not emulate Hume JSON.
python3 -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
python -m pip install https://oruk.ai/sdk/oruk-0.2.15-py3-none-any.whl
curl --fail --location -o hume-to-oruk.py https://oruk.ai/examples/hume-to-oruk.py
curl --fail --location -o recording.wav https://oruk.ai/samples/conversations/02-grocery-prices.wav
curl --fail --location -o saved-analysis.json https://oruk.ai/examples/acquisition/hume-replacement.json
# No key or inference request: inspect the published response.
python hume-to-oruk.py --saved-response saved-analysis.json
# Set ORUK_API_KEY in your shell, then make one paid-plan/trial request.
python hume-to-oruk.py --audio recording.wav --output analysis.json"""Replace an English Hume file-analysis step with native Oruk analysis.
Python 3.10+. Install the pinned SDK in the accompanying guide for live mode.
Code: MIT. Sample audio and saved output retain their separate CC BY attribution.
"""
from __future__ import annotations
import argparse
import json
import os
import sys
from pathlib import Path
def excerpt(result: dict) -> dict:
if not isinstance(result, dict):
raise ValueError("Expected a JSON object")
if result.get("model") != "oruk-resonance" or result.get("task") != "analysis":
raise ValueError("Expected a Resonance 1 analysis response")
if not isinstance(result.get("segments"), list):
raise ValueError("Response is missing its segments array")
return {key: result[key] for key in ("model", "duration", "text")} | {
"segments": result["segments"][:1]
}
def main() -> int:
parser = argparse.ArgumentParser(description=__doc__)
source = parser.add_mutually_exclusive_group(required=True)
source.add_argument("--audio", type=Path, help="Submit one English recording")
source.add_argument("--saved-response", type=Path, help="Inspect saved JSON, without a key or network")
parser.add_argument("--output", type=Path, help="Save the full successful live response to a new file")
args = parser.parse_args()
try:
if args.saved_response:
if args.output:
raise ValueError("--output is for live mode; keep the original saved response")
if args.saved_response.stat().st_size > 16 * 1024 * 1024:
raise ValueError("Saved response exceeds this example's 16 MiB limit")
result = json.loads(args.saved_response.read_text(encoding="utf-8"))
else:
if not args.output or args.output.exists():
raise ValueError("Live mode requires --output pointing to a new file")
if not args.audio.is_file() or not 0 < args.audio.stat().st_size <= 30_000_000:
raise ValueError("Use a nonempty local audio file no larger than 30 MB")
key = os.environ.get("ORUK_API_KEY")
if not key:
raise ValueError("Set ORUK_API_KEY in your shell; never put it in this file")
import httpx
from oruk import Oruk, OrukAPIError
try:
with Oruk(api_key=key, max_retries=0, timeout=120) as client:
result = client.analyze(args.audio, model="oruk-resonance", diarize=True)
except OrukAPIError as error:
print(f"API request failed: HTTP {error.status}; code={error.code}; request_id={error.request_id}", file=sys.stderr)
print("Check key/access, plan usage or input format. No automatic retry was made.", file=sys.stderr)
return 1
except httpx.RequestError:
print("Transport failed; the server may have processed the request. Check usage before retrying.", file=sys.stderr)
return 1
# Preserve the entire response, including usage, before interpreting it.
with args.output.open("x", encoding="utf-8") as output:
json.dump(result, output, ensure_ascii=False, indent=2)
output.write("\n")
print(json.dumps(excerpt(result), ensure_ascii=False, indent=2))
return 0
except (OSError, ValueError, KeyError, TypeError, ImportError) as error:
print(f"Cannot complete this example: {error}", file=sys.stderr)
return 1
if __name__ == "__main__":
raise SystemExit(main())
The live command needs an active Oruk account, API access and available plan or trial usage. It uses no automatic retries. A timeout is an uncertain outcome; check usage before resending. Keep permanent keys on your server. Download the Python file.
Actual output from this Python example
{
"model": "oruk-resonance",
"duration": 14.45,
"text": "I'm sorry. The price of food has gone up so much. I mean... It really has. What what happened? I don't know. Like, honestly, I don't know what happened.",
"segments": [
{
"id": 0,
"text": "I'm sorry. The price of food has gone up so much. I mean...",
"start": 0.185,
"end": 4.325,
"tagged_text": "I'm sorry. The price of food has gone up so much. I mean... <|casual|> <|disappointed|>",
"words": [
{
"word": "I'm",
"start": 0.275,
"end": 0.675,
"confidence": null
},
{
"word": "sorry.",
"start": 0.675,
"end": 0.915,
"confidence": null
},
{
"word": "The",
"start": 1.075,
"end": 1.2349999999999999,
"confidence": null
},
{
"word": "price",
"start": 1.2349999999999999,
"end": 1.4749999999999999,
"confidence": null
},
{
"word": "of",
"start": 1.4749999999999999,
"end": 1.635,
"confidence": null
},
{
"word": "food",
"start": 1.635,
"end": 2.035,
"confidence": null
},
{
"word": "has",
"start": 2.035,
"end": 2.2750000000000004,
"confidence": null
},
{
"word": "gone",
"start": 2.2750000000000004,
"end": 2.7550000000000003,
"confidence": null
},
{
"word": "up",
"start": 2.7550000000000003,
"end": 3.075,
"confidence": null
},
{
"word": "so",
"start": 3.075,
"end": 3.395,
"confidence": null
},
{
"word": "much.",
"start": 3.395,
"end": 3.7150000000000003,
"confidence": null
},
{
"word": "I",
"start": 3.875,
"end": 4.035,
"confidence": null
},
{
"word": "mean...",
"start": 4.035,
"end": 4.115,
"confidence": null
}
],
"emotions": [
{
"label": "disappointed",
"score": 0.8679338097572327
}
],
"styles": [
{
"label": "casual",
"score": 0.8688268065452576
}
],
"speaker": "speaker_0"
}
]
}This exact script completed one live request on November 11, 2026 at 20:21:55 UTC using Python 3.12.13 and Oruk SDK 0.2.15. The 14.45-second grocery recording produced the response shown here, with no retries. Model revision is not exposed; future calls may differ. These are model annotations, not ground truth or a benchmark. Returned usage fields are preserved, not substituted for current subscription billing. Full saved JSON · Execution and file hashes · Open Yap 1K / The Agentic Data Company, CC BY 4.0.
The announced EVI and TTS cutoff has passed
The EVI/TTS notice reviewed October 3, 2026 announced that API access cutoff was November 13, 2026 at 12:01 a.m. EST (November 12, 2026 at 9:01 p.m. PST). Do not rely on Hume as a migration fallback.
The historical notice states that account data is permanently deleted after November 13, 2026. Use your own verified archive; do not assume Hume can recover missing data.
The notice URL now redirects to new documentation. This retains the October 3 announcement; it is not a fresh check of EVI/TTS availability.
This is a separate notice about EVI and TTS, not a new deadline for the legacy batch workflow below.
Original notice URL (now redirects)Correction retained from July 20, 2026. An earlier version incorrectly treated changes to the legacy API as the end of all Hume expression measurement. Hume’s product page at that review then described offline Tagger and real-time Prosody. Current Expression APIs use a different v1 contract; this guide keeps the legacy batch workflow separate.
Choose the output your application needs
The runnable example above uses English Resonance 1 with timed segments. Multilingual file analysis and acoustic-only analysis are available through different models. Changing a model ID can change the input limits, response shape and billing lifecycle.
Resonance 1
StableSynchronous file request
- Input
- English WAV, FLAC, MP3, M4A, OGG or WebM; up to 30 MB and 60 minutes.
- Output
- Transcript and timed segments with selected scores from 15 emotions and 16 speaking styles. Optional speaker labels are local to the recording.
- Interpretation
- Selected emotions use thresholds with a highest-score fallback; styles can be empty. Missing labels are not zero. Use /emotions or /affect without a transcript.
- Access
- Server-side bearer API key and available account usage.
Best starting point for an English legacy batch workflow that needs timed results. Validate the new vocabulary and decision rules.
Read the Resonance 1 contractSpectra-2
StableFile request or WebSocket upload, followed by finish
- Input
- Automatic transcription in 25 languages. Mono 16 kHz WAV, finalized FLAC, PCM16 or float32le; 45 ms–60 seconds, up to 4 MiB.
- Output
- Final transcript and all 15 emotion and 16 style scores for the whole recording. No timed segments, word timestamps, speaker labels or partial transcript.
- Interpretation
- Language coverage describes transcription support, not a guarantee of equal expression accuracy by language. Scores are independent and do not sum to one.
- Access
- Server-side bearer API key; account access and usage checks apply. Prepared browser connections use short-lived tickets issued by your server.
For short multilingual recordings. Streaming uploads audio as it arrives; analysis returns after finish. This is not the Realtime phrase-event protocol.
Read the Spectra-2 contractResonance 2
PreviewFile request or explicit sample-range WebSocket commits
- Input
- Files: 0.1–120 seconds, up to 30 MiB. WebSocket: mono 16 kHz float32le PCM.
- Output
- 31 category scores, 6 signed axes and 19 independent scores for each requested range. No transcript, diarization or model-generated timestamps.
- Interpretation
- Selected labels may be empty; no forced top label. Signed expression axes are not validated valence/arousal coordinates. Keep model and calibration revisions with results.
- Access
- Server-side bearer API key and approved organization model access; a paid plan alone does not grant approval.
For acoustic expression analysis beside your existing transcription/agent stack. Measure full request latency and validate language/domain performance.
Read the Resonance 2 contractRealtime
PreviewWebSocket transcript deltas and independent phrase events
- Input
- Mono 16 kHz PCM16; transcription in 32 locales. Sessions are limited to 10 minutes.
- Output
- Live transcript deltas and independently timed phrase emotion events. Read the variable-length label/score arrays; do not hard-code seven labels.
- Interpretation
- A phrase result can arrive after final text or fail independently. Join by request/turn/phrase identity. Locale support is not per-language emotion validation.
- Access
- Authenticated WebSocket handshake. Keep permanent keys server-side; do not put keys in URLs or public browser bundles.
For live transcripts with phrase-level signals. Its PCM format, events and turn lifecycle differ from Resonance 2 and Spectra-2.
Read the Realtime contractThese routes use existing Oruk account access and shared speech-understanding plan minutes. Check entitlement before sending customer audio. Usage receipts are not a final invoice; overlapping Resonance 2 commits are separate analyses and can consume minutes separately.
What this migration does not supply
- Hume-compatible scores, thresholds or legacy/current expression taxonomies
- EVI session, tool, voice or audio-generation compatibility
- First-party text-to-speech or automatic voice portability
- Face/image analysis, text sentiment or a dedicated vocal-burst API
If you are replacing a voice agent, start with the EVI planning guide. To assess your requirements, use the migration hub.
A dimension inventory, with the gaps visible
The versioned inventory covers the 48 dimensions in Hume’s legacy EVI chat-event example: 20 have candidates for investigation and 28 remain unmapped. Zero mappings are validated. Candidate names are hypotheses; the file supplies no conversion formula, score equivalence or missing-as-zero values.
Before comparing measurements, establish recording and annotation permissions, the selected model and revision, an annotation protocol and a separate held-out evaluation set. Preserve unmeasured outputs and uncertainty. This inventory describes legacy EVI dimensions; it is not a map of current Hume Expression API vocabularies.
For a research project, describe the study and required measurements. Data access, capacity, model-version support and any academic allowance need confirmation before processing. No free-minute entitlement or response-time commitment is offered on this page.
Review label meaning before changing rules
The legacy Hume prosody output exposed 48 dimensions. The Resonance 1 example scores 15 emotion labels and 16 speaking styles, then returns selected labels. These names are useful starting points for a review; they are not a conversion table for scores or thresholds.
| Legacy Hume name | oruk candidate to review |
|---|---|
| Anger | angry |
| Sadness | sad |
| Fear | scared |
| Disgust | disgusted |
| Excitement | excited |
| Joy | happy |
| Disappointment | disappointed |
| Relief | relieved |
Do not turn Calmness into neutral, or Interest into energetic, simply because those labels seem related. Dimensions such as awe, nostalgia, or craving have no direct Oruk equivalent. Keep them explicitly unsupported in your application unless you build and validate a separate feature.
In this Resonance 1 response, a missing label is not a zero score. An emotion can also be returned as the highest-score fallback when no label passes its threshold. Speaking styles have no fallback and may be empty. The label and score reference defines the model-specific behavior. Resonance 2 does not force a top label; Spectra-2 returns every recording-level score.
Compare saved responses by time
Keep your archived legacy batch predictions as hume-predictions.json and the Oruk response above as analysis.json. The command below assumes you have checked that both use the same untrimmed recording and time origin. The local tool finds overlapping intervals and saves a JSON report. It requires Python 3.10+ and no additional packages, API key, or uploads.
curl --fail --location -o compare-legacy-hume.py \
https://oruk.ai/examples/compare-legacy-hume.py
python3 compare-legacy-hume.py \
--hume hume-predictions.json --oruk analysis.json \
--output migration-review.jsonUse the JSON array saved by the legacy job.download_predictions method, containing results.predictions[].models.prosody.grouped_predictions. If the export contains several sources, add --source-index 0 to select the first; a source with several files also requires --file-index. Choose the entries for your recording. Current v1 measurements, EVI messages, and streaming payloads use different contracts and are outside this tool’s scope.
- Read the matching intervals
- Each
alignmententry points from an Oruk segment to every Hume interval with positive time overlap. For example, an interval from 4–6 seconds overlaps both 3–5 and 5–7 seconds by one second each. Intervals that only touch at an endpoint do not match. Overlap alone does not mean the same speaker or emotion was detected. - Keep the original evidence
- The report includes the selected Hume source, complete Oruk response, original group and prediction indices, and hashes of the two input JSON files. It preserves scores and empty arrays. It does not rename labels, fill missing scores with zero, average overlapping predictions, or infer whether Oruk used a fallback.
- Review what did not match
- Unmatched intervals remain listed on both sides, including zero-duration intervals. A failed Hume source or missing prosody result stays visible with a note. Malformed timestamps and invalid scores stop the comparison; existing output files are never overwritten.
For an explicit local recording check, add --audio and --manifest using the comparison operator guide. The manifest binds recording and response hashes, the selected Hume entry, and each declared time origin. These checks do not prove which audio the providers processed or verify the declared alignment. Observed native labels remain unmapped, including shared names; unsupported Hume modalities and unhandled fields stay visible. The report contains your transcript and returned labels, so store it with the recording’s access permissions. This is an inspection aid, not an accuracy score or a measurement of current Hume products.
Format reference: Hume’s versioned batch response types. Download the standalone Python tool. Download the manifest template.
Validate the migration on the same recordings
- 1. Freeze the inputs. Keep the same untrimmed audio, source hash, permitted-use record, and original responses. Exclude development speakers from the final evaluation.
- 2. Preserve each response’s timing. Compare overlapping intervals. Do not attach labels by array position, reuse a score for every word, or treat a speaker label as a permanent identity.
- 3. Review the application’s actual decisions. Measure precision, recall, and missed events for the labels you use. Tune thresholds on development audio and report the untouched evaluation separately.
- 4. Keep failed and unscored cases visible. Track decode failures, timeouts, rate limits, empty style arrays, and weak fallback emotions. Dropping difficult recordings makes the migration look more reliable than it is.
- 5. Check the full user experience. Verify request handling, response parsing, account usage, and how a person reviews an uncertain result before changing a production rule.
The local call-review example lets you replay each returned interval beside its transcript and scores. The evaluation guide explains how to measure the results. Neither replaces a study on your own workload.
Where the products differ
Hume’s current audio measurements separate expressions from voice attributes. Oruk’s Resonance 1 file API provides a different, selected vocabulary for English speech. Oruk does not replace facial expression measurement, a vocal-burst taxonomy, or text sentiment analysis. Review the current capabilities of both products against your requirements.
The legacy Hume benchmark row on this site is not an evaluation of today’s Expression APIs. The historical Oruk checkpoint score also does not establish the current endpoint’s accuracy on your audio. Dates, datasets, and comparison limits are in the methodology.
Migration questions
- Does this cover current and legacy Hume endpoints?
- The endpoint table distinguishes current Expression Measurement v1 from the older HumeBatchClient upload-and-poll workflow. The saved-response comparison tool accepts legacy batch predictions only. It does not accept current v1 measurements, EVI events or Audio Decisions output.
- Is oruk a drop-in replacement?
- No. The request lifecycle, output vocabulary, selection thresholds, and interval boundaries differ. You can replace a legacy batch upload and polling loop with one synchronous request, but the application still needs to validate the new response and decision rules.
- Can I transfer Hume score thresholds?
- No. Similar label names do not make scores comparable. The Resonance 1 example here returns threshold-selected emotions with a highest-score fallback; styles may be empty. Missing labels have no returned raw score. Spectra-2 and Resonance 2 have different output/selection contracts. Validate thresholds for your chosen model on representative annotated audio.
- What does it cost?
- Oruk plans start at $9/month for 250 audio minutes. Each audio minute uses one plan minute for emotion or unified analysis. Standard self-serve trials last 7 days and require a card. Hume’s current billing documentation uses media seconds with a 10-second minimum per billable run. No current numeric tariff was verified, so request a quote rather than reuse a legacy rate.
Current product claims were checked against Hume’s Expression Measurement documentation on November 11, 2026. Oruk is not affiliated with Hume AI. Report a factual issue to access@oruk.ai.
Start with the saved recording
Run the Python exampleStill choosing a service? Compare current product contracts. Replacing a full agent? Use the EVI planning guide.