metadata-generation
Installation
SKILL.md
Metadata Generation
Generate a structured JSON file containing metadata for the radio show. This is done by sending the final mixed audio file and the original transcript back to Gemini.
Prerequisites
pip install google-genai
Workflow
- Read Inputs: Load the transcript from
./workspace/data/script.mdand the final audio from./workspace/audio/final/ai_radio.mp3. - Upload Audio: Upload the audio file to the Gemini Files API.
- Generate Metadata: Call Gemini (e.g.,
gemini-3-flash-preview) using the Interactions API, passing the uploaded audio file and the transcript. - Save Output: Save the resulting JSON to
./workspace/data/show_notes.json.