Get data from pending or completed transcriptions
Transcribe live speech from a microphone or live stream
Monitor and manage transcription state with sessions
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
JavaScriptimport { Transcriptions } from '@vocalstack/js-sdk'; const sdk = new Transcriptions({ apiKey: 'YOUR-API-KEY' }); const translation = await sdk.addTranslationAsync({ id: 'TRANSCRIPTION-ID', language: 'de', }); translation.onData((response) => { // 'waiting', 'processing', 'done', or 'error' console.log(response.status); // the translated timeline console.log(response.data?.timeline); });
JavaScriptimport { Transcriptions } from '@vocalstack/js-sdk'; const sdk = new Transcriptions({ apiKey: 'YOUR-API-KEY' }); // This is a synchronous request, so we cannot listen for the response sdk.addTranslation({ id: 'TRANSCRIPTION-ID', language: 'de' });
timeline
objects with the most recent translations available.