OpenMontage/tools
Shubham 806f7ee1ac feat(google): support service-account auth for TTS + Imagen, fix false availability
Google's TTS and Imagen tools advertised service-account auth
(GOOGLE_APPLICATION_CREDENTIALS) but only ever authenticated with an API
key string, so users with a service-account JSON could not use either tool.
google_tts.get_status() also over-reported availability when the JSON was
set, then failed at execute() — a silent-availability bug.

Separately, both hand-rolled _load_dotenv parsers kept inline comments as
values, so after `cp .env.example .env` every keyed tool falsely reported
"available" with no real credentials.

Changes:
- Add tools/google_credentials.py: lazy google-auth Bearer-token helper.
- google_tts: authenticate via Cloud TTS Bearer token when only a service
  account is configured; make get_status() honest.
- google_imagen: route service-account auth to Vertex AI
  ({location}-aiplatform.googleapis.com) with project/location resolution,
  alongside the existing AI Studio API-key path.
- Fix both _load_dotenv parsers to strip inline comments (quote-aware).
- Add google-auth to requirements; document the new env vars in .env.example.
- .gitignore: never commit GCP service-account key files.

Verified locally with a real service account: TTS produced a valid MP3 and
Imagen produced a valid 1408x768 PNG via Vertex AI. Existing test suite
passes (2 unrelated pre-existing failures only).

Closes #131

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-22 17:53:10 +05:30
..
analysis hyperframes: add HTML/CSS/GSAP as a parallel composition runtime 2026-04-18 18:37:00 -07:00
audio feat(google): support service-account auth for TTS + Imagen, fix false availability 2026-06-22 17:53:10 +05:30
avatar Initial release — OpenMontage: the first open-source agentic video production system 2026-03-29 08:25:17 -07:00
capture Add screen capture tools with FFmpeg and Cap dual-provider system 2026-04-07 21:36:29 -07:00
character feat(character-animation): add local rigged character pipeline 2026-04-28 08:11:02 -07:00
enhancement Talking-head pipeline: 8 new tools, Remotion TalkingHead composition, and skill rewrites 2026-04-01 10:00:15 -07:00
graphics feat(google): support service-account auth for TTS + Imagen, fix false availability 2026-06-22 17:53:10 +05:30
publishers Initial release — OpenMontage: the first open-source agentic video production system 2026-03-29 08:25:17 -07:00
subtitle Talking-head pipeline: 8 new tools, Remotion TalkingHead composition, and skill rewrites 2026-04-01 10:00:15 -07:00
video feat(character-animation): add local rigged character pipeline 2026-04-28 08:11:02 -07:00
__init__.py Initial release — OpenMontage: the first open-source agentic video production system 2026-03-29 08:25:17 -07:00
base_tool.py feat(google): support service-account auth for TTS + Imagen, fix false availability 2026-06-22 17:53:10 +05:30
cost_tracker.py Add reference video input analysis workflow 2026-04-04 10:01:11 -07:00
google_credentials.py feat(google): support service-account auth for TTS + Imagen, fix false availability 2026-06-22 17:53:10 +05:30
tool_registry.py feat(google): support service-account auth for TTS + Imagen, fix false availability 2026-06-22 17:53:10 +05:30