Book with RTMP

After you are authenticated you can start booking transcriptions and translation sessions in advance!

Let's look at an example of how to book an order where you can stream the audio through RTMP and get the transcription with WebSocket.

Create an order with this payload:

{
  "name": "My RTMP order",
  "client_transaction_id": "{{$guid}}", // The internal id you will use for your order. Has to be unique.
  "input": {
    "language": "en-US",
    "glossary": [
      "hero", "test"
    ],
    "schedule": {
      "start_at": "{{startAt}}", // start time
      "max_duration": 600
    },
    "type": "rtmp_push"
  },
  "output": [
    {
      "product": {
        "type": "captions",
        "target_languages": ["en-US"],
        "tier": "automatic"
      },
      "delivery": [
        {
          "type": "websocket"
        }
      ]
    }
  ]
}

In the response you will get the rtmp stream key:

{
    "order": {
        "id": "8ab69024-09f3-43ac-8d0b-6e290358fa43",
        "input": {
            "type": "rtmp_push",
            "connection_params": {
                "url": "rtmps://rtmps.verbit.co/live",
                "stream_key": "8e5ff456-ac96-4682-b78f-d1efee4c58cf"
            },
          ...
        },
        "output": [
            {
                "product": {
                    ...
                },
                "delivery": [
                    {
                        "type": "websocket",
                        "connection_params": {
                            "url": "wss://speech.verbit.co/ws?token=eyJ0eXAiOiJblabla..."
                        },
                        "format": "text"
                    }
                ],
            }
        ], ...
    }, ...
}

You can learn more on how to read the transcript from the websocket here.