youtube and PDF frame

This commit is contained in:
polv committed 2026-03-25 13:02:29 +07:00
1 parent be03bb295b
commit 0187e13c0c
6 files changed
+392 -8

No files matched your search

+2 -1
View File
@@ -13,7 +13,7 @@
import { useTemplateRef } from "vue";
import { speak, getVoices } from "tauri-plugin-tts-api";
const { lang = "ko" } = defineProps<{
const { lang = "ko-KR" } = defineProps<{
class?: string;
lang?: string;
}>();
@@ -27,6 +27,7 @@ async function playAudio() {
if (!voices.length) return;
const v = voices[Math.floor(Math.random() * voices.length)];
console.log(JSON.stringify(v));
await speak({
text: mainEl.value.innerText,
language: null,