Skip to content

Commit b1f3a09

Browse files
author
hoang.tran12
committed
test chrome.tts
1 parent c5d13a0 commit b1f3a09

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/textToSpeech.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,11 @@ export default {
1313
window.open("https://j2team.dev/tools/text-to-speech");
1414
},
1515
};
16+
17+
const backup = () => {
18+
// https://developer.chrome.com/docs/extensions/reference/api/tts
19+
UfsGlobal.Extension.runInBackground("chrome.tts.speak", [
20+
"Xin chào tất cả mọi người.",
21+
{ lang: "vi-VN", rate: 0.1 },
22+
]);
23+
};

0 commit comments

Comments
 (0)