Is there a way to set an upload preset to request SRT and VTT?
I have figured out how to get a .transcript file. But I also want SRT and VTT. Can I add this to the preset?
My reading shows it has something to do with appending raw convert to say the following. But I don't see how I can do this.
raw_convert: google_speech(:srt, :vtt)
This is what I currently have in the preset — which generates the two files in the second screenshot.
-
Hi Barak,
In order to request the generation of SRT and VTT files via an upload preset you'll have to create a new preset or update an existing preset via our Admin API as mentioned in our documentation here:
https://cloudinary.com/documentation/admin_api#create_an_upload_preset
Here is a sample call you could make to create a new upload preset including the SRT and VTT parameters:Cloudinary::Api.create_upload_preset(:name => "my_speech_preset", :unsigned => false, :raw_convert => "google_speech:srt:vtt")
Here is a sample call you could make to update an existing upload preset including the SRT and VTT parameters:
Cloudinary::Api.update_upload_preset("my_speech_preset", :unsigned => false, :raw_convert => "google_speech:srt:vtt")
You can see the preset applies like so:
I hope this helps! -
Thanks Marissa
I'm using this as a Digital Asset Management solution. So unless I'm misunderstanding your API message (we're not developing an app of our own... we want to simply use Cloudinary as a DAM) I'm not sure where we'd even write this API call.Is there no way within Cloudinary to adjust certain settings, e.g. add that line re SRT and VTT?
Please sign in to leave a comment.
Comments
3 comments