Ionic Framework 4 is almost here. Preview the beta docs and try it out now! Try Ionic 4 Beta

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
    
  2. Add this plugin to your app's module

Supported platforms

Usage

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

constructor(private speechkit: SpeechKit) { }


this.speechkit.tts('Text to be read out loud', 'ENG-GBR').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