All events are being dispatched from Audio App Kit to the window object. In order to listen for events, an event listener needs to be created.Each event is of type CustomEvent and it contains the payload within event.detail property.
{ models: [ { label: "English", // The language label of the model code: "en", // The language code of the model downloaded: true, // Whether the model is downloaded fileSize: 83886080, // File size in bytes estimatedDownloadTime: 120, // Estimated download time in seconds newVersionAvailable: false, // Whether a new version of the model is available newVersionBannerContent: '✨ New English AI voice is out', // The banner content for the new version of the model }, // ... ],}
{ languageCode: 'en', // The language code of the model errorType: agentNotify.LanguageModelDownloadErrorPayload_ErrorType.STORAGE_FULL, // Storage full error}