Interface AudioFallbackEvent

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}`);
});
interface AudioFallbackEvent {
    type: "audio:generate:fallback";
    from: string;
    to: string;
    reason: string;
}

Properties

Properties

type: "audio:generate:fallback"

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

from: string

Identifier of the provider that failed.

to: string

Identifier of the provider that will be tried next.

reason: string

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