@awesome-cordova-plugins/text-to-speech-advanced 7.0.1 → 8.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +6 -1
- package/index.js +14 -58
- package/ngx/bundle.js +18 -48
- package/ngx/index.d.ts +3 -0
- package/ngx/index.js +21 -50
- package/ngx/package.json +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -42,21 +42,26 @@ export interface TTSVoice {
|
|
|
42
42
|
* TTSOptions
|
|
43
43
|
* TTSVoice
|
|
44
44
|
*/
|
|
45
|
-
export declare class
|
|
45
|
+
export declare class TextToSpeechAdvancedOriginal extends AwesomeCordovaNativePlugin {
|
|
46
46
|
/**
|
|
47
47
|
* This function speaks
|
|
48
|
+
*
|
|
48
49
|
* @param textOrOptions {string | TTSOptions} Text to speak or TTSOptions
|
|
49
50
|
* @returns {Promise<any>} Returns a promise that resolves when the speaking finishes
|
|
50
51
|
*/
|
|
51
52
|
speak(textOrOptions: string | TTSOptions): Promise<any>;
|
|
52
53
|
/**
|
|
53
54
|
* Stop any current TTS playback
|
|
55
|
+
*
|
|
54
56
|
* @returns {Promise<any>}
|
|
55
57
|
*/
|
|
56
58
|
stop(): Promise<any>;
|
|
57
59
|
/**
|
|
58
60
|
* Get all voices
|
|
61
|
+
*
|
|
59
62
|
* @returns {Promise<TTSVoice[]>}
|
|
60
63
|
*/
|
|
61
64
|
getVoices(): Promise<TTSVoice[]>;
|
|
62
65
|
}
|
|
66
|
+
|
|
67
|
+
export declare const TextToSpeechAdvanced: TextToSpeechAdvancedOriginal;
|
package/index.js
CHANGED
|
@@ -13,66 +13,22 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
13
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
14
|
};
|
|
15
15
|
})();
|
|
16
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
17
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
18
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
20
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21
|
-
};
|
|
22
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
23
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
24
|
-
};
|
|
25
16
|
import { AwesomeCordovaNativePlugin, cordova } from '@awesome-cordova-plugins/core';
|
|
26
|
-
var
|
|
27
|
-
__extends(
|
|
28
|
-
function
|
|
17
|
+
var TextToSpeechAdvancedOriginal = /** @class */ (function (_super) {
|
|
18
|
+
__extends(TextToSpeechAdvancedOriginal, _super);
|
|
19
|
+
function TextToSpeechAdvancedOriginal() {
|
|
29
20
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
30
21
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
* Stop any current TTS playback
|
|
41
|
-
* @returns {Promise<any>}
|
|
42
|
-
*/
|
|
43
|
-
TextToSpeechAdvanced.prototype.stop = function () {
|
|
44
|
-
return;
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* Get all voices
|
|
48
|
-
* @returns {Promise<TTSVoice[]>}
|
|
49
|
-
*/
|
|
50
|
-
TextToSpeechAdvanced.prototype.getVoices = function () {
|
|
51
|
-
return;
|
|
52
|
-
};
|
|
53
|
-
var _a, _b, _c, _d;
|
|
54
|
-
__decorate([
|
|
55
|
-
Cordova({
|
|
56
|
-
successIndex: 1,
|
|
57
|
-
errorIndex: 2,
|
|
58
|
-
}),
|
|
59
|
-
__metadata("design:type", Function),
|
|
60
|
-
__metadata("design:paramtypes", [Object]),
|
|
61
|
-
__metadata("design:returntype", typeof (_b = typeof Promise !== "undefined" && Promise) === "function" ? _b : Object)
|
|
62
|
-
], TextToSpeechAdvanced.prototype, "speak", null);
|
|
63
|
-
__decorate([
|
|
64
|
-
Cordova(),
|
|
65
|
-
__metadata("design:type", Function),
|
|
66
|
-
__metadata("design:paramtypes", []),
|
|
67
|
-
__metadata("design:returntype", typeof (_c = typeof Promise !== "undefined" && Promise) === "function" ? _c : Object)
|
|
68
|
-
], TextToSpeechAdvanced.prototype, "stop", null);
|
|
69
|
-
__decorate([
|
|
70
|
-
Cordova(),
|
|
71
|
-
__metadata("design:type", Function),
|
|
72
|
-
__metadata("design:paramtypes", []),
|
|
73
|
-
__metadata("design:returntype", typeof (_d = typeof Promise !== "undefined" && Promise) === "function" ? _d : Object)
|
|
74
|
-
], TextToSpeechAdvanced.prototype, "getVoices", null);
|
|
75
|
-
return TextToSpeechAdvanced;
|
|
22
|
+
TextToSpeechAdvancedOriginal.prototype.speak = function (textOrOptions) { return cordova(this, "speak", { "successIndex": 1, "errorIndex": 2 }, arguments); };
|
|
23
|
+
TextToSpeechAdvancedOriginal.prototype.stop = function () { return cordova(this, "stop", {}, arguments); };
|
|
24
|
+
TextToSpeechAdvancedOriginal.prototype.getVoices = function () { return cordova(this, "getVoices", {}, arguments); };
|
|
25
|
+
TextToSpeechAdvancedOriginal.pluginName = "Text To Speech Advanced";
|
|
26
|
+
TextToSpeechAdvancedOriginal.plugin = "cordova-plugin-tts-advanced";
|
|
27
|
+
TextToSpeechAdvancedOriginal.pluginRef = "TTS";
|
|
28
|
+
TextToSpeechAdvancedOriginal.repo = "https://github.com/spasma/cordova-plugin-tts-advanced";
|
|
29
|
+
TextToSpeechAdvancedOriginal.platforms = ["Android", "iOS"];
|
|
30
|
+
return TextToSpeechAdvancedOriginal;
|
|
76
31
|
}(AwesomeCordovaNativePlugin));
|
|
32
|
+
var TextToSpeechAdvanced = new TextToSpeechAdvancedOriginal();
|
|
77
33
|
export { TextToSpeechAdvanced };
|
|
78
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
34
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvQGF3ZXNvbWUtY29yZG92YS1wbHVnaW5zL3BsdWdpbnMvdGV4dC10by1zcGVlY2gtYWR2YW5jZWQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7O0FBQ0EsT0FBTyx1Q0FBK0MsTUFBTSwrQkFBK0IsQ0FBQzs7SUF1RGxELHdDQUEwQjs7OztJQVdsRSxvQ0FBSyxhQUFDLGFBQWtDO0lBVXhDLG1DQUFJO0lBVUosd0NBQVM7Ozs7OzsrQkF2Rlg7RUF3RDBDLDBCQUEwQjtTQUF2RCxvQkFBb0IiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJbmplY3RhYmxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBDb3Jkb3ZhLCBBd2Vzb21lQ29yZG92YU5hdGl2ZVBsdWdpbiwgUGx1Z2luIH0gZnJvbSAnQGF3ZXNvbWUtY29yZG92YS1wbHVnaW5zL2NvcmUnO1xuXG5leHBvcnQgaW50ZXJmYWNlIFRUU09wdGlvbnMge1xuICAvKiogdGV4dCB0byBzcGVhayAqL1xuICB0ZXh0OiBzdHJpbmc7XG4gIC8qKiBjYW5jZWwsIGJvb2xlYW46IHRydWUvZmFsc2UgKi9cbiAgaWRlbnRpZmllcjogc3RyaW5nO1xuICAvKiogdm9pY2UgaWRlbnRpZmllciAoaU9TIC8gQW5kcm9pZCkgZnJvbSBnZXRWb2ljZXMgKi9cbiAgbG9jYWxlPzogc3Ry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gIH1cblxuICAvKipcbiAgICogR2V0IGFsbCB2b2ljZXNcbiAgICpcbiAgICogQHJldHVybnMge1Byb21pc2U8VFRTVm9pY2VbXT59XG4gICAqL1xuICBAQ29yZG92YSgpXG4gIGdldFZvaWNlcygpOiBQcm9taXNlPFRUU1ZvaWNlW10+IHtcbiAgICByZXR1cm47XG4gIH1cbn1cbiJdfQ==
|
package/ngx/bundle.js
CHANGED
|
@@ -23,55 +23,25 @@ function _interopNamespaceDefault(e) {
|
|
|
23
23
|
|
|
24
24
|
var i0__namespace = /*#__PURE__*/_interopNamespaceDefault(i0);
|
|
25
25
|
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
* @param textOrOptions {string | TTSOptions} Text to speak or TTSOptions
|
|
31
|
-
* @returns {Promise<any>} Returns a promise that resolves when the speaking finishes
|
|
32
|
-
*/
|
|
33
|
-
speak(textOrOptions) {
|
|
34
|
-
return;
|
|
26
|
+
var TextToSpeechAdvanced = /** @class */ (function (_super) {
|
|
27
|
+
tslib.__extends(TextToSpeechAdvanced, _super);
|
|
28
|
+
function TextToSpeechAdvanced() {
|
|
29
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
35
30
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
TextToSpeechAdvanced.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0__namespace, type: TextToSpeechAdvanced, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
52
|
-
TextToSpeechAdvanced.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0__namespace, type: TextToSpeechAdvanced });
|
|
53
|
-
tslib.__decorate([
|
|
54
|
-
Cordova({
|
|
55
|
-
successIndex: 1,
|
|
56
|
-
errorIndex: 2,
|
|
57
|
-
}),
|
|
58
|
-
tslib.__metadata("design:type", Function),
|
|
59
|
-
tslib.__metadata("design:paramtypes", [Object]),
|
|
60
|
-
tslib.__metadata("design:returntype", typeof (_b = typeof Promise !== "undefined" && Promise) === "function" ? _b : Object)
|
|
61
|
-
], TextToSpeechAdvanced.prototype, "speak", null);
|
|
62
|
-
tslib.__decorate([
|
|
63
|
-
Cordova(),
|
|
64
|
-
tslib.__metadata("design:type", Function),
|
|
65
|
-
tslib.__metadata("design:paramtypes", []),
|
|
66
|
-
tslib.__metadata("design:returntype", typeof (_c = typeof Promise !== "undefined" && Promise) === "function" ? _c : Object)
|
|
67
|
-
], TextToSpeechAdvanced.prototype, "stop", null);
|
|
68
|
-
tslib.__decorate([
|
|
69
|
-
Cordova(),
|
|
70
|
-
tslib.__metadata("design:type", Function),
|
|
71
|
-
tslib.__metadata("design:paramtypes", []),
|
|
72
|
-
tslib.__metadata("design:returntype", typeof (_d = typeof Promise !== "undefined" && Promise) === "function" ? _d : Object)
|
|
73
|
-
], TextToSpeechAdvanced.prototype, "getVoices", null);
|
|
74
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0__namespace, type: TextToSpeechAdvanced, decorators: [{
|
|
31
|
+
TextToSpeechAdvanced.prototype.speak = function (textOrOptions) { return core.cordova(this, "speak", { "successIndex": 1, "errorIndex": 2 }, arguments); };
|
|
32
|
+
TextToSpeechAdvanced.prototype.stop = function () { return core.cordova(this, "stop", {}, arguments); };
|
|
33
|
+
TextToSpeechAdvanced.prototype.getVoices = function () { return core.cordova(this, "getVoices", {}, arguments); };
|
|
34
|
+
TextToSpeechAdvanced.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TextToSpeechAdvanced, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
35
|
+
TextToSpeechAdvanced.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TextToSpeechAdvanced });
|
|
36
|
+
TextToSpeechAdvanced.pluginName = "Text To Speech Advanced";
|
|
37
|
+
TextToSpeechAdvanced.plugin = "cordova-plugin-tts-advanced";
|
|
38
|
+
TextToSpeechAdvanced.pluginRef = "TTS";
|
|
39
|
+
TextToSpeechAdvanced.repo = "https://github.com/spasma/cordova-plugin-tts-advanced";
|
|
40
|
+
TextToSpeechAdvanced.platforms = ["Android", "iOS"];
|
|
41
|
+
TextToSpeechAdvanced = tslib.__decorate([], TextToSpeechAdvanced);
|
|
42
|
+
return TextToSpeechAdvanced;
|
|
43
|
+
}(core.AwesomeCordovaNativePlugin));
|
|
44
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TextToSpeechAdvanced, decorators: [{
|
|
75
45
|
type: i0.Injectable
|
|
76
46
|
}], propDecorators: { speak: [], stop: [], getVoices: [] } });
|
|
77
47
|
|
package/ngx/index.d.ts
CHANGED
|
@@ -45,17 +45,20 @@ export interface TTSVoice {
|
|
|
45
45
|
export declare class TextToSpeechAdvanced extends AwesomeCordovaNativePlugin {
|
|
46
46
|
/**
|
|
47
47
|
* This function speaks
|
|
48
|
+
*
|
|
48
49
|
* @param textOrOptions {string | TTSOptions} Text to speak or TTSOptions
|
|
49
50
|
* @returns {Promise<any>} Returns a promise that resolves when the speaking finishes
|
|
50
51
|
*/
|
|
51
52
|
speak(textOrOptions: string | TTSOptions): Promise<any>;
|
|
52
53
|
/**
|
|
53
54
|
* Stop any current TTS playback
|
|
55
|
+
*
|
|
54
56
|
* @returns {Promise<any>}
|
|
55
57
|
*/
|
|
56
58
|
stop(): Promise<any>;
|
|
57
59
|
/**
|
|
58
60
|
* Get all voices
|
|
61
|
+
*
|
|
59
62
|
* @returns {Promise<TTSVoice[]>}
|
|
60
63
|
*/
|
|
61
64
|
getVoices(): Promise<TTSVoice[]>;
|
package/ngx/index.js
CHANGED
|
@@ -1,56 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
import { __decorate, __metadata } from "tslib";
|
|
1
|
+
import { __decorate, __extends } from "tslib";
|
|
3
2
|
import { Injectable } from '@angular/core';
|
|
4
3
|
import { AwesomeCordovaNativePlugin, cordova } from '@awesome-cordova-plugins/core';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* @returns {Promise<any>} Returns a promise that resolves when the speaking finishes
|
|
11
|
-
*/
|
|
12
|
-
speak(textOrOptions) {
|
|
13
|
-
return;
|
|
5
|
+
var TextToSpeechAdvanced = /** @class */ (function (_super) {
|
|
6
|
+
__extends(TextToSpeechAdvanced, _super);
|
|
7
|
+
function TextToSpeechAdvanced() {
|
|
8
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
14
9
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
TextToSpeechAdvanced.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: TextToSpeechAdvanced, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
31
|
-
TextToSpeechAdvanced.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: TextToSpeechAdvanced });
|
|
32
|
-
__decorate([
|
|
33
|
-
Cordova({
|
|
34
|
-
successIndex: 1,
|
|
35
|
-
errorIndex: 2,
|
|
36
|
-
}),
|
|
37
|
-
__metadata("design:type", Function),
|
|
38
|
-
__metadata("design:paramtypes", [Object]),
|
|
39
|
-
__metadata("design:returntype", typeof (_b = typeof Promise !== "undefined" && Promise) === "function" ? _b : Object)
|
|
40
|
-
], TextToSpeechAdvanced.prototype, "speak", null);
|
|
41
|
-
__decorate([
|
|
42
|
-
Cordova(),
|
|
43
|
-
__metadata("design:type", Function),
|
|
44
|
-
__metadata("design:paramtypes", []),
|
|
45
|
-
__metadata("design:returntype", typeof (_c = typeof Promise !== "undefined" && Promise) === "function" ? _c : Object)
|
|
46
|
-
], TextToSpeechAdvanced.prototype, "stop", null);
|
|
47
|
-
__decorate([
|
|
48
|
-
Cordova(),
|
|
49
|
-
__metadata("design:type", Function),
|
|
50
|
-
__metadata("design:paramtypes", []),
|
|
51
|
-
__metadata("design:returntype", typeof (_d = typeof Promise !== "undefined" && Promise) === "function" ? _d : Object)
|
|
52
|
-
], TextToSpeechAdvanced.prototype, "getVoices", null);
|
|
53
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: TextToSpeechAdvanced, decorators: [{
|
|
10
|
+
TextToSpeechAdvanced.prototype.speak = function (textOrOptions) { return cordova(this, "speak", { "successIndex": 1, "errorIndex": 2 }, arguments); };
|
|
11
|
+
TextToSpeechAdvanced.prototype.stop = function () { return cordova(this, "stop", {}, arguments); };
|
|
12
|
+
TextToSpeechAdvanced.prototype.getVoices = function () { return cordova(this, "getVoices", {}, arguments); };
|
|
13
|
+
TextToSpeechAdvanced.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TextToSpeechAdvanced, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14
|
+
TextToSpeechAdvanced.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TextToSpeechAdvanced });
|
|
15
|
+
TextToSpeechAdvanced.pluginName = "Text To Speech Advanced";
|
|
16
|
+
TextToSpeechAdvanced.plugin = "cordova-plugin-tts-advanced";
|
|
17
|
+
TextToSpeechAdvanced.pluginRef = "TTS";
|
|
18
|
+
TextToSpeechAdvanced.repo = "https://github.com/spasma/cordova-plugin-tts-advanced";
|
|
19
|
+
TextToSpeechAdvanced.platforms = ["Android", "iOS"];
|
|
20
|
+
TextToSpeechAdvanced = __decorate([], TextToSpeechAdvanced);
|
|
21
|
+
return TextToSpeechAdvanced;
|
|
22
|
+
}(AwesomeCordovaNativePlugin));
|
|
23
|
+
export { TextToSpeechAdvanced };
|
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TextToSpeechAdvanced, decorators: [{
|
|
54
25
|
type: Injectable
|
|
55
26
|
}], propDecorators: { speak: [], stop: [], getVoices: [] } });
|
|
56
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvQGF3ZXNvbWUtY29yZG92YS1wbHVnaW5zL3BsdWdpbnMvdGV4dC10by1zcGVlY2gtYWR2YW5jZWQvbmd4L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sdUNBQStDLE1BQU0sK0JBQStCLENBQUM7OztJQXVEbEQsd0NBQTBCOzs7O0lBV2xFLG9DQUFLLGFBQUMsYUFBa0M7SUFVeEMsbUNBQUk7SUFVSix3Q0FBUztzSEEvQkUsb0JBQW9COzBIQUFwQixvQkFBb0I7Ozs7OztJQUFwQixvQkFBb0Isa0JBQXBCLG9CQUFvQjsrQkF4RGpDO0VBd0QwQywwQkFBMEI7U0FBdkQsb0JBQW9COzRGQUFwQixvQkFBb0I7a0JBRGhDLFVBQVU7OEJBWVQsS0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c1xuICAgKiBAcmV0dXJucyB7UHJvbWlzZTxhbnk+fSBSZXR1cm5zIGEgcHJvbWlzZSB0aGF0IHJlc29sdmVzIHdoZW4gdGhlIHNwZWFraW5nIGZpbmlzaGVzXG4gICAqL1xuICBAQ29yZG92YSh7XG4gICAgc3VjY2Vzc0luZGV4OiAxLFxuICAgIGVycm9ySW5kZXg6IDIsXG4gIH0pXG4gIHNwZWFrKHRleHRPck9wdGlvbnM6IHN0cmluZyB8IFRUU09wdGlvbnMpOiBQcm9taXNlPGFueT4ge1xuICAgIHJldHVybjtcbiAgfVxuXG4gIC8qKlxuICAgKiBTdG9wIGFueSBjdXJyZW50IFRUUyBwbGF5YmFja1xuICAgKlxuICAgKiBAcmV0dXJucyB7UHJvbWlzZTxhbnk+fVxuICAgKi9cbiAgQENvcmRvdmEoKVxuICBzdG9wKCk6IFByb21pc2U8YW55PiB7XG4gICAgcmV0dXJuO1xuICB9XG5cbiAgLyoqXG4gICAqIEdldCBhbGwgdm9pY2VzXG4gICAqXG4gICAqIEByZXR1cm5zIHtQcm9taXNlPFRUU1ZvaWNlW10+fVxuICAgKi9cbiAgQENvcmRvdmEoKVxuICBnZXRWb2ljZXMoKTogUHJvbWlzZTxUVFNWb2ljZVtdPiB7XG4gICAgcmV0dXJuO1xuICB9XG59XG4iXX0=
|
package/ngx/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"description":"Awesome Cordova Plugins - Native plugins for ionic apps","main":"index.js","module":"index.js","typings":"index.d.ts","author":"
|
|
1
|
+
{"description":"Awesome Cordova Plugins - Native plugins for ionic apps","main":"index.js","module":"index.js","typings":"index.d.ts","author":"ionic","license":"MIT","repository":{"type":"git","url":"https://github.com/danielsogl/awesome-cordova-plugins.git"},"name":"@awesome-cordova-plugins/text-to-speech-advanced","dependencies":{"@types/cordova":"latest"},"peerDependencies":{"rxjs":"^5.5.0 || ^6.5.0 || ^7.3.0","@awesome-cordova-plugins/core":"^8.0.2"},"version":"8.0.2"}
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"description":"Awesome Cordova Plugins - Native plugins for ionic apps","main":"index.js","module":"index.js","typings":"index.d.ts","author":"
|
|
1
|
+
{"description":"Awesome Cordova Plugins - Native plugins for ionic apps","main":"index.js","module":"index.js","typings":"index.d.ts","author":"ionic","license":"MIT","repository":{"type":"git","url":"https://github.com/danielsogl/awesome-cordova-plugins.git"},"name":"@awesome-cordova-plugins/text-to-speech-advanced","dependencies":{"@types/cordova":"latest"},"peerDependencies":{"rxjs":"^5.5.0 || ^6.5.0 || ^7.3.0","@awesome-cordova-plugins/core":"^8.0.2"},"version":"8.0.2"}
|