Vuepress Text To Speech Plugin allows you to create a renderless component that reads aloud the text content on the page.
Requires Vuepress 1.x.
npm i --save-dev vuepress-plugin-text-to-speech
# or
yarn add -D vuepress-plugin-text-to-speech
// config.js
module.exports = {
...
plugins: [
['text-to-speech', { /* options */ }]
]
}
<text-to-speech #default="{ toggle }">
<button @click="toggle">Toggle TTS</button>
</text-to-speech>
Refer to: https://khang-nd.github.io/vuepress-plugin-text-to-speech