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.
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.
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.
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.
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.
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.
Scope the request key to the workspace and compare the normalized payload on replay.
CallSnapshot
Call 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.
CallOutcome
Terminal 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.
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
Stage
Inputs
Output and checks
Capture
Prompted 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.
Prepare
Trim 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.
Train
Start 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.
Promote
Run 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
Measure
How to score it
Proposed gate
Recognition
Word error rate by locale plus exact match on normalized callback numbers and times.
No regression beyond the agreed margin on any critical slice.
Turn-taking
Count 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.
Dialogue
Score 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.
Voice
Run 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.
If a replica sustains 10 turns/s at the target tail latency and the operating limit is 60%, budget 6 turns/s per replica.
Redundancy
Two 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.
Artifact
Storage and access
Lifecycle
Live audio
Regional 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.
Transcript
Store 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.
Recordings
Use separately scoped media objects and short-lived read access.
Apply the workspace retention policy. Gate transcript and recording downloads independently.
Usage and traces
Keep 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.
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.
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.
Owned models
Train reproducible checkpoints on rights-cleared data. Evaluate by language, accent, codec, background noise, and call task before promoting a release.
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.
Streaming recognition
Use a recurrent transducer as a streaming baseline. Measure partial stability, final accuracy, and the delay from the last audio frame to the committed transcript.
Evaluate a compact adversarial vocoder for chunked synthesis. Measure startup, compute per second of audio, and audible seams after conversion to the phone codec.