mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-31 18:49:43 +08:00
feat(speechkit): plugin updated with voice parameter (#2761)
This commit is contained in:
parent
1a2dc3ee73
commit
4468b520ad
@ -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; }
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user