feat(speechkit): plugin updated with voice parameter (#2761)

This commit is contained in:
Markus Karileet 2018-10-14 14:30:11 +03:00 committed by Daniel Sogl
parent 1a2dc3ee73
commit 4468b520ad

View File

@ -13,7 +13,8 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
* constructor(private speechkit: SpeechKit) { }
*
*
* this.speechkit.tts('Text to be read out loud', 'ENG-GBR').then(
* // 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); }
* );
@ -36,7 +37,8 @@ export class SpeechKit extends IonicNativePlugin {
@Cordova()
tts(
text: string,
language: string
language: string,
voice: string
): Promise<string> { return; }
/**