Connect to the Vatis Streams API using the WebSocket protocol. We can configure the stream by using either query parameters of a configuration message.
Specify all the configuration parameters in the query string of the WebSocket URL. (e.g. language)
The first result message you’ll receive is the stream metadata message that will contain all the metadata of the created stream.The rest of the response stream will consist of either response messages or binary message, if configured so.If an error is encountered during the processing, an error message will be sent, then the connection will be closed.
The response messages will contain a sink message that wraps a processor message. The complete list of processor messages can be found in the API reference.Let’s take for this example the transcription message that contains the transcription of the audio data.
To confirm the input data was sent completely, send an end-of-stream message to the WebSocket server.
The engine will finish processing, send the final results, followed by a similar end-of-stream message, and then close the connection.