| name | metadata-generation |
| description | Generate show metadata (JSON) containing timecoded transcript, title, duration, summary, and date by sending audio and transcript to Gemini. |
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.md and 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.
Python Code
The skill is implemented in scripts/generate_metadata.py.
python3 skills/metadata-generation/scripts/generate_metadata.py --workspace ./workspace
Output
The skill produces a JSON file at ./workspace/data/show_notes.json with the following structure:
{
"show_title": "...",
"show_duration": "..."
...