Search code examples
azure-functions-core-tools

How can I choose more than one translation language in Logic App?


I have built in this Azure Logic app to get captions of a video. But I was wondering how can I choose multiple "Caption Languages"? Right now, the drop down lets me choose only one language for translation. But if I want to get caption language of English, Spanish, French. How can I get captions of multiple languages? What can I do to pick more than one language?


Solution

  • In your input, specify that you want to pass an array:

    enter image description here

    Then, get your token for VideoIndexer, and process all the array items:

    enter image description here

    There is a "for each" loop for this processing. It is doing the following steps:

    • Get the captions for 1 language
    • Write the result to onedrive

    enter image description here