From ccff1ac3efde2b4fc826d2f411d79e42d80dcb70 Mon Sep 17 00:00:00 2001 From: adryd Date: Fri, 4 Oct 2024 14:51:55 -0400 Subject: [PATCH] Enable speech-dispatcher support for TTS on linux (#874) --- src/main/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/index.ts b/src/main/index.ts index 2e0d6f7..4eb863d 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -60,6 +60,9 @@ function init() { // WidgetLayering (Vencord Added): Fix DevTools context menus https://github.com/electron/electron/issues/38790 disabledFeatures.push("WinRetrieveSuggestionsOnlyOnDemand", "HardwareMediaKeyHandling", "MediaSessionService"); + // Support TTS on Linux using speech-dispatcher + app.commandLine.appendSwitch("enable-speech-dispatcher"); + app.commandLine.appendSwitch("enable-features", [...new Set(enabledFeatures)].filter(Boolean).join(",")); app.commandLine.appendSwitch("disable-features", [...new Set(disabledFeatures)].filter(Boolean).join(","));