deepgram / deepgram-js-sdk

Official JavaScript SDK for Deepgram's automated speech recognition APIs.
https://developers.deepgram.com
MIT License
127 stars 45 forks source link

ALPHA: we NEED to include webvtt and srt formatting (from a dependency library) #174

Closed lukeocodes closed 8 months ago

lukeocodes commented 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);
lukeocodes commented 8 months ago

Resolved by the release of https://github.com/deepgram/deepgram-node-captions/