Skip to content

Display the transcription in sync with the video #96

Closed Answered by briancbarrow
luangreydive asked this question in General help
Discussion options

You must be logged in to vote

Okay. Are you using one of the SDKs to get the transcriptions? There are helper functions on there that can generate an .srt or .vtt file which you can then use ffmpeg to add them as subtitles on the video file.

Here is the toSRT function in the Node SDK as an example. https://github.com/deepgram/deepgram-node-sdk/blob/ba433b728848da6e360b37658f2f51b7becc26f0/src/types/prerecordedTranscriptionResponse.ts#L47

Does that help? Sorry if I don't understand exactly what you are trying to accomplish. If the ffmpeg solution doesn't work you could write a script that reads the SRT file and displays the appropriate text based on where the video is currently playing. We don't have a script for that …

Replies: 7 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@briancbarrow
Comment options

Comment options

You must be logged in to vote
1 reply
@SandraRodgers
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@briancbarrow
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jpvajda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants