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:
pip install -r requirements.txt
Setup Ollama:
phi3.5
model necessary for running the script:
ollama pull phi3.5
python summarize_local.py # Replace with your actual script name
The generated audio files will be stored in:
./output_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:
https://github.com/user-attachments/assets/77e6046d-18e0-41dd-b034-7cdd709b9daf
[ ] 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