SpeechKit

Contents

Implementation of Nuance SpeechKit SDK on Ionic

https://github.com/Shmarkus/cordova-plugin-nuance-speechkit

Ionic SpeechKit插件的安装(Installation)

ionic cordova plugin add cordova-plugin-nuance-speechkit npm install @ionic-native/speechkit

Ionic SpeechKit插件支持的平台(Supported Platforms)

  • Android
  • iOS

Ionic SpeechKit插件的用法(Usage)

import { SpeechKit } from '@ionic-native/speechkit';

constructor(private speechkit: SpeechKit) { }


// find voice names that match language from: https://developer.nuance.com/public/index.php?task=supportedLanguages
this.speechkit.tts('Text to be read out loud', 'ENG-GBR', 'Serena').then(
  (msg) => { console.log(msg); },
  (err) => { console.log(err); }
);