Vue voice broadcast

how to turn the vue page to voice broadcast according to the text

Mar.02,2021

searched the Internet and found that a Speak.js js plug-in can recognize the content into voice and play it out. The link is http://www.5imoban.net/jiaoch.

. < hr >

since I haven't used it specifically, I can only give you some suggestions on using third-party plug-ins in vue :
1. Put the third-party files in the static directory, such as
in / static/js , and introduce it in main.js ( requires this plug-in to support import syntax ). import test from "/ static/js/xxx.js"
3. Register on vue prototype : Vue.prototype.$speak = test (here $speak can be named by yourself)
4. When in use, you can get plug-ins registered on vue prototype through this.$speak .

The specific usage of

is similar to that of an article I wrote: Vue with clipboard.js to copy content to the clipboard by clicking the button

< hr >
I hope my answer will be helpful to you!

new Audio(
  'http://tts.baidu.com/text2audio?cuid=baiduid&lan=zh&ctp=1&pdt=311&tex='
).play();
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b31d50-2bdbc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b31d50-2bdbc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?