{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://jambonz.org/schema/components/bidirectionalAudio",
  "title": "BidirectionalAudio",
  "description": "Configuration for bidirectional audio streaming over a websocket connection. When enabled, the remote websocket endpoint can send audio back to jambonz to be played to the caller.",
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean",
      "description": "Whether to enable bidirectional audio on the websocket connection."
    },
    "streaming": {
      "type": "boolean",
      "description": "If true, audio is streamed continuously rather than sent as complete messages."
    },
    "sampleRate": {
      "type": "number",
      "description": "The sample rate in Hz for bidirectional audio.",
      "examples": [8000, 16000, 24000]
    }
  }
}
