#VTT File export
1 messages · Page 1 of 1 (latest)
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:
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!
Deepgram’s community offers tons of resources to support you on your voice AI journey
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:
- deepgram-js-captions (for JavaScript/TypeScript)
- deepgram-python-captions (for Python)
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:
- Call the Deepgram API with
utterances=true(and any other options you need). - Use one of the provided libraries to convert the JSON response to VTT.