PDF2Audio JP banner
Sunwood-ai-labs Sunwood-ai-labs

PDF2Audio JP

AI community

Description

This code can be used to convert PDFs into audio podcasts, lectures, summaries, and more. It uses OpenAI's GPT models for text generation and text-to-speech conversion. You can also edit a draft trans

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

PDF to Audio Converter

This code can be used to convert PDFs into audio podcasts, lectures, summaries, and more. It uses OpenAI's GPT models for text generation and text-to-speech conversion. You can also edit a draft transcript (multiple times) and provide specific comments, or overall directives on how it could be adapted or improved.

![image](https://github.com/user-attachments/assets/ef8a5e84-d532-4e0e-b08b-fb7be2f98469)

Features

  • Upload multiple PDF files
  • Choose from different instruction templates (podcast, lecture, summary, etc.)
  • Customize text generation and audio models
  • Select different voices for speakers
  • Iterate on the draft via specific or general commments, and/or edits to the transcript and specific feedback to the model for improvements

Use in Colab

[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/lamm-mit/PDF2Audio/blob/main/PDF2Audio.ipynb)

Local Installation

Follow these steps to set up PDF2Audio on your local machine using Conda:

  1. Clone the repository:

    git clone https://github.com/lamm-mit/PDF2Audio.git
    cd PDF2Audio
  2. Install Miniconda (if you haven't already):

    • Download the installer from Miniconda website
    • Follow the installation instructions for your operating system
    • Verify the installation:
    conda --version
  3. Create a new Conda environment:

    conda create -n pdf2audio python=3.9
  4. Activate the Conda environment:

    conda activate pdf2audio
  5. Install the required dependencies:

    pip install -r requirements.txt
  6. Set up your OpenAI API key: Create a `.env` file in the project root directory and add your OpenAI API key:

    OPENAI_API_KEY=your_api_key_here

Running the App

To run the PDF2Audio app:

  1. Ensure you're in the project directory and your Conda environment is acti