Downloading results: when it is present in an API response, actionResultsDownloadURLs contains the authenticated URLs for downloading each generated result file.

MXPROCESS

API : Turn a spoken video into translated SRT and WebVTT captions.

    This API is simple to use. You just have to follow these steps

  • Create a free account
  • Click on the link you receive by email to confirm your address
  • Generate a token with credentials
  • You can use any language to make this CURL call. (Python, PHP, Java, JavaScript...) Need help ?



    If your credentials are correct, our server will provide you with a token as a response :
    YOUR_TOKEN is valid for one hour, its duration can be extended using YOUR_REFRESH_TOKEN

  • Use the token to start the process asynchronously
  • Action parameters

    Send parameters as a JSON object. Required fields are marked with required.

    • sourceLanguage — string.
    • targetLanguage — string.
    • audience — string.

    Upload exactly one MP4, MOV, MKV, WebM, AVI or M4V video with an audio track. sourceLanguage may be Auto-detect from video; targetLanguage and audience are bounded text values. The asynchronous response returns an action id and tracking URL. Poll it until accomplished is true. Download each SRT, VTT, CSV, TXT or JSON result using the authenticated download endpoint.



    The API sends you a Json response to confirm that the process has started. take note of the "trackingUrl" field, it is the one that allows you to follow the process that you have launched. In this answer you also find the ID of your process, here in our example the ID is 643 :

  • So to follow the progress, you do a simple GET(you can make this http call every 10 seconds):


  • If the process is not yet completed, you will receive this type of response with "accomplished": false

    If the process is completed, you will receive this type of response with "accomplished": true. The actionResultsDownloadURLs field contains the authenticated URLs for downloading the generated results:

    Use each URL supplied in actionResultsDownloadURLs directly to download its corresponding result.


This documentation is not clear? (Python, PHP, Java, JavaScript...) Need help ?



Contact us This API is also available in synchronous mode : Developer API : VideoLocalizationPack