import type { ScenarioModel } from '../model/scenario-model.js'; import type { GenerateSoundOptions, GenerateSoundResult } from '../audio/stable-audio.js'; /** Generated sound effects go here unless outputPath says otherwise */ export declare const SFX_FOLDER = "audio/sfx"; export interface GenerateSoundEffectOptions { prompt: string; /** Components whose audio= plays the sound; they all share the one clip */ components?: string[]; /** File to write, relative to the scenario folder; default audio/sfx/.ogg */ outputPath?: string; seconds?: number; seed?: number; steps?: number; fadeOut?: number; /** * Set the components' audio= to the clip. By default only when audio= is empty, a stock * sound (catalog ID) or another generated effect, so narration is kept; true replaces * anything, false never assigns */ assign?: boolean; comfyUrl?: string; } export interface SoundEffectAssignment { component: string; /** The audio= value the clip replaced */ replacedAudio?: string; /** The audio= value that was kept because assign was not true */ keptAudio?: string; } export interface SoundEffectResult extends GenerateSoundResult { /** Relative to the scenario folder when inside it */ file: string; assignments: SoundEffectAssignment[]; } /** A file name from the start of the prompt: "Heavy door creaking open" -> heavy-door-creaking-open */ export declare function slugFromPrompt(prompt: string): string; /** * Generates one sound effect into the scenario folder and points the given components' * audio= at it. Missing components are checked before generating, so a typo costs nothing. */ export declare function generateSoundEffect(model: ScenarioModel | null, opts: GenerateSoundEffectOptions, generate: (o: GenerateSoundOptions) => Promise): Promise; //# sourceMappingURL=sound-effects.d.ts.map