Text To Speech

Contents

Text to Speech plugin

https://github.com/vilic/cordova-plugin-tts

Stuck on a Cordova issue?

Installation

Community Enterprise
ionic cordova plugin add cordova-plugin-tts npm install @ionic-native/text-to-speech
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More   or   Contact Us
ionic activate-native-ee --key=YOURPRODUCTKEY ionic integrations add @ionic-native/text-to-speech

Supported Platforms

  • Android
  • iOS
  • Windows Phone 8

Usage

import { TextToSpeech } from '@ionic-native/text-to-speech/ngx';

constructor(private tts: TextToSpeech) { }

...

this.tts.speak('Hello World')
  .then(() => console.log('Success'))
  .catch((reason: any) => console.log(reason));