Transkribeer live spraak vanaf 'n mikrofone of live stroom
Monitor en bestuur transkripsiestatus met sessies
Vertaal getranskribeer teks na 'n ander taal
Transkribeer spraak van vooraf opgeneemde oudio in 'n URL na gewone teks
Skep 'n tydelike geldigheidsverklaring token vir kliënt kant versoeke
Gemeenskaplike versoek opsies en antwoorde vir alle transkripsie operasies
Skep 'n sessie wat gebruik kan word om 'n live transkripsie via 'n openbare deelbare skakel uit te saai
Transcriptions
van die VocalStack SDK:JavaScriptimport { Transcriptions } from '@vocalstack/js-sdk'; const sdk = new Transcriptions({ apiKey: 'YOUR-API-KEY' }); const transcriptions = await sdk.getAllTranscriptions(); transcriptions.data?.forEach((transcription) => { // the transcription ID (use this to get more details about the transcription) console.log(transcription.id); // 'waiting', 'processing', 'done', or 'error' console.log(transcription.status); // the time the transcription started console.log(transcription.start); // the time the transcription finalized console.log(transcription.end); // the keywords associated with the transcription console.log(transcription.keywords); // the length of the transcription in seconds console.log(transcription.duration); });
id
van daardie transkripsie. Die id
word wanneer ân transkripsieproses vir die eerste keer geïnitieer word. Dit kan egter ook verkry word deur na al die transkripsies te kyk wat die API hierbo gebruik. Transcriptions
van die VocalStack SDK:JavaScriptimport { Transcriptions } from '@vocalstack/js-sdk'; const sdk = new Transcriptions({ apiKey: 'YOUR-API-KEY' }); const transcription = await sdk.getTranscription({ id: 'TRANSCRIPTION-ID' }); const data = transcription.data; if (data) { // the transcription ID (use this to get more details about the transcription) console.log(data.id); // 'waiting', 'processing', 'done', or 'error' console.log(data.status); // the time the transcription started console.log(data.start); // the time the transcription finalized console.log(data.end); // the keywords associated with the transcription console.log(data.keywords); // the length of the transcription in seconds console.log(data.duration); // an object with the transcription timeline console.log(data.timeline); // a summary of the transcription console.log(data.summary); // the entire transcription in paragraph form console.log(data.paragraphs); }
timeline
.keywords
,, summary
en paragraphs
.