feat: TTS with audio ducking
Some checks failed
TrafficCue CI / check (push) Has been cancelled
TrafficCue CI / build (push) Has been cancelled

This commit is contained in:
Cfp
2025-06-25 13:21:31 +02:00
parent a2a8255ebf
commit dc4679f072
12 changed files with 374 additions and 23 deletions

View File

@ -27,6 +27,7 @@
import * as Popover from "../ui/popover";
import { routing } from "$lib/services/navigation/routing.svelte";
import InRouteSidebar from "./sidebar/InRouteSidebar.svelte";
import say from "$lib/services/navigation/TTS";
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const views: Record<string, Component<any>> = {
@ -197,6 +198,15 @@
>
Join Remote Location
</Button>
<Button
variant="outline"
onclick={async () => {
// await say("This is a test of the text to speech system.");
await say("Dies ist ein Test des Text-zu-Sprache-Systems.");
}}
>
Test TTS
</Button>
</div>
</Popover.Content>
</Popover.Root>