Welcome to the Interview Audio Generator! This innovative tool automatically transforms PDF documents or online articles into engaging interview-style audio files. It's perfect for auditory learners or anyone who enjoys consuming content on the go! And best of all it runs entirly locally on your computer! No paid api services or anything.
Ensure you have the following installed:
-
Python 3.8+
-
Ollama with the
phi3.5
model pulled -
For faster results have a cuda capable machine so xtts can generate faster with a minimum of 4gb Vram
-
Clone the repository:
git clone https://github.com/DrewThomasson/doc2interview.git cd doc2interview
-
Install required Python packages:
- Install all necessary Python packages using the following command:
pip install -r requirements.txt
- Install all necessary Python packages using the following command:
-
Setup Ollama:
- Install Ollama following the official documentation. link here
- Pull the
phi3.5
model necessary for running the script:ollama pull phi3.5
- Start the script:
python summarize_local.py # Replace with your actual script name
- Open the Gradio interface:
- The interface will be available in your web browser.
- Upload a PDF or enter an article URL.
- Choose the language and let the magic happen!
The generated audio files will be stored in:
- Chapter-wise audio:
./output_audio/
- Final combined audio:
./final_output_audio_dir/final_output_audio.wav
Feel free to explore the audio files and use them as needed!
Check out this sample audio from a generated interview:
final_output_audio.mp4
-
Attempt to find a way to remove any ramlbings at the end.
For more details, see the issue request here. -
Allow users to easily swap the ref audio for either voice actors in gui.
-
Find a way for the program to be able to determine which speakers in generated dialog are male or female.
Possably by just asking the llm. -
Allow user to see streaming llm outout
Right now you cant see the llm working live in the terminal, and only see the llm output once its finished writing the dialog script. -
Have program automatically run the ollama pull command if the specified model isnt found?
Not that huge of an issue though. -
Have a bulk process mulitple files or documents feature
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
Distributed under the MIT License. See LICENSE
for more information.
Got questions? Feel free to open an issue or contact me directly at your-email@example.com.
Give a ⭐️ if this project helped you!
AiPeterWorld with his non-offline version which used gemini flash and openai voice for tts