Is there a way to set an upload preset to request SRT and VTT?

Comments

3 comments

  • Avatar
    Marissa Masangcay

    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!

    0
    Comment actions Permalink
  • Avatar
    Barak Kassar

    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?
    0
    Comment actions Permalink
  • Avatar
    Marissa Masangcay

    Hi Barak,

    At this time there is not a way to add the SRT and VTT file parameters via the UI. I, however, would be more than happy to pass this over to our product team for further consideration/evaluation on implementing :)

    Cheers

    0
    Comment actions Permalink

Please sign in to leave a comment.