Get data from pending or completed transcriptions
Transcribe live speech from a microphone or live stream
Translate transcribed text to another language
Transcribe speech from pre-recorded audio in a URL to plain text
Create a temporary authentication token for client side requests
Common request options and responses for all transcription operations
Create a session that can be used to broadcast a live transcription via a public shareable link
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. 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); });