Interface BackgroundAudioPlayerOptions

interface BackgroundAudioPlayerOptions {
    ambientSound?: AudioSourceType | AudioConfig | AudioConfig[];
    streamTimeoutMs?: number;
    thinkingSound?: AudioSourceType | AudioConfig | AudioConfig[];
}

Properties

Ambient sound to play continuously in the background. Can be a file path, BuiltinAudioClip, or AudioConfig. File paths will be looped automatically.

streamTimeoutMs?: number

Stream timeout in milliseconds

Default Value

200

Sound to play when the agent is thinking. TODO (Brian): Implement thinking sound when AudioMixer becomes available