Salesforce

Real-time transcription using WebSocket user guide

« Go Back
Information
Real-time transcription using WebSocket user guide
000004011
Public
Product Selection
aiWare - aiWare
Article Details

To create a near real-time transcription job in aiWARE, you need to create a scheduled job that performs the transcription, and then create a WebSocket connection between the AI Processing controller and a client, such as a web browser where the script will be run. 

The WebSocket protocol enables real-time data transfer between a server and a web browser or other client application using the ws (WebSocket) and wss (WebSocket Secure) uniform resource identifier (URI) schemes. Only secure connections using wss are implemented in aiWARE. 

Scheduled jobs can be used to create recurring jobs to consume video or audio from a source on a set schedule. Once the job is generated and begins setting up tasks, the client subscribes to specific task outputs through the AI Processing controller via the WebSocket. 

This guide explains the process and provides example code.

Before you begin

  • You need to have valid API tokens for both AI Processing and AI Data.
    • If you are an administrator, you can get an AI Data token using the instructions in Create an AI Data token
    • To get an AI Processing token, you'll need to work with the Veritone customer service team.
  • You must be familiar with creating scheduled jobs.
  • You need to have some experience working with WebSockets.

Steps

  1. Create one or more scheduled jobs that produce output to which you want to subscribe. For two examples, see Job examples for real-time transcription.

  2. Connect to a WebSocket to the AI Processing controller and subscribe to the job output(s).

Additional Technical Documentation Information
Properties
2/12/2024 11:15 PM
2/12/2024 11:16 PM
2/12/2024 11:16 PM
Documentation
Documentation
000004011
Translation Information
English

Powered by