Skip to main content

Interface: AudioFallbackEvent

Defined in: packages/agentos/src/core/audio/FallbackAudioProxy.ts:61

Payload emitted on the audio:generate:fallback event when a provider in the chain fails and the proxy advances to the next candidate.

Example

emitter.on('audio:generate:fallback', (evt: AudioFallbackEvent) => {
console.warn(`${evt.from} -> ${evt.to}: ${evt.reason}`);
});

Properties

from

from: string

Defined in: packages/agentos/src/core/audio/FallbackAudioProxy.ts:65

Identifier of the provider that failed.


reason

reason: string

Defined in: packages/agentos/src/core/audio/FallbackAudioProxy.ts:69

Human-readable reason for the fallback (error message or "not supported").


to

to: string

Defined in: packages/agentos/src/core/audio/FallbackAudioProxy.ts:67

Identifier of the provider that will be tried next.


type

type: "audio:generate:fallback"

Defined in: packages/agentos/src/core/audio/FallbackAudioProxy.ts:63

The event discriminator. Always 'audio:generate:fallback'.