khang-nd / vuepress-plugin-text-to-speech

🔊 A Vuepress plugin that reads aloud the text content on the page
https://khang-nd.github.io/vuepress-plugin-text-to-speech
MIT License
2 stars 0 forks source link
text-to-speech vuepress vuepress-plugin

vuepress-plugin-text-to-speech

NPM VERSION NPM DOWNLOADS

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.

🚀 Quick start

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>

📚 Documentation & Demo

Refer to: https://khang-nd.github.io/vuepress-plugin-text-to-speech