diff --git a/src/bot/captionsProcedure.ts b/src/bot/captionsProcedure.ts index ba24430..50fb237 100644 --- a/src/bot/captionsProcedure.ts +++ b/src/bot/captionsProcedure.ts @@ -55,10 +55,9 @@ export class CaptionsProcedure { this._logger.info('Captions/transcription enabled'); - // Only try separate language setting if dialog wasn't already handled - if (!dialogHandled) { - await this._setSpokenLanguage(); - } + // Language setting skipped: spoken language is managed by the meeting organizer. + // The previous _setSpokenLanguage() call added ~30s delay searching for a dropdown + // that was never found, while captions already worked in the correct language. } /** @@ -368,7 +367,7 @@ export class CaptionsProcedure { private async _handleLanguageDialog(): Promise { try { const dialogSelector = '[data-tid="spoken-language-selection-dialog"]'; - await this._page.waitForSelector(dialogSelector, { timeout: 8000 }); + await this._page.waitForSelector(dialogSelector, { timeout: 3000 }); this._logger.info('Spoken language selection dialog appeared'); // Read current language from dropdown button