Skip to content

Tell music from voice recordings when choosing a soundtrack - #22

Merged
davior merged 1 commit into
mainfrom
claude/admiring-planck-ggdijx
Oct 26, 2026
Merged

davior merged 1 commit into
mainfrom
claude/admiring-planck-ggdijx

Conversation

@davior

@davior davior commented Oct 26, 2026

Copy link
Copy Markdown
Owner

GAM now records what an audio file is: music, speech or sfx (davior/gam#49). With this PR, GVC uses that to stop a voice memo being picked as a soundtrack.

Changes

  • GamAssetRead.audio_kind is mapped from GAM. It is null when GAM doesn't know the kind, when GAM predates gam#49, or when the value isn't one GVC recognises, so this works against any GAM version.
  • The assistant sees the kind as "kind" in search_assets and get_asset results. The prompt now says:
    • use music for a soundtrack, or an unknown file whose name and music profile make it plainly a track;
    • never use speech for a soundtrack;
    • use sfx for sound effects and speech for extra voice.
  • The Sound picker shows "Speech" or "Sound effect" at the start of each result's summary line (via audioSummary in api/gam.ts), so a voice memo stands out in a list of tracks.
  • docs/plan-of-attack.md records the dependency as GAM-7.

Testing

  • pytest -q: 706 passed. New tests cover the client mapping (known kinds, an older GAM, an unrecognised value) and the assistant output.
  • npm run format:check, npm run lint, npm test (186 passed) and npm run build all clean.

Generated by Claude Code

GAM now records what an audio file is (davior/gam#49). GVC reads it:

- GamAssetRead.audio_kind: music, speech or sfx; null when not known or
  against a GAM without it, and for any value GVC does not recognise.
- search_assets and get_asset include it as "kind", and the prompt says
  to use music (or a plainly musical unknown) for a soundtrack, never
  speech, with sfx for sound effects.
- The Sound picker leads its summary line with "Speech" or "Sound
  effect", so a voice memo stands out in a list of tracks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DCL4jm6ogZBBhnjEfBBaXU
@davior
davior marked this pull request as ready for review October 26, 2026 12:24
@davior
davior merged commit fde8e30 into main Oct 26, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants