SpeechKit
Implementation of Nuance SpeechKit SDK on Ionic
Repo: https://github.com/Shmarkus/cordova-plugin-nuance-speechkit
Installation
- Install the Cordova and Ionic Native plugins:
$ ionic cordova plugin add cordova-plugin-nuance-speechkit $ npm install --save @ionic-native/speechkit@4
- Add this plugin to your app's module
Supported platforms
- Android
- iOS
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); } );
Instance Members
tts()
Speak text out loud in given language
Returns: Promise<string>
asr()
Platforms:Android
Try to recognize what the user said
Returns: Promise<string>