Skip to main content
Participating Frequently
December 23, 2024
Answered

Export Clip Transcription in JSX Script

  • December 23, 2024
  • 1 reply
  • 192 views

how can I export transcription of a clip in JSX script?  Tried something like this but doesn't seem to the transcription.  I tried something like this,  also where is the documentation?  I found old links that don't work anymore. thank 

// Function to extract the transcript from a clip
function extractTranscript(clip) {
  try {
     var metadata = clip.getProjectMetadata(); // Retrieve metadata for the clip
     if (metadata) {
         // Look for specific metadata fields that may store transcript data
         var transcriptField = metadata.getMetadataField("transcript"); // Adjust field name if needed
         if (transcriptField && transcriptField.value) {
            return transcriptField.value; // Return the transcript text
         }
     }
   } catch (e) {
            $.writeln("Error extracting transcript for clip: " + clip.name + " - " + e.message);
        }
        return null; // Return null if no transcript is found
    }

 

This topic has been closed for replies.
Correct answer Bruce Bullis

how can I export transcription of a clip in JSX script?

 

You cannot; PPro offers no ExtendScript APIs around transcripts. We'll revisit transcription APIs once the initial move from ExtendScript to UXP is complete.

 

 > where is the documentation? 

https://ppro-scripting.docsforadobe.dev/

1 reply

Bruce Bullis
Bruce BullisCorrect answer
Legend
December 23, 2024

how can I export transcription of a clip in JSX script?

 

You cannot; PPro offers no ExtendScript APIs around transcripts. We'll revisit transcription APIs once the initial move from ExtendScript to UXP is complete.

 

 > where is the documentation? 

https://ppro-scripting.docsforadobe.dev/