SpeechTilesAndamento Docs
Get started
Configuration Reference

Interrupt Event Policy

Reusable JSON object structure, not a literal JSON property named interruptEventPolicy. It is the value of an interruption event property, or of whenAudioAllowed / whenAudioNotAllowed for application background and foreground events.

Event properties: onConversationResume · onAudioInterruptionBegin · onAudioInterruptionEnd · onAudioRouteChange · onAudioSilenceBegin · onAudioSilenceEnd · onAppResignActive · onAppBecomeActive · onAppEnterBackground (whenAudioAllowed, whenAudioNotAllowed) · onAppEnterForeground (whenAudioAllowed, whenAudioNotAllowed) · onAppRequiresForeground · onMediaServicesLost · onMediaServicesReset · onScreenSleepBegin · onScreenWake · onSystemSleepBegin · onSystemWake

These links return to the event properties in Interruption Event Behavior. The background and foreground events contain whenAudioAllowed and whenAudioNotAllowed policy branches rather than a direct Interrupt Event Policy object.

JSON type object

Defines the action taken when an interruption-related event occurs.

Behavior and notes

  • If audio processing is unavailable during an interruption, an effective continue may internally behave as pause until processing can continue.
  • A configuration-driven pause may be resumed by interruption handling; a client/API pause requires a client/API resume.

Developer guidance

An interruption event policy has a required action and optional action-specific objects goTo, resume, and duck. The event property that contains the policy determines when it is applied; the same policy structure is reused across many events.

Example in context

Illustrative JSON excerpt (not a complete configuration document):

{
  "interruptionBehavior": {
    "audioPlayback": {
      "onAudioSilenceBegin": {
        "action": "goTo",
        "goTo": {
          "moduleID": "cm.pl.start"
        }
      }
    }
  }
}

Use the event name to locate the policy, then action to determine which action-specific fields matter.

Properties

action

stringRequired

Action to perform. JSON property action · JSON type string

Allowed values
  • continue — Preserves the current operation state.
  • pause — Pauses the operation.
  • resume — Resumes a configuration-paused operation.
  • repeat — Repeats the current or last module.
  • end — Ends the Conversation at CF_END.
  • goTo — Transitions to another Conversation Module.
Runtime fields: Supported — The complete property value may be supplied using $[FieldName].

goTo

objectOptional

Destination used by the goTo action. JSON property goTo · JSON type object

resume

objectOptional

Resume behavior used by the resume action. JSON property resume · JSON type object

duck

objectOptional

Audio duck/restore parameters associated with the event policy. JSON property duck · JSON type object