Skip to content
Nuance SpeechKit Cordova plugin implementation
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
www add voice parameter, closes #3 Oct 4, 2018
.gitignore initial commit (TTS implementation for Android) Oct 5, 2016
README.md
package.json fix startTTS not working on IOS, closes #3 Oct 30, 2018
plugin.xml

README.md

cordova-plugin-nuance-speechkit

This is an implementation of Nuance SpeechKit (v2.1+) SDK in Cordova (6.2+).

Installation

First create an account in the Nuance Developers site. Then open your account and find the URL and App Key for your account. Include the plugin to your project using standard plugin add commands like

cordova plugin add cordova-plugin-nuance-speechkit --variable URL=[your URL here] --variable APP_KEY=[your App Key here]

IMPORTANT: It is not possible to use the plugin without these variables!

Next, add Ionic native binding

npm i -s @ionic-native/speechkit

Add SpeechKit to your module providers section and you are ready

Sample

Sample project of Text to speech (Ionic 2)

Find out which languages are supported and what language codes are used

Quirks

Building for iOS

This plugin uses cordova-plugin-cocoapod-support to download the SpeechKit SDK. When adding plugin outside Apple ecosystem, you have to include the SpeechKit manually.

  • Add cordova-plugin-nuance-speechkit as described in Installation chapter
  • Add iOS platform (it will warn you about missing cocoapod binary)
  • Copy iOS platform to a Mac device and open Xcode
  • Download iOS SDK from Nuance Developer website
  • Move the SpeechKit.framework from extracted archive to Xcode Frameworks section
  • Profit!

TO-DO

  • Speech to text impl (ASR)
You can’t perform that action at this time.