#VTT File export

1 messages · Page 1 of 1 (latest)

sterile axle
wanton isleBOT
#

Hi @sterile axle. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

nimble dewBOT
#

Hey there! This channel allows you to ask Kapa.ai for assistance. But it looks like you haven't connected your Discord profile to your Deepgram account yet. You can do so at https://community.deepgram.com - by doing so, you'll be able to ask questions in #1115960287183511643 if you need human assistance!

wanton isleBOT
#

The Deepgram API does not directly export or return a WebVTT (VTT) file when you use the endpoint <https://api.deepgram.com/v1/listen?punctuate=true&utterances=true.> Instead, the API returns a JSON response containing the transcription and utterance data. You need to process this JSON response and convert it into a VTT file format yourself.

Deepgram provides open-source libraries to help with this conversion, such as:

There is currently no direct support for exporting VTT or SRT files from the API response itself, and you must use one of these libraries or implement your own conversion logic in your application. This is confirmed in the official answer from Deepgram maintainers:

We do not format WebVTT or SRT directly in the API response. We have however separated our WebVTT and SRT formatting for use standalone from our SDKs.
deepgram-js-captions
deepgram-python-captions
VTT/SRT directly from API response

So, to get a VTT file, you should:

  1. Call the Deepgram API with utterances=true (and any other options you need).
  2. Use one of the provided libraries to convert the JSON response to VTT.

If you need an example or further guidance on how to do this in a specific language, let me know!

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: