Ask AI
Skip to main content

Convert video to an audio file

Function: Convert video to an audio file

This function allows you to easily transform a video file stored in your media library into a new audio file. This is useful when you only need the sound from a video, such as extracting music, speeches, or sound effects. The new audio file will be saved in your media library, and you'll receive its unique identifier.

Input,

  • Media ID of the video file: The unique identifier of the video file you want to convert, which is already stored in your platform's media library.
  • Audio file name: The desired name for the new audio file that will be created from the video.

Output,

  • The ID of the created media file: The unique identifier for the newly generated audio file in your media library. You can use this ID to reference or use the audio file in other parts of your application.

Execution Flow,

Real-Life Examples,

  1. Scenario: Extracting a song from a music video

    • Inputs:
      • Media ID of the video file: vid_12345_music_concert
      • Audio file name: Concert_Song_Track_1
    • Result: A new audio file named "Concert_Song_Track_1" is created in your media library. The function returns its unique ID, for example, aud_67890_concert_song. You can now use this audio file in a playlist or as background music.
  2. Scenario: Creating an audio podcast from a recorded webinar

    • Inputs:
      • Media ID of the video file: webinar_marketing_strategy_2023
      • Audio file name: Marketing_Strategy_Podcast_Episode
    • Result: An audio-only version of the webinar, named "Marketing_Strategy_Podcast_Episode," is saved to your media library. The function provides its ID, such as aud_11223_marketing_podcast, which you can then link to a podcast player in your app.
  3. Scenario: Getting a voiceover track from a product demo video

    • Inputs:
      • Media ID of the video file: product_demo_feature_x
      • Audio file name: Feature_X_Voiceover
    • Result: The voiceover track from the product demo video is extracted and saved as "Feature_X_Voiceover" in your media library. The function returns its ID, for instance, aud_44556_voiceover_track, allowing you to use the voiceover independently for different language versions or accessibility features.