We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f230d3 commit 656b367Copy full SHA for 656b367
src/index.d.ts
@@ -1,12 +1,11 @@
1
export declare class TNSTextToSpeech {
2
+ init(): Promise<void>;
3
- async init();
4
-
5
/**
6
* Initiate the text to speech.
7
* @param {object} SpeakOptions - SpeakOptions object.
8
*/
9
- async speak(options: SpeakOptions);
+ speak(options: SpeakOptions): Promise<void>;
10
11
12
* Release the resources used by the TextToSpeech engine/synthesizer
src/texttospeech.ios.ts
@@ -45,7 +45,7 @@ export class TNSTextToSpeech {
45
delegate: MySpeechDelegate;
46
47
public async init() {
48
- //stub function to be like android
+ //stub function to be like android
49
}
50
public async speak(options: SpeakOptions): Promise<any> {
51
if (!this._speechSynthesizer) {
0 commit comments