Need help upgrading to Ionic Framework 4.0? Get assistance with our Enterprise Migration Services EXPLORE NOW

SpeechKit

Improve this doc

Implementation of Nuance SpeechKit SDK on Ionic

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

Installation

  1. Install the Cordova and Ionic Native plugins:
    $ ionic cordova plugin add cordova-plugin-nuance-speechkit
    $ npm install --save @ionic-native/speechkit@4
    
  2. Add this plugin to your app's module

Supported platforms

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>

API

Native

General