react-native-davoice-tts 1.0.285 → 1.0.287
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/TTSRNBridge.podspec +1 -1
- package/android/libs/com/davoice/tts/1.0.0/tts-1.0.0.aar +0 -0
- package/android/libs/com/davoice/tts/1.0.0/tts-1.0.0.aar.md5 +1 -1
- package/android/libs/com/davoice/tts/1.0.0/tts-1.0.0.aar.sha1 +1 -1
- package/android/src/main/java/com/davoice/stt/rn/STTModule.kt +13 -3
- package/package.json +1 -1
- package/speech/index.ts +1 -0
package/TTSRNBridge.podspec
CHANGED
|
@@ -2,7 +2,7 @@ require 'json'
|
|
|
2
2
|
|
|
3
3
|
Pod::Spec.new do |s|
|
|
4
4
|
s.name = "TTSRNBridge"
|
|
5
|
-
s.version = "1.0.
|
|
5
|
+
s.version = "1.0.160" # Update to your package version
|
|
6
6
|
s.summary = "TTS for React Native."
|
|
7
7
|
s.description = <<-DESC
|
|
8
8
|
A React Native module for tts .
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
f4ecd8eae1590f5f7707f0d9c08c3caf tts-1.0.0.aar
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
2b02ffe334bc31c6647a94e97fa8ed5b1c23f970 tts-1.0.0.aar
|
|
@@ -39,9 +39,19 @@ class STTModule(private val rc: ReactApplicationContext)
|
|
|
39
39
|
// ANDROID expects (locale, options, callback) like @react-native-voice
|
|
40
40
|
@ReactMethod
|
|
41
41
|
fun startSpeech(locale: String?, options: ReadableMap, cb: Callback) {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
var onboardingJson: String? = null
|
|
43
|
+
try {
|
|
44
|
+
if (options.hasKey("onboardingJsonPath") && !options.isNull("onboardingJsonPath")) {
|
|
45
|
+
val p = options.getString("onboardingJsonPath")
|
|
46
|
+
if (!p.isNullOrBlank()) {
|
|
47
|
+
onboardingJson = java.io.File(p).readText(Charsets.UTF_8)
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
} catch (_: Throwable) {
|
|
51
|
+
onboardingJson = null
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
ensure().startSpeech(locale, onboardingJson, null)
|
|
45
55
|
cb.invoke(false) // parity with voice: callback(false) on success
|
|
46
56
|
}
|
|
47
57
|
|
package/package.json
CHANGED
package/speech/index.ts
CHANGED