@capacitor-community/text-to-speech 3.0.0 → 4.0.0
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/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</p>
|
|
7
7
|
|
|
8
8
|
<p align="center">
|
|
9
|
-
<img src="https://img.shields.io/maintenance/yes/
|
|
9
|
+
<img src="https://img.shields.io/maintenance/yes/2024?style=flat-square" />
|
|
10
10
|
<a href="https://github.com/capacitor-community/text-to-speech/actions?query=workflow%3A%22CI%22"><img src="https://img.shields.io/github/actions/workflow/status/capacitor-community/text-to-speech/ci.yml?branch=master&style=flat-square" /></a>
|
|
11
11
|
<a href="https://www.npmjs.com/package/@capacitor-community/text-to-speech"><img src="https://img.shields.io/npm/l/@capacitor-community/text-to-speech?style=flat-square" /></a>
|
|
12
12
|
<br>
|
package/android/build.gradle
CHANGED
|
@@ -11,7 +11,7 @@ buildscript {
|
|
|
11
11
|
mavenCentral()
|
|
12
12
|
}
|
|
13
13
|
dependencies {
|
|
14
|
-
classpath 'com.android.tools.build:gradle:8.
|
|
14
|
+
classpath 'com.android.tools.build:gradle:8.2.1'
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -19,10 +19,10 @@ apply plugin: 'com.android.library'
|
|
|
19
19
|
|
|
20
20
|
android {
|
|
21
21
|
namespace "com.getcapacitor.community.tts"
|
|
22
|
-
|
|
22
|
+
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34
|
|
23
23
|
defaultConfig {
|
|
24
24
|
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22
|
|
25
|
-
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion :
|
|
25
|
+
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34
|
|
26
26
|
versionCode 1
|
|
27
27
|
versionName "1.0"
|
|
28
28
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
@@ -12,6 +12,7 @@ import android.util.Log;
|
|
|
12
12
|
import com.getcapacitor.JSArray;
|
|
13
13
|
import com.getcapacitor.JSObject;
|
|
14
14
|
import java.util.ArrayList;
|
|
15
|
+
import java.util.Collections;
|
|
15
16
|
import java.util.Comparator;
|
|
16
17
|
import java.util.HashMap;
|
|
17
18
|
import java.util.Locale;
|
|
@@ -122,8 +123,14 @@ public class TextToSpeech implements android.speech.tts.TextToSpeech.OnInitListe
|
|
|
122
123
|
orderedVoices.add(supportedVoice);
|
|
123
124
|
}
|
|
124
125
|
|
|
125
|
-
|
|
126
|
-
|
|
126
|
+
Collections.sort(
|
|
127
|
+
orderedVoices,
|
|
128
|
+
new Comparator<Voice>() {
|
|
129
|
+
public int compare(Voice v1, Voice v2) {
|
|
130
|
+
return v1.hashCode() - v2.hashCode();
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
);
|
|
127
134
|
|
|
128
135
|
return orderedVoices;
|
|
129
136
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor-community/text-to-speech",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Capacitor plugin for synthesizing speech from text.",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"author": "Robin Genz <mail@robingenz.dev>",
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@capacitor/android": "
|
|
30
|
-
"@capacitor/cli": "
|
|
31
|
-
"@capacitor/core": "
|
|
29
|
+
"@capacitor/android": "6.0.0",
|
|
30
|
+
"@capacitor/cli": "6.0.0",
|
|
31
|
+
"@capacitor/core": "6.0.0",
|
|
32
32
|
"@capacitor/docgen": "0.2.0",
|
|
33
|
-
"@capacitor/ios": "
|
|
33
|
+
"@capacitor/ios": "6.0.0",
|
|
34
34
|
"@ionic/eslint-config": "0.3.0",
|
|
35
35
|
"@ionic/prettier-config": "1.0.1",
|
|
36
36
|
"@ionic/swiftlint-config": "1.1.2",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"typescript": "4.1.5"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@capacitor/core": "^
|
|
47
|
+
"@capacitor/core": "^6.0.0"
|
|
48
48
|
},
|
|
49
49
|
"files": [
|
|
50
50
|
"android/src/main/",
|