Skip to main content
Participant
July 10, 2023
Answered

Access audio from script/extension

  • July 10, 2023
  • 1 reply
  • 398 views

My editing workflow involves adding a lot of cuts during breaks in speech. This is a task that often takes several hours, but could be easily automated if I was able to access the raw audio data or peak files from a script or extension.

 

Is there a way to access the audio track data in some way? I'm happy to use any technique/language that allows me to access this information.

 

Thanks!

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

There is no direct access to audio (or video) available, from within an extension. 

However, you can render any range of a timeline, to any output preset, including "audio only" presets; that should get you the audio you need to analyze.

1 reply

Bruce Bullis
Community Manager
Bruce BullisCommunity ManagerCorrect answer
Community Manager
July 10, 2023

There is no direct access to audio (or video) available, from within an extension. 

However, you can render any range of a timeline, to any output preset, including "audio only" presets; that should get you the audio you need to analyze.

NogtailAuthor
Participant
July 11, 2023

Thanks for the info! Is there any documentation for the .pek files generated for audio waveforms? If I was able to parse them I could probably work around not having direct access to the audio. From a quick look it appears to be mono signed 16-bit PCM with some sort of header and padding between channels. The sample rate seems to be around 345 Hz which seems a bit arbitrary - although it's awfully close to 44100/128.

Bruce Bullis
Community Manager
Community Manager
July 11, 2023

> Is there any documentation for the .pek files generated for audio waveforms?

No, nor will there ever be.

Guidance: Do NOT rely on .pek files, ever.