{
  "name": "moderation-review",
  "sources": [
    {
      "name": "room",
      "type": "livekit",
      "config": {
        "serverUrl": "wss://your-project.livekit.cloud",
        "token": "<subscribe-token>",
        "select": {
          "mediaTypes": ["audio", "video"]
        }
      }
    }
  ],
  "nodes": [
    {
      "name": "for_review",
      "type": "audio_resample",
      "inputs": [
        {
          "name": "room",
          "select": {
            "mediaTypes": ["audio"]
          }
        }
      ],
      "config": {
        "sampleRate": 16000,
        "channels": 1
      }
    }
  ],
  "sinks": [
    {
      "name": "frames",
      "type": "image",
      "inputs": [
        {
          "name": "room",
          "select": {
            "mediaTypes": ["video"]
          }
        }
      ],
      "config": {
        "storageType": "s3",
        "storageConfig": {
          "bucket": "your-bucket",
          "region": "us-east-1",
          "accessKeyId": "<access-key-id>",
          "secretAccessKey": "<secret-access-key>",
          "pathPrefix": "moderation/live-show/{identity}"
        },
        "format": "jpeg",
        "intervalSec": 10,
        "quality": 80,
        "width": 640,
        "height": 360
      }
    },
    {
      "name": "audio_review",
      "type": "websocket",
      "inputs": ["for_review"],
      "config": {
        "url": "wss://moderation.your-app.example.com/audio",
        "headers": {
          "Authorization": "Bearer <moderation-service-token>"
        }
      }
    }
  ],
  "policies": {
    "maxDurationSec": 14400,
    "idleTimeoutSec": 300
  }
}
