Skip to main content
Question

How do I convert raw text into a .srt file?


Hey all,
I have a video to transcribe which I have input into Sonix.ai via an API request and they output the raw text, structured in SRT format (screenshot attached)

My next step is to store the output as a .srt file in Cloudinary so that I can use the subtitles on a video.
My issue is that I don’t know how to store this raw output as a .srt file.

Other transcription services I’ve used output a temporary URL to the .srt file, which I can upload directly to Cloudinary, Google Drive etc. to be used on a video, but Sonix doesn’t do this. Unfortunately I have to use Sonix for this implementation because they offer features that the other services don’t offer.

How can I store this raw text output as a .srt file?

Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.