Skip to main content
Evolve702
Participant
October 19, 2017
Question

Synchronizing a timestamped audio file to a pdf file

  • October 19, 2017
  • 1 reply
  • 673 views

We have a timestamped audio file that has been synchronized/timestamped to a text file.  We are trying to see if we can somehow have each word in a pdf be synchronized to each synched/time stamped audio and if possible select a word or a consecutive string of words and have the pdf either play back the timestamped audio or open a third part to play the audio?

If anyone can help i would appreciate

PJH

This topic has been closed for replies.

1 reply

Community Manager
December 14, 2017

Hello,

Sorry for the delay in response.

By default, there is no such option that could help you with this query. However, I am moving this thread to JavaScript space and wait if there is something experts could help you with this issue.

If you already have found a workaround for this, please update this thread with your findings.

-Tariq Dar

Thom Parker
Community Expert
Community Expert
December 14, 2017

I wrote code for this years ago. It was for a PDF book, where each word was highlighted as the audio played.  It required creating a custom list of timestamped word quads.  it was a serious pain to create. There's no generic methodology cause there is no way to automatically associate spoken words to written words. You have to listen to the audio over and over matching words to time stamps.

It could only be done with the built-in audio player, because only that player has the controls necessary to do the synchronization.

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Joel Geraci
Community Expert
Community Expert
December 14, 2017

Brace yourselves...

You actually can automate the highlighting to the audio automatically by using the YouTube auto caption API. You add your audio to a static image, upload it to Youtube, let Google use the speech recognition on it, then download the captioning file. It has all the time cues you need.

Then you attach the captioning file to the PDF and use JavaScript to parse it.