youtube and PDF frame
This commit is contained in:
1 parent
be03bb295b
commit
0187e13c0c
6 files changed
+392
-8
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user