Documentation

Pridobi podatke o prepisu

Pridobite podatke iz čakajočih ali dokončanih prepisov

Prepis iz mikrofona ali LiveStream

Prepisujte govor v živo iz mikrofona ali pretoka v živo

Seje za prepisovanje

Spremljajte in upravljajte stanje prepisa s sejami

Prepisovanje zvoka iz URL-ja

Prepis govora iz predhodno posnetega zvoka v URL v navadno besedilo

Žetoni za preverjanje pristnosti na strani odjemalca

Ustvarite začasni žeton za preverjanje pristnosti za zahteve na strani odjemalca

Zahteva za prepis in odgovor

Skupne možnosti zahteve in odzivi za vse postopke prepisovanja

Prepis in predstavitev poliglotske seje

Ustvarite sejo, ki jo lahko uporabite za oddajanje prepisa v živo prek javne povezave za skupno rabo

Prevedite prepisano besedilo v drug jezik. To lahko storite za vsako transkripcijo, vključno s predhodno posnetimi transkripcijami, transkripcijami v živo ali transkripcijami Polyglot seje.
You can use the VocalStack API to translate any transcription, whether it is finished or still processing. If you have not yet started transcribing audio, you can do so with any of the following methods:
Prepisovanje zvoka iz URL-ja
Prepis govora iz predhodno posnetega zvoka v URL v navadno besedilo. Podprti so glavni formati datotek, vključno z MP3, WAV, FLAC in OGG.
Prepis iz mikrofona ali LiveStream
Prepisujte govor v živo iz mikrofona ali pretoka v živo. Integrirajte s Polyglotom, da ustvarite javno povezavo za deljenje prepisa, ki jo lahko uporabniki berejo v kateremkoli jeziku.
Prepis in predstavitev poliglotske seje
Ustvarite sejo, ki jo lahko uporabite za oddajanje prepisa v živo prek javne povezave za skupno rabo. Uporabniki lahko berejo prepis v živo v svojem želenem jeziku in celo pretekle prepise, ko je vaša seja neaktivna.
If you need to load your translations as soon as they become available then you will want to listen to the translation request asynchronously:
JavaScript
import { 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); });
This method for translating simply sends the translation request, but does not wait for a response. This method can be useful if:
  • You don't need the translation right now, but you want to cache it for quick access in the future. (see Performance Caching)
  • There is a transcription in a live Polyglot session that you're already monitoring in another process, and you simply want to add a new translation to this transcription.
JavaScript
import { 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' });
As translations execute on the backend, the persisted transcription data is updated to include the new translations. The persisted transcriptions get updated with each timeline segment translated, so API calls requesting transcription data will always return timeline objects with the most recent translations available.
This also means that you will only need to issue one translation request per language. (Additional requests will have no effect as the translations are already persisted.)
Scroll Up