vue-text-to-speech

A Vue.js component that convert text to speech

Usage no npm install needed!

<script type="module">
  import vueTextToSpeech from 'https://cdn.skypack.dev/vue-text-to-speech';
</script>

README

vue-text-to-speech

A Vue component that converts the text to speech.

Installation

npm i --save-dev vue-text-to-speech

Browser

Include the script file, then install the component with Vue.use(VueTextToSpeech); e.g.:

<script type="text/javascript" src="node_modules/vuejs/dist/vue.min.js"></script>
<script type="text/javascript" src="node_modules/text-to-speech/dist/vue-text-to-speech.min.js"></script>
<script type="text/javascript">
  Vue.use(VueTextToSpeech);
</script>

Module

import VueTextToSpeech from 'vue-text-to-speech';

Usage

Once installed, it can be used in a template as simply as:

<vue-text-to-speech></vue-text-to-speech>