|
| 1 | +# AI Podcast Assistant |
| 2 | + |
| 3 | +A comprehensive toolkit for generating detailed notes, summary, and translation of podcast content using the Phi-4-Multimodal LLM with NVIDIA NIM Microservices. |
| 4 | + |
| 5 | +## Overview |
| 6 | + |
| 7 | +This repository contains a Jupyter notebook that demonstrates a complete workflow for processing podcast audio: |
| 8 | + |
| 9 | +1. **Notes generation**: Convert spoken content from podcasts into detailed text notes |
| 10 | +2. **Summarization**: Generate concise summaries of the transcribed content |
| 11 | +3. **Translation**: Translate both the transcription and summary into different languages |
| 12 | + |
| 13 | +The implementation leverages the powerful Phi-4-Multimodal LLM (5.6B parameters) through NVIDIA's NIM Microservices, enabling efficient processing of long-form audio content. |
| 14 | + |
| 15 | +Learn more about the model [here](https://developer.nvidia.com/blog/latest-multimodal-addition-to-microsoft-phi-slms-trained-on-nvidia-gpus/). |
| 16 | + |
| 17 | +## Features |
| 18 | + |
| 19 | +- **Long Audio Processing**: Automatically chunks long audio files for processing |
| 20 | +- **Detailed Notes Generation**: Creates well-formatted, detailed notes from audio content |
| 21 | +- **Summarization**: Generates concise summaries capturing key points |
| 22 | +- **Translation**: Translates content to multiple languages while preserving formatting |
| 23 | +- **File Export**: Saves results as text files for easy sharing and reference |
| 24 | + |
| 25 | +## Requirements |
| 26 | + |
| 27 | +- Python 3.10+ |
| 28 | +- Jupyter Notebook or JupyterLab |
| 29 | +- NVIDIA API Key (see [Installation](#installation) section for setup instructions) |
| 30 | +- Required Python packages: |
| 31 | + - requests |
| 32 | + - base64 |
| 33 | + - pydub |
| 34 | + - Pillow (PIL) |
| 35 | + |
| 36 | +## Installation |
| 37 | + |
| 38 | +1. Clone this repository: |
| 39 | + ```bash |
| 40 | + git clone https://github.com/NVIDIA/GenerativeAIExamples.git |
| 41 | + cd GenerativeAIExamples/community/ai-podcast-assistant |
| 42 | + ``` |
| 43 | + |
| 44 | +2. Set up your NVIDIA API key: |
| 45 | + - Sign up for [NVIDIA NIM Microservices](https://build.nvidia.com/explore/discover?signin=true) |
| 46 | + - Generate an [API key](https://build.nvidia.com/microsoft/phi-4-multimodal-instruct?api_key=true) |
| 47 | + - Replace the placeholder in the notebook with your API key |
| 48 | + |
| 49 | +## Usage |
| 50 | + |
| 51 | +1. Open the Jupyter notebook: |
| 52 | + ```bash |
| 53 | + jupyter notebook ai-podcast-assistant-phi4-mulitmodal.ipynb |
| 54 | + ``` |
| 55 | + |
| 56 | +2. Update the `podcast_audio_path` variable with the path to your audio file. |
| 57 | + |
| 58 | +3. Run the notebook cells sequentially to: |
| 59 | + - Process the audio file |
| 60 | + - Generate detailed notes |
| 61 | + - Create a summary |
| 62 | + - Translate the content (optional) |
| 63 | + - Save results to text files |
| 64 | + |
| 65 | +## Example Output |
| 66 | + |
| 67 | +The notebook generates: |
| 68 | + |
| 69 | +1. **Detailed Notes**: Bullet-pointed notes capturing the main content of the podcast |
| 70 | +2. **Summary**: A concise paragraph summarizing the key points |
| 71 | +3. **Translation**: The notes and summary translated to your chosen language |
| 72 | + |
| 73 | +All outputs are saved as text files for easy reference and sharing. |
| 74 | + |
| 75 | +## Model Details |
| 76 | + |
| 77 | +The Phi-4-Multimodal LLM used in this project has the following specifications: |
| 78 | +- **Parameters**: 5.6B |
| 79 | +- **Inputs**: Text, Image, Audio |
| 80 | +- **Context Length**: 128K tokens |
| 81 | +- **Training Data**: 5T text tokens, 2.3M speech hours, 1.1T image-text tokens |
| 82 | +- **Supported Languages**: Multilingual text and audio (English, Chinese, German, French, etc.) |
| 83 | + |
| 84 | + |
| 85 | +## Acknowledgments |
| 86 | + |
| 87 | +- Microsoft for providing access to the Phi-4 multimodal |
| 88 | +- NVIDIA for providing access to the NIM microservices preview |
| 89 | + |
| 90 | +## Contact |
| 91 | + |
| 92 | +For questions, feedback, or collaboration opportunities, please open an issue in this repository. |
0 commit comments