Flutter教程

SpeechKit

Contents

Implementation of Nuance SpeechKit SDK on Ionic

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

联系我们?

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic's experts offer official maintenance, support, and integration help.

Contact Us Today!

Ionic SpeechKit插件的安装(Installation)

ionic cordova plugin add cordova-plugin-nuance-speechkit npm install @ionic-native/speechkit
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
ionic enterprise register --key=YOURPRODUCTKEY npm install @ionic-enterprise/speechkit

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

  • Android
  • iOS

Ionic SpeechKit插件的用法(Usage)

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

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); }
);