Proposed first-party architecture

Inside the Ovoz voice stack.

Explore how Ovoz would build and operate its own voice platform, from number assignment and streaming models to the saved follow-up.

Explore a voice turn
Voice turn overviewIllustrative
Receive Reason Respond
600 msFirst audio · p50 target
1,100 msFirst audio · p95 target
150 msPlayback stop · p95 target

Architecture

From Studio to the telephone.

The control plane admits and tracks calls. A regional media plane keeps the audio loop running. Both use the same Ovoz call ID and the configuration saved when the call was accepted.

  1. Workspace & control

    Studio · Call API · Routing policy

    Verify the caller’s workspace and permissions, reserve usage, and pin the assistant instructions, voice version, and route in an immutable call snapshot.

  2. Telephony & media

    Number registry · SIP edge · Media gateway

    Resolve the number, establish the session, normalize audio, and hand each media leg to the regional turn worker that owns the call.

  3. Speech & reasoning

    Endpointing · Recognition · Dialogue · Synthesis

    Decode speech as it arrives, apply the conversation policy, and synthesize the first approved clause while the rest of the response is being generated.

  4. Events & outcomes

    Call ledger · Transcript · Follow-up

    Deduplicate call events, reconcile reserved time with connected time, and assemble an evidence-linked outcome for the workspace.

Example call snapshot
{
  "call_id": "call_example",
  "locale": "ko-KR",
  "voice_version": "ko-neutral@1",
  "route": "phone-primary",
  "recording_policy": "off"
}

Telephony

Ownership starts at the number.

Ovoz would own the number inventory, assignment rules, session control, and media processing. Ovoz extensions route directly to another workspace or assistant. Public numbers use the public telephone network, with the Ovoz telephony edge as the signaling and media boundary.

Number inventory

Store public numbers in E.164 form and keep private extensions in a separate namespace. Bind each number to one workspace, region, lifecycle state, and allowed direction. Only active, authorized identities can appear as outbound caller ID.

Routing policy

Inbound calls resolve the dialed number to a workspace, then apply its hours and assistant policy. Outbound calls validate caller identity and destination before selecting a region and eligible route. Fail over pre-answer only when the original attempt is confirmed no longer active.

Call lifecycle

Accepted

Validate the destination, consent, caller identity and quota. Commit the quota reservation and dispatch record together. A retry with the same request key returns the original call.

Ringing

Load the pinned routing policy and originate a SIP session. Keep signaling time separate from the time the recipient spends answering.

Connected

Attach a regional media worker and start the greeting. SIP handles call state while RTP carries the audio. Scope media access to the call and negotiate secure transport where supported.

Finalizing

Capture the terminal reason, release unused reserved time, and seal the timed transcript. Replayed events use the original event identity.

Complete

Write the summary and follow-up from transcript evidence. Studio can show call status independently while the outcome is being processed.

Runtime reference

Call contracts.

One call ID ties together the immutable request, the media session, and the eventual outcome. These proposed contracts define the handoff between Ovoz services.

RecordContractInvariant
CallRequestWorkspace, authorized caller identity, destination, purpose, locale, idempotency key.Scope the request key to the workspace and compare the normalized payload on replay.
CallSnapshotCall ID, policy revision, route, model manifest, voice version, maximum duration and recording policy.Admission freezes the configuration. A new publish creates a new revision for later calls.
CallOutcomeTerminal reason, connected duration, transcript revision, evidence-linked summary and follow-up.Finalization is retryable and produces one outcome per call revision.

Event stream

Allocate sequence numbers at the call event writer. Carry a stable event ID through retries. The read model applies events in sequence and resumes from its last durable cursor. A terminal call state seals the media session, while the transcript and outcome can still finish independently.

Example · schema v1
{
  "type": "turn.transcript.committed",
  "schema_version": 1,
  "event_id": "evt_example_42",
  "call_id": "call_example",
  "sequence": 42,
  "turn_id": "turn_04",
  "start_ms": 8120,
  "end_ms": 9710,
  "locale": "ko-KR"
}

