Documentation

Get Transcription Data

Get data from pending or completed transcriptions

Transcribe from a Microphone or LiveStream

Transcribe live speech from a microphone or live stream

Translate a Transcription

Translate transcribed text to another language

Transcribe Audio from URL

Transcribe speech from pre-recorded audio in a URL to plain text

Client Side Authentication Tokens

Create a temporary authentication token for client side requests

Transcription Request and Response

Common request options and responses for all transcription operations

Transcribe and Present a Polyglot Session

Create a session that can be used to broadcast a live transcription via a public shareable link

Transcription Sessions

Browse Documentation
Monitor and manage transcription state with sessions. Using sessions you can reconnect to a previously created asynchronous connection.
Sessions can be useful if you want to want to programatically monitor a transcription in real time in a context other than where the transcription was first created.
A new session is created each time you successfully call connect. The session ends only when the transcription ends with a state of "done" or "error". Subsequent calls to connect with the same transcription request options will return a transcription object for the same transcription connection.
So, for example:
JavaScript
// Process 1: import { UrlTranscription } from '@vocalstack/js-sdk'; const sdk = new UrlTranscription({ apiKey: 'YOUR-API-KEY' }); const transcription = await sdk.connect({ file: 'speech.mp3' }); transcription.start(); // Process 2: import { UrlTranscription } from '@vocalstack/js-sdk'; const sdk = new UrlTranscription({ apiKey: 'YOUR-API-KEY' }); const transcription = await sdk.connect({ file: 'speech.mp3' }); transcription.onData((response) => { console.log(response.data); });
Scroll Up