Generate 16-bit game audio
audio_generateSynthesize deterministic 16-bit PCM WAV game audio as a job artifact: sfx presets (jump, coin, laser, explosion, powerup, hit, blip, pickup), win/lose jingles, or loopable BGM (exact-bar loops from bpm, bars, root, scaleMode, voice). Same payload + seed always returns identical bytes. The WAV arrives as an audio_wav artifact with a download URL in job_get.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bpm | No | ||
| bars | No | bgm loop length, 4/4 bars | |
| root | No | C | |
| seed | No | ||
| pitch | No | sfx frequency multiplier | |
| voice | No | square | |
| preset | No | sfx: jump|coin|laser|explosion|powerup|hit|blip|pickup; jingle: win|lose | |
| audioKind | Yes | ||
| projectId | Yes | Stable project ID returned by project_create or projects_list. | |
| scaleMode | No | major | |
| idempotencyKey | Yes | Stable caller-chosen key for safe retries of this same request. |