Use relative audio timestamps for alignment. Keep media, transcript text, and model telemetry on their own access paths. A usage reservation is released when a terminal attempt has a confirmed duration or a definitive pre-connect result.

Timing & turn-taking

Where the milliseconds go.

First-audio latency starts when the caller stops speaking and ends when the first reply audio reaches playback. The targets assume a turn without a tool round trip. Replay the example or select any stage to inspect its budget.

Voice turn trace

Illustrative · playback slowed

600 ms total

Ingress

35 ms cumulative

Receive the last caller frames, absorb jitter, and hand normalized audio to the streaming recognizer.

The budgets are shown in sequence for the example. In a live turn, recognition and response preparation can overlap.

Handle an interruption

Keep listening during playback. Once inbound speech is confirmed, cancel generation, flush unsent audio, and open a new turn. Drop late frames from the cancelled turn using its generation ID. Aim to stop audible playback within 150 ms at p95, measured from the caller’s speech onset.

Measure at both ends

Record monotonic timestamps at each service boundary. Use an instrumented caller for the end-to-end playback mark, and break out p50 and p95 by locale, region, and load. Plot tool-dependent turns separately and track ringing time on its own.

Model serving

Separate models. One conversation.

Ovoz would train its own weights and serve them on regional inference clusters. Start with the example model profiles below and benchmark them on phone audio. Version the weights, tokenizer, training lineage, evaluation results, and rollback pointers together.

Model profiles

Speech recognition

300M-parameter streaming encoder with incremental decoding

Evaluate Word error rate and exact match on names, times, and callback numbers.

Dialogue

3B-parameter instruction model with a typed policy engine

Evaluate Task completion, policy adherence, and time to the first speakable clause.

Voice synthesis

Multilingual acoustic model with a vocoder trained for 24 kHz output

Evaluate Time to first audio, pronunciation, listener ratings, and identity consistency.

Keep per-call decoder state while audio arrives. Maintain separate partial and committed transcripts. Dialogue may prepare a response from stable context, while action execution and audio playback wait for the turn and policy to commit.

Use a bounded dialogue context with a summary of earlier turns and exact values for confirmed fields. Sound synthesis consumes approved clauses in order. An incomplete clause can be discarded when the caller interrupts.

Models & data

Voices, datasets, and training.

A voice release ties one identity to a versioned synthesis stack. Train English and Korean releases with recording permissions tracked alongside dataset lineage.

Voice catalog manifest

Store the locale, speaker recording set, normalization rules, pronunciation lexicon, acoustic checkpoint, vocoder checkpoint, and eligible same-locale fallback. Resolve the voice before admission and pin the selected release for the entire call.

  • en-neutral@1en-US
  • ko-neutral@1ko-KR
StageInputsOutput and checks
CapturePrompted studio reads, natural conversations, and a fixed set of names, dates, addresses, and numbers.Verify speaker permissions and locale tags. Keep raw recordings and derived clips linked by provenance.
PrepareTrim and segment with audit trails. Align words to audio, annotate overlap, and create codec and noise variants.Freeze versioned manifests. Split by speaker and session to prevent overlap across training and evaluation.
TrainStart recognition with a streaming transducer. Train synthesis on normalized text, alignments, and speech.Package checkpoints with preprocessing, vocabulary, sample rate, dataset hashes, and model configuration.
PromoteRun held-out telephone replay and listening panels for each launch locale.Approve pronunciation, stability, identity consistency, and first-chunk latency before changing the active manifest.

Test Korean digit readback, dates, honorifics, and mixed-script names as separate slices. Prompt for confirmation when a critical field is uncertain. The media gateway converts synthesis output to the negotiated call codec.

Model release

Evaluate the conversation.

Replay consented or scripted calls through the full audio loop. Score the outcome, spoken interaction, and runtime behavior on the same run so a faster release can still be checked for quality regressions.

Release gates

MeasureHow to score itProposed gate
RecognitionWord error rate by locale plus exact match on normalized callback numbers and times.No regression beyond the agreed margin on any critical slice.
Turn-takingCount interrupted caller utterances, missed turn ends, and false interruptions. Include silence, echo, and brief acknowledgments.First audio ≤600 ms p50 and ≤1,100 ms p95 for turns without a tool round trip. Playback stop ≤150 ms p95.
DialogueScore task completion and evidence for every saved follow-up. Assert confirmation and permission rules with scripted calls.All confirmation and permission cases pass. Review task completion per locale.
VoiceRun blinded paired listening tests on phone audio. Score intelligibility, naturalness, and voice consistency.Pass the agreed preference margin and review pronunciation defects in critical fields.

Report sample counts and confidence intervals alongside aggregate scores. Slice by locale, accent, speech rate, codec, noise, and concurrent load. Compare the old and candidate releases on the same corpus. Exercise long turns, model worker restarts, packet loss, and deferred results before regional rollout.

Operations

Size the region for peak calls.

Media capacity follows the number of open calls. Inference capacity follows active speech, generation bursts, and model queue depth.

Media capacity planner

One bidirectional G.711 stream per call · 20 ms packets

Concurrent calls
100
Audio payload
12.8 Mb/s
Media packets
10,000 /s

Totals cover both directions on one media leg. Budget separately for packet headers, additional legs, redundancy, and headroom.

At 100 simultaneous calls, one G.711 leg is 12.8 Mb/s of audio payload. With 40 bytes of IPv4, UDP, and RTP headers per packet, add 3.2 Mb/s before link overhead, encryption overhead, and redundancy.

InputPlanning example
Mean turn rate100 calls × 4 turns/minute ÷ 60 ≈ 6.7 turns/s. Provision against peak turn arrivals.
Replica throughputIf a replica sustains 10 turns/s at the target tail latency and the operating limit is 60%, budget 6 turns/s per replica.
RedundancyTwo replicas cover the example demand at that limit. Three replicas preserve that capacity during a single-replica loss.

Keep the audio loop moving

Keep model workers warm, bound queues, and shed new calls before live turns run out of headroom. Size each model pool using measured per-replica throughput at the target p95. Drain existing sessions during rollouts and route new calls to healthy regions when policy permits.

Keep outcomes consistent

Commit call events and usage in an idempotent ledger. Store transcripts and optional recordings separately, encrypt them within the workspace boundary, and attach retention and deletion policies to each artifact.

Workspace storage

Keep each artifact on its own lifecycle.

Authorize every read with the workspace and call ID. Use separate retention schedules for media, transcripts, outcomes, usage, and aggregate telemetry.

ArtifactStorage and accessLifecycle
Live audioRegional workers keep a bounded in-memory buffer for jitter and interruption handling.Discard after delivery or cancellation. Persist audio only when recording is explicitly enabled for that call.
TranscriptStore committed turns with speaker, locale, time offsets, and a transcript revision.Redact sensitive fields where applicable. Keep a stable link from each visible follow-up to its evidence.
RecordingsUse separately scoped media objects and short-lived read access.Apply the workspace retention policy. Gate transcript and recording downloads independently.
Usage and tracesKeep a minimal usage ledger and redact trace payloads at the source.Reconcile duration idempotently. Aggregate timing and queue metrics without raw call content.

A deletion request writes a durable tombstone before cleanup. Workers remove stored artifacts, update derived indexes, and check the tombstone before replaying a late event. Audit the action with metadata scoped to the workspace.

Implementation plan

Build the audio loop first.

  1. Browser audio

    Start with Ovoz-to-Ovoz calling. Replay annotated turns through the complete audio loop and verify that a caller can interrupt the assistant.

  2. Phone media

    Add the SIP edge, number registry, and codec conversion. Start in one supported region and verify inbound routing, outbound identity, and disconnect handling.

  3. Owned models

    Train reproducible checkpoints on rights-cleared data. Evaluate by language, accent, codec, background noise, and call task before promoting a release.

  4. Regional rollout

    Release new calls to a small cohort, compare quality and tail latency, and roll back by restoring the previous model and voice manifests for new calls.

Research

Papers to prototype from.

Start with these methods and validate each candidate on Ovoz call audio, with matched quality and latency measurements.