react-native-davoice-tts 1.0.424 → 1.0.425
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 +19 -0
- package/ios/STTRNBridge/STTBridge.m +7 -0
- package/ios/SpeechBridge/SpeechBridge.m +7 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/Info.plist +5 -5
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/DavoiceTTS +0 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Headers/DavoiceTTS-Swift.h +1 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.abi.json +135 -76
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.private.swiftinterface +1 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.swiftinterface +1 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/DavoiceTTS +0 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Headers/DavoiceTTS-Swift.h +2 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.abi.json +135 -76
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +1 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.swiftinterface +1 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.abi.json +135 -76
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +1 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +1 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/_CodeSignature/CodeRequirements-1 +0 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/_CodeSignature/CodeResources +27 -27
- package/package.json +1 -1
- package/speech/index.d.ts +21 -0
- package/speech/index.ts +28 -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.441" # 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
|
+
6fe693390df0119d8fb02e1736ed0707 tts-1.0.0.aar
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
b0e4cd9e8704c4859dfae3976fe7161d2eaf34d9 tts-1.0.0.aar
|
|
@@ -191,6 +191,25 @@ class STTModule(private val rc: ReactApplicationContext)
|
|
|
191
191
|
STT.isSpeechAvailable(rc) { ok -> p.resolve(ok) }
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
+
// Which recognition languages work on-device (Android 13+), which are downloading,
|
|
195
|
+
// downloadable, online-only, and which this app moved to the cloud.
|
|
196
|
+
@ReactMethod
|
|
197
|
+
fun getOnDeviceLanguages(p: Promise) {
|
|
198
|
+
STT.getOnDeviceLanguages(rc) { info ->
|
|
199
|
+
val out = Arguments.createMap()
|
|
200
|
+
for ((key, value) in info) {
|
|
201
|
+
when (value) {
|
|
202
|
+
null -> out.putNull(key)
|
|
203
|
+
is Boolean -> out.putBoolean(key, value)
|
|
204
|
+
is String -> out.putString(key, value)
|
|
205
|
+
is List<*> -> out.putArray(key, Arguments.createArray().apply { value.forEach { pushString(it.toString()) } })
|
|
206
|
+
else -> out.putString(key, value.toString())
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
p.resolve(out)
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
194
213
|
@ReactMethod
|
|
195
214
|
fun isRecognizing(cb: Callback) {
|
|
196
215
|
cb.invoke(stt?.isRecognizing() == true)
|
|
@@ -113,6 +113,13 @@ RCT_EXPORT_METHOD(destroySpeech:(RCTResponseSenderBlock)callback)
|
|
|
113
113
|
if (callback) callback(@[@(NO)]);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
+
// Which recognition languages work on-device (same keys as Android).
|
|
117
|
+
RCT_EXPORT_METHOD(getOnDeviceLanguages:(RCTPromiseResolveBlock)resolve
|
|
118
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
119
|
+
{
|
|
120
|
+
resolve([STT getOnDeviceLanguages]);
|
|
121
|
+
}
|
|
122
|
+
|
|
116
123
|
RCT_EXPORT_METHOD(isSpeechAvailable:(RCTResponseSenderBlock)callback)
|
|
117
124
|
{
|
|
118
125
|
[self ensureSTT];
|
|
@@ -1138,6 +1138,13 @@ RCT_EXPORT_METHOD(cancelSpeech:(RCTResponseSenderBlock)callback)
|
|
|
1138
1138
|
[self.stt cancelSpeech:^(BOOL ok) { if (callback) callback(@[@(NO)]); }];
|
|
1139
1139
|
}
|
|
1140
1140
|
|
|
1141
|
+
// Which recognition languages work on-device (same keys as Android).
|
|
1142
|
+
RCT_EXPORT_METHOD(getOnDeviceLanguages:(RCTPromiseResolveBlock)resolve
|
|
1143
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
1144
|
+
{
|
|
1145
|
+
resolve([STT getOnDeviceLanguages]);
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1141
1148
|
RCT_EXPORT_METHOD(isSpeechAvailable:(RCTResponseSenderBlock)callback)
|
|
1142
1149
|
{
|
|
1143
1150
|
[self ensureSTT];
|
|
@@ -8,32 +8,32 @@
|
|
|
8
8
|
<key>BinaryPath</key>
|
|
9
9
|
<string>DavoiceTTS.framework/DavoiceTTS</string>
|
|
10
10
|
<key>LibraryIdentifier</key>
|
|
11
|
-
<string>ios-
|
|
11
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
12
12
|
<key>LibraryPath</key>
|
|
13
13
|
<string>DavoiceTTS.framework</string>
|
|
14
14
|
<key>SupportedArchitectures</key>
|
|
15
15
|
<array>
|
|
16
16
|
<string>arm64</string>
|
|
17
|
+
<string>x86_64</string>
|
|
17
18
|
</array>
|
|
18
19
|
<key>SupportedPlatform</key>
|
|
19
20
|
<string>ios</string>
|
|
21
|
+
<key>SupportedPlatformVariant</key>
|
|
22
|
+
<string>simulator</string>
|
|
20
23
|
</dict>
|
|
21
24
|
<dict>
|
|
22
25
|
<key>BinaryPath</key>
|
|
23
26
|
<string>DavoiceTTS.framework/DavoiceTTS</string>
|
|
24
27
|
<key>LibraryIdentifier</key>
|
|
25
|
-
<string>ios-
|
|
28
|
+
<string>ios-arm64</string>
|
|
26
29
|
<key>LibraryPath</key>
|
|
27
30
|
<string>DavoiceTTS.framework</string>
|
|
28
31
|
<key>SupportedArchitectures</key>
|
|
29
32
|
<array>
|
|
30
33
|
<string>arm64</string>
|
|
31
|
-
<string>x86_64</string>
|
|
32
34
|
</array>
|
|
33
35
|
<key>SupportedPlatform</key>
|
|
34
36
|
<string>ios</string>
|
|
35
|
-
<key>SupportedPlatformVariant</key>
|
|
36
|
-
<string>simulator</string>
|
|
37
37
|
</dict>
|
|
38
38
|
</array>
|
|
39
39
|
<key>CFBundlePackageType</key>
|
|
Binary file
|
|
@@ -393,6 +393,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSArray<NSStri
|
|
|
393
393
|
- (void)setAECEnabled:(BOOL)enabled;
|
|
394
394
|
- (BOOL)isAECEnabled SWIFT_WARN_UNUSED_RESULT;
|
|
395
395
|
- (void)isSpeechAvailable:(void (^ _Nonnull)(BOOL))completion;
|
|
396
|
+
+ (NSDictionary<NSString *, id> * _Nonnull)getOnDeviceLanguages SWIFT_WARN_UNUSED_RESULT;
|
|
396
397
|
- (BOOL)isRecognizing SWIFT_WARN_UNUSED_RESULT;
|
|
397
398
|
- (void)startSpeechWithLocaleStr:(NSString * _Nullable)localeStr;
|
|
398
399
|
- (void)startSpeechWithLocaleStr:(NSString * _Nullable)localeStr onboardingJsonPath:(NSString * _Nonnull)onboardingJsonPath;
|