mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-12 18:49:40 +08:00
refactor(tts): rename the speak method param
This commit is contained in:
parent
2245bb8050
commit
4bfceadb65
@ -42,14 +42,14 @@ export class TextToSpeech extends IonicNativePlugin {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* This function speaks
|
* This function speaks
|
||||||
* @param options {string | TTSOptions} Text to speak or TTSOptions
|
* @param textOrOptions {string | TTSOptions} Text to speak or TTSOptions
|
||||||
* @return {Promise<any>} Returns a promise that resolves when the speaking finishes
|
* @return {Promise<any>} Returns a promise that resolves when the speaking finishes
|
||||||
*/
|
*/
|
||||||
@Cordova({
|
@Cordova({
|
||||||
successIndex: 1,
|
successIndex: 1,
|
||||||
errorIndex: 2
|
errorIndex: 2
|
||||||
})
|
})
|
||||||
speak(options: string | TTSOptions): Promise<any> {
|
speak(textOrOptions: string | TTSOptions): Promise<any> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user