Skip to main content
Skip to main content

Drupal AI

Dialogue from PDF

Upload a PDF and get back one MP3 of two voices discussing it, built with OpenAI, ElevenLabs and FFmpeg.

About this video

The combination of ConvertAPI, OpenAI, ElevenLabs and FFmpeg modules enables a multi-step transformation of a PDF into an audio dialogue. Initially, the ConvertAPI module is used to transform the PDF content into text. This extracted text, now in a readable and editable format, serves as the base material for the next steps.

With the text extracted, it is then processed through the AI Interpolator OpenAI module, which transforms the content into a dialogue format. OpenAI structures the text into an interactive conversation, making it more engaging and dynamic.

The newly created dialogue is then fed into the ElevenLabs field module. ElevenLabs converts the dialogue into an audio file, providing an audio version of the conversation. However, to refine and finalize the audio file, it is then processed through FFmpeg. This additional step makes sure the audio quality is optimized and the file is in the desired audio format, ready for listening. The end result is an accessible, audible conversation made from the original PDF content.

This video is from before the AI Interpolator module became AI Automators, part of the AI module. Module and menu names have changed since, and some steps look different today.

Watch the video

0:00

Transcript

YouTube's automatic captions, lightly corrected. Click a line to jump to that moment in the video.

Chapters

Updated 2 min read

Other ways to consume this

Filed under Workflows Drupal AI
AI modified

Parts of this content were produced by AI.

How was AI used?

The video and the introduction are Marcus's own, first published on workflows-of-ai.com. AI wrote the subtitle, the summary and the video chapters from the transcript, and corrected misheard names in YouTube's automatic captions.