urasto.fi

AdeleTechnical handbook

Call control and streaming transcription

Control messages and audio travel in parallel. An HTTP response tells Twilio how to continue the call. The caller's audio arrives as frames on a separate WebSocket.

From an incoming call to a completed utterance

  1. Twilio sends a call event. From identifies the calling number and CallSid identifies the call. Render verifies the signature and the caller's voice permission before returning instructions.
  2. A TwiML Stream instruction opens the media stream. Twilio sends 8 kHz μ-law frames to Render. Render forwards audio to OpenAI Realtime transcription, with a language hint and vocabulary where appropriate.
  3. The recogniser produces partial and final text. Silence, minimum speech duration and maximum utterance length influence when an utterance is ready for model work. Consecutive fragments can be merged.
  4. The final utterance, user memory and call context form the voice worker's job. Pause and Redirect instructions maintain call control while a response is pending.

Three different failure conditions

ObservationDocumented behaviour
Silent callerThe listening loop continues under the configured time limits.
Partial and final text divergeThe discrepancy is logged. A language guard detects results in the wrong language.
Required media stream is absentThe W1 call ends in a controlled manner. Accepting a webhook alone does not establish successful transcription.
Call control and streaming transcription
Open the sequence diagram at full size.

Source material · Technical brochure, 26 Nov, pp. 2–7. Technical specification, 19 Nov, pp. 2–4 and 6–7.