Oruk Emotion API
Speech Emotion Recognition API
Oruk estimates emotion and speaking style from how a recording sounds. Use it to annotate speech, review calls, or add vocal context to an existing transcript. Start with stable Resonance 1 for English emotion labels and timed segments; Resonance 2 is a separate preview with approval required for new organizations.
Plans from $9/month with included minutes. Updated .
What does it detect?
Send audio, even if you already have the words. These outputs describe perceived vocal expression, not a speaker's private feelings. Scores are not probabilities of feelings and do not establish intent, truthfulness, or a diagnosis.
| Model and access | Inputs and limits | Outputs |
|---|---|---|
| Resonance 1 / FourierStable · generally available | English audio; WAV, FLAC, MP3, M4A, OGG, WebM. Up to 30 MB / 60 minutes. | Selected scores from 15 emotion labels, plus timed segments. Emotion-only requests omit transcript text. Unified analysis adds words and 16 speaking styles; Resonance 1 also supports speaker labels. |
| Spectra-2Stable · generally available | 25 transcription languages; mono 16 kHz WAV, finalized FLAC, or supported raw PCM. 45 ms–60 seconds; 4 MiB. | Transcript and all 15 emotion / 16 style scores for the whole recording. These scores do not locate changes within the clip. |
| Resonance 2Preview · new organizations need approval | WAV, FLAC, MP3, M4A, OGG, WebM. 0.1–120 seconds; 30 MiB. No language parameter; cross-language accuracy is not established. | All 31 continuous emotion/style scores, six signed axes and selected labels (possibly empty). No transcript, word timings, or speaker labels. |
Need live words? Realtime Preview streams transcript tokens in 32 locales and separate phrase-emotion events. It has a different WebSocket protocol. Keep Whisper and add emotion analysis if you already have transcription.
For a live Python voice pipeline, run the Pipecat transcription and emotion example. Migrating an expression service? Use the Hume endpoint and output mapping or compare Oruk with Behavioral Signals.
What does it cost?
One audio minute uses one shared speech understanding minute for the models above. Resonance 2 has the same subscription pricing as Resonance 1; approval is separate from billing. These are monthly USD prices, before taxes.
| Plan | Subscription | Included min/month | Extra audio minute |
|---|---|---|---|
| Hobby | $9/month | 250 | $0.020 |
| Builder | $49/month | 2,500 | $0.015 |
| Production | $199/month | 20,000 | $0.012 |
The allowance is shared with your other speech understanding calls, resets monthly, and does not roll over. Usage is measured by the second with a one-second minimum. Extra usage shares your account spending cap with Orukeet; requests pause when the allowance and permitted overage are exhausted. A 7-day trial requires a card, includes 25% of the monthly allowance, and permits no overage. It renews at the selected plan price unless canceled before the trial ends. See annual pricing, caps and Enterprise terms.
How do I integrate it?
Run this complete Python 3.10+ example on your backend. It sends one English recording to /v1/audio/emotions with model=oruk-resonance, prints the JSON on success, and exits nonzero on failure. Create a key in your account and set ORUK_API_KEY in your shell; never put it in browser code.
python3 -m venv .venv
# macOS / Linux. On Windows: .venv\Scripts\activate
source .venv/bin/activate
python -m pip install https://oruk.ai/sdk/oruk-0.2.15-py3-none-any.whl
curl --fail --location -o recording.wav https://oruk.ai/samples/conversations/02-grocery-prices.wav
curl --fail --location -o emotion-api.py https://oruk.ai/examples/emotion-api.py
# Set ORUK_API_KEY in your environment, then:
python emotion-api.py recording.wav > emotions.jsonThe sample is a 14.45-second grocery conversation from Open Yap 1K, The Agentic Data Company (2026), CC BY 4.0; Oruk excerpted and downmixed it. Attribution. Sample SHA-256: 72b99dab1f5670436f542ec41269d9e41a6bd5367b74a6d36427ca846a421a99.
#!/usr/bin/env python3
"""Send one English recording to Oruk Resonance 1 and print its actual JSON.
Python 3.10+. Install the current SDK from https://oruk.ai/docs/sdks.
Set ORUK_API_KEY, then run: python emotion-api.py recording.wav
No automatic retry is made. Keep the printed request ID after a transport error.
"""
import argparse
import json
import os
from pathlib import Path
import sys
import uuid
import httpx
from oruk import Oruk, OrukAPIError
def main() -> int:
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("file", type=Path)
parser.add_argument("--request-id", default=None, help="Optional trace ID for investigation; not an idempotency guarantee")
args = parser.parse_args()
key = os.environ.get("ORUK_API_KEY")
if not key:
parser.error("Set ORUK_API_KEY in the environment; do not put it in source.")
if not args.file.is_file() or not 0 < args.file.stat().st_size <= 30_000_000:
parser.error("Provide a nonempty supported English audio file no larger than 30 MB.")
request_id = args.request_id or str(uuid.uuid4())
print(f"Request ID: {request_id}", file=sys.stderr)
try:
with Oruk(api_key=key, max_retries=0, timeout=120) as client:
result = client.emotions(
args.file, model="oruk-resonance", request_id=request_id,
)
except OrukAPIError as error:
print(json.dumps({"status": error.status, "code": error.code,
"request_id": error.request_id or request_id}), file=sys.stderr)
print("Check your key, active trial or plan, and allowance. For 429/5xx, follow the production retry guide; this script did not retry.", file=sys.stderr)
return 1
except httpx.RequestError:
print("Transport failed; completion is uncertain. Keep the request ID and check Usage before deciding whether to resend. A trace ID is not an idempotency guarantee.", file=sys.stderr)
return 1
except (OSError, ValueError):
print("Could not read the recording or parse a valid response; no credentials are printed.", file=sys.stderr)
return 1
print(json.dumps(result, indent=2, ensure_ascii=False))
return 0
if __name__ == "__main__":
raise SystemExit(main())
This example disables automatic retries. A network failure can leave completion uncertain; keep the printed request ID and check Usage before deciding whether to resend. A trace ID does not guarantee idempotent replay.Retry and error handling.
Actual JSON response for this recording
Captured from the public HTTP endpoint on , using the same recording, model and task as the Python example. The full response is shown below; request IDs and scores may differ on another run. This capture used Oruk's legacy prepaid demo account: its usage rate and estimated cost are recorded reference values, not a subscription invoice. Use the plan table above for current subscription costs.
{
"id": "speech_b7853db68f464d05b7669a65802488b2",
"object": "speech.result",
"task": "emotion",
"model": "oruk-resonance",
"text": null,
"tagged_text": null,
"language": null,
"duration": 14.45,
"emotions": [
{
"label": "frustrated",
"score": 0.9845753908157349
},
{
"label": "angry",
"score": 0.873214840888977
},
{
"label": "disappointed",
"score": 0.8679338097572327
}
],
"styles": [],
"segments": [
{
"id": 0,
"text": null,
"start": 0,
"end": 14.45,
"tagged_text": null,
"words": [],
"emotions": [
{
"label": "frustrated",
"score": 0.9845753908157349
},
{
"label": "angry",
"score": 0.873214840888977
},
{
"label": "disappointed",
"score": 0.8679338097572327
}
],
"styles": [],
"speaker": null
}
],
"usage": {
"audio_seconds": 14.45,
"billable_seconds": 14.45,
"rate_per_minute_usd": "0.0080",
"estimated_cost_usd": "0.001927",
"pricing_version": "2026-07-11",
"billing_unit": "audio_second",
"rate_per_request_usd": null
},
"diarized": false,
"speakers": []
}Download the response · Request and sample provenance · Download the Python program. The text and speaker fields are null because this request asked for emotion only. Use unified analysis when you also need words and supported speaker labels.
Published benchmark, with its limits
The September 17 Resonance-2 run classified 337 of 546 CREMA-D recordings correctly (61.7%). All 170 empty or out-of-taxonomy answers count as errors. This fixed-sentence acted diagnostic has unaudited training overlap; it does not establish independent accuracy on conversations. Read the recorded results, replay instructions and limitations or inspect all predictions.
Our September 7, 2026 run sent 546 CREMA-D recordings through oruk-fourier and recorded 55.7% accuracy and 0.542 macro F1 on a six-class task. This is acted speech; training overlap has not been audited. It is a dated Fourier result, not a current Resonance accuracy estimate. Replay the saved responses and inspect the errors.
Use speaker-independent examples from your domain, including silence, noise, accents, and overlapping speech. Review per-label precision and recall, missed events, and confidence calibration. A public score for the historical Resonance checkpoint does not establish the accuracy of the current Resonance endpoint.
On the original Resonance and Fourier file endpoints, a returned emotion either passed its model-specific threshold or was the highest-scoring fallback when none passed. Spectra-2 returns all 15 emotion and 16 speaking-style scores for the whole recording. Resonance-2 never forces a top label: its selected labels can be empty, while all 31 continuous scores are returned. Scores describe perceived vocal expression, not probabilities of a speaker’s feelings. Validate them on your speakers and recording conditions before setting application rules.
Continuous scores with Resonance-2
Resonance-2 Preview returns all 31 emotion and speaking-style scores: six opposite pairs share signed axes, and 19 labels have independent scores. POST /v1/audio/resonance-2 with a 0.1–120-second clip, up to 30 MiB. This file request returns one clip-level result without a transcript, word timings, speaker labels, or streaming events.
Its selected labels list can be empty. The f1 and precision regimes change label thresholds; continuous scores stay the same. Save model_revision and calibration_revisionwith each result. Scores describe perceived expression, not a speaker's private feelings.
To send audio while recording, use the Resonance-2 WebSocket API. Explicit commits score a buffered sample range using the same response format as file requests. Use Realtime when you also need live transcript tokens.
Existing accounts keep access. New organizations need Resonance-2 approval, separate from plan activation. Request it in Model access. Until approved, inference returns 403 with model_access_required. After approval, use your existing API key and shared speech allowance. The public demo is available without approval.
Read the HTTP response reference or listen to six real API examples, including the model's mistakes.
The original endpoint’s 15 emotion labels
On /v1/audio/emotions, every label is scored. Labels crossing model-specific thresholds are selected; if none cross, the highest-scoring label is returned as a fallback so responses are never empty. Missing labels were not selected; their absence does not reveal their raw scores.
Select a label to explore.
Integration details and limitations
- Input
- Send audio, not a text transcript. The original Resonance and Fourier file endpoints accept English recordings. Spectra-2 supports transcription in 25 languages alongside clip-level emotion and style scores. Resonance-2 at /v1/audio/resonance-2 analyzes clips without a language-code parameter; accuracy across languages is not established.
- Realtime preview
- The separate Realtime preview streams transcription in 32 locales with automatic language detection and phrase-level emotion scores. Resonance 2 returns 15 emotion and 16 speaking-style scores for explicit WebSocket commits or file requests, without transcription or timestamps. Original unified analysis uses the English file endpoints.
- File limits and formats
- The original Resonance and Fourier file endpoints accept up to 30 MB and 60 minutes per file. Resonance-2 accepts 0.1–120 seconds and up to 30 MiB per clip. Those endpoints accept WAV, FLAC, MP3, M4A, OGG, and WebM. Spectra-2 accepts mono 16 kHz WAV, finalized FLAC, or supported raw PCM, from 45 ms to 60 seconds and up to 4 MiB.
- Request behavior
- File endpoints return a synchronous JSON response with measured audio duration. Realtime uses WebSocket events for live tokens and phrase-level emotion. Resonance 2 WebSocket commits return expression scores for a buffered sample range.
- Pricing
- Monthly plans start at $9. Resonance, Fourier, Realtime, and Proficiency share one audio-minute allowance. Orukeet has a separate allowance; its optional tasks use that allowance at their listed rates. The other-model allowance ranges from 250 minutes on Hobby to 20,000 on Production. Extra usage follows each allowance's published rates. Self-serve plans start with a 7-day free trial. Contact us for Enterprise pricing. Details on the pricing page.
- Data retention and training
- Request audio is discarded after processing; Resonance 2 streams also buffer audio in memory until reset or session closure. Resonance 2 result payloads, without raw audio, are stored for durable settlement and same-ID replay. Authorized replay is available for 24 hours; this is not a physical-deletion deadline. Optional speaker diarization retains uploaded audio for up to 48 hours and speaker-label results for up to 24 hours. Oruk does not use customer audio or outputs to train, fine-tune, or evaluate models without your explicit written agreement.
- What scores are — and are not
- On the original Resonance and Fourier file endpoints, a returned emotion either passed its model-specific threshold or was the highest-scoring fallback when none passed. Spectra-2 returns all 15 emotion and 16 speaking-style scores for the whole recording. Resonance-2 never forces a top label: its selected labels can be empty, while all 31 continuous scores are returned. Scores describe perceived vocal expression, not probabilities of a speaker’s feelings. Validate them on your speakers and recording conditions before setting application rules.
- Model and version stability
- Spectra-2 and the original Resonance and Fourier models are stable. Resonance-2 is preview; Realtime and Proficiency 1 are in preview. Save Resonance-2 model_revision and calibration_revision with its result. Changes are announced on the Oruk changelog.
- Support
- Email access@oruk.ai; the production guide covers retries, limits, and error handling.
Try the same model on your recording.
Use Resonance 1 in the playground, then keep the Python example when you move the request into your backend.
Try Resonance 1