Tokkio UI WebSocket API 1.0.0

The Tokkio UI WebSocket connects to the Tokkio ACE Controller, and offers real-time updates on conversation information from a Tokkio session. It includes:

  • Text To Speech (TTS) transcriptions for the digital human's speech
  • Automatic Speech Recognition (ASR) transcriptions for the user's speech
  • Data to be dynamically rendered in the UI as modular components
  • Events for starting and stopping the conversation manually
  • Events for updating the NVIDIA RAG settings
  • Interruptions from the ACE controller to be handled in the UI

Servers

  • wss://<Kubernetes Cluster IP>:30443/ace/ws/wssingress-wss

    ACE Controller WebSocket through the Ingress TLS endpoint

  • ws://<Kubernetes Cluster IP>:30888/ace/ws/wsingress-ws

    ACE Controller WebSocket through the Ingress insecure endpoint

  • ws://<ACE Controller IP>:<ACE Controller Port>/ws/wsace-controller-ws

    ACE Controller WebSocket endpoint directly from the ACE Controller container

Operations

  • RECEIVE

    Operation IDreceiveWebSocketMessage

    Available only on servers:

    Accepts one of the following messages:

    • #0TTS Transcript UpdateTTSTranscriptUpdate

      Inform the UI when to show a TTS Transcript. This will be sent when the avatar starts speaking or a new transcript is available.

      Message IDTTSTranscriptUpdate
      object

      Examples

    • #1TTS Transcript EndTTSTranscriptEnd

      Inform the UI when to hide a TTS Transcript. This will be sent when the avatar stops speaking.

      Message IDTTSTranscriptEnd
      object

      Examples

    • #2ASR Transcript UpdateASRTranscriptUpdate

      Inform the UI when to show an ASR Transcript. This will be sent after the user starts speaking or a new transcript is available.

      Message IDASRTranscriptUpdate
      object

      Examples

    • #3ASR Transcript EndASRTranscriptEnd

      Inform the UI when to hide an ASR Transcript. This will be sent after the user stops speaking.

      Message IDASRTranscriptEnd
      object

      Examples

    • #4User Presence StartUserPresenceStart

      Informs the UI when the user is present.

      Message IDUserPresenceStart
      object

      Examples

    • #5User Presence EndUserPresenceEnd

      Inform the UI when the user is no longer present.

      Message IDUserPresenceEnd
      object

      Examples

    • #6Custom ViewCustomView

      Show custom view data in the front-end. This can include images, text, text boxes, buttons, and more, rendered as modular components.

      Message IDCustomView
      object

      Examples

    • #7InterruptionInterruption

      Indicate that an interruption has occurred in the ACE controller, and that the UI state should be cleaned up accordingly.

      Message IDInterruption
      object

      Examples

  • SEND

    Operation IDsendWebSocketMessage

    Available only on servers:

    Accepts one of the following messages:

    • #0Conversation StartConversationStart

      Message indicating that the user wishes to start the conversation. The avatar will greet the user once this message is triggered.

      Message IDConversationStart
      object

      Examples

    • #1Conversation EndConversationEnd

      Message indicating that the user wishes to end the conversation. The avatar will say goodbye to the user once this message is triggered.

      Message IDConversationEnd
      object

      Examples

    • #2RAG SettingsRAGSettings

      Message indicating that we should update the configuration of the NVIDIA RAG which Tokkio is connected to.

      Message IDRAGSettings
      object

      Examples

    • #3Custom View Interim Text InputCustomViewInterimTextInput

      Message indicating that the user has typed text into a custom view text box.

      Message IDCustomViewInterimTextInput
      object

      Examples

    • #4Custom View Final Text InputCustomViewFinalTextInput

      Message indicating that the user has submitted text from a custom view text box.

      Message IDCustomViewFinalTextInput
      object

      Examples

    • #5Custom View Button PressCustomViewButtonPress

      Message indicating that the user has clicked a button in the custom view UI.

      Message IDCustomViewButtonPress
      object

      Examples

    • #6Custom View Selectable Option PressCustomViewSelectableOptionPress

      message indicating that the user has toggled a selctable option in the custom view UI.

      Message IDCustomViewSelectableOptionPress
      object

      Examples

Messages

  • #1TTS Transcript UpdateTTSTranscriptUpdate

    Inform the UI when to show a TTS Transcript. This will be sent when the avatar starts speaking or a new transcript is available.

    Message IDTTSTranscriptUpdate
    object
  • #2TTS Transcript EndTTSTranscriptEnd

    Inform the UI when to hide a TTS Transcript. This will be sent when the avatar stops speaking.

    Message IDTTSTranscriptEnd
    object
  • #3ASR Transcript UpdateASRTranscriptUpdate

    Inform the UI when to show an ASR Transcript. This will be sent after the user starts speaking or a new transcript is available.

    Message IDASRTranscriptUpdate
    object
  • #4ASR Transcript EndASRTranscriptEnd

    Inform the UI when to hide an ASR Transcript. This will be sent after the user stops speaking.

    Message IDASRTranscriptEnd
    object
  • #5User Presence StartUserPresenceStart

    Informs the UI when the user is present.

    Message IDUserPresenceStart
    object
  • #6User Presence EndUserPresenceEnd

    Inform the UI when the user is no longer present.

    Message IDUserPresenceEnd
    object
  • #7Custom ViewCustomView

    Show custom view data in the front-end. This can include images, text, text boxes, buttons, and more, rendered as modular components.

    Message IDCustomView
    object
  • #8InterruptionInterruption

    Indicate that an interruption has occurred in the ACE controller, and that the UI state should be cleaned up accordingly.

    Message IDInterruption
    object
  • #9Conversation StartConversationStart

    Message indicating that the user wishes to start the conversation. The avatar will greet the user once this message is triggered.

    Message IDConversationStart
    object
  • #10Conversation EndConversationEnd

    Message indicating that the user wishes to end the conversation. The avatar will say goodbye to the user once this message is triggered.

    Message IDConversationEnd
    object
  • #11RAG SettingsRAGSettings

    Message indicating that we should update the configuration of the NVIDIA RAG which Tokkio is connected to.

    Message IDRAGSettings
    object
  • #12Custom View Interim Text InputCustomViewInterimTextInput

    Message indicating that the user has typed text into a custom view text box.

    Message IDCustomViewInterimTextInput
    object
  • #13Custom View Final Text InputCustomViewFinalTextInput

    Message indicating that the user has submitted text from a custom view text box.

    Message IDCustomViewFinalTextInput
    object
  • #14Custom View Button PressCustomViewButtonPress

    Message indicating that the user has clicked a button in the custom view UI.

    Message IDCustomViewButtonPress
    object
  • #15Custom View Selectable Option PressCustomViewSelectableOptionPress

    message indicating that the user has toggled a selctable option in the custom view UI.

    Message IDCustomViewSelectableOptionPress
    object

Schemas

  • object
  • object
  • object
  • object
  • object
  • object
  • object
  • object [Header]

    Header component, displays text in large, bold letters.

  • object [Image]

    Displays an image with an optional caption.

  • object [Image With Text]

    Displays an image with text next to it.

  • object [Hint Carousel]

    Contains hints to show to the user, rotates through hints one at a time if multiple are present.

  • object [Text]

    Displays a paragraph of text.

  • object [Textbox]

    Provides a textbox input to the user.

  • object [Button List]

    Provides one or more buttons to the user.

  • object [Selectable Options Grid]

    Provides a list of selectable options to the user.

  • object [Table]

    Displays a table.

  • object
  • object
  • object
  • object
  • object
  • object
  • object
  • object
  • object