Closed lukeocodes closed 8 months ago
V2 had webvtt and srt built in. We've commited to making this logic standalone.
It should accept a Deepgram transcription (and other competitors) and well format webvtt and srt results.
It should be a dependency of the SDK, so it can be imported from the entryfile
import { webvtt, srt } from "@deepgram/sdk"; webvtt(genericFormat); webvtt.fromDG(transcription); webvtt.fromGoogle(transcription); webvtt.fromWhisper(transcription); webvtt.fromAssembly(transcription); // OR import { webvtt, srt } from "@deepgram/captions"; webvtt(genericFormat); webvtt.fromDG(transcription); webvtt.fromGoogle(transcription); webvtt.fromWhisper(transcription); webvtt.fromAssembly(transcription);
Resolved by the release of https://github.com/deepgram/deepgram-node-captions/
V2 had webvtt and srt built in. We've commited to making this logic standalone.
It should accept a Deepgram transcription (and other competitors) and well format webvtt and srt results.
It should be a dependency of the SDK, so it can be imported from the entryfile