react-native-davoice-tts 1.0.305 → 1.0.307
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/ios/SpeechBridge/SpeechBridge.m +17 -2
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/DavoiceTTS +0 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.abi.json +8831 -8831
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.private.swiftinterface +48 -48
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.swiftinterface +48 -48
- 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/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.abi.json +4092 -4092
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +12 -12
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.swiftinterface +12 -12
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.abi.json +4092 -4092
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +12 -12
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +12 -12
- 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 +24 -24
- package/package.json +1 -1
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/DaVoiceSTT.swift.AEC.CRASH.ETC +0 -2853
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/DaVoiceSTT.swift.AEC.CRASH.ETC +0 -2853
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.180" # 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 .
|
|
@@ -281,10 +281,25 @@ RCT_EXPORT_METHOD(initAll:(NSDictionary *)opts
|
|
|
281
281
|
![modelPath hasPrefix:@"file://"] &&
|
|
282
282
|
[[modelPath lowercaseString] hasSuffix:@".onnx"];
|
|
283
283
|
|
|
284
|
+
// ✅ Bare .dm name (no slashes, no scheme) — try resolution first, fall back to bare name.
|
|
285
|
+
BOOL isBareDmName =
|
|
286
|
+
(modelPath != nil) &&
|
|
287
|
+
([modelPath rangeOfString:@"/"].location == NSNotFound) &&
|
|
288
|
+
([modelPath rangeOfString:@"://"].location == NSNotFound) &&
|
|
289
|
+
![modelPath hasPrefix:@"file://"] &&
|
|
290
|
+
[[modelPath lowercaseString] hasSuffix:@".dm"];
|
|
291
|
+
|
|
284
292
|
if (isBareOnnxName) {
|
|
285
293
|
modelURL = [NSURL fileURLWithPath:modelPath];
|
|
286
294
|
} else {
|
|
287
295
|
modelURL = [self resolveLocalURLFromPathOrURL:modelPath];
|
|
296
|
+
|
|
297
|
+
// ✅ Fallback for bare .dm: if resolution failed, let native core search (same as .onnx behavior).
|
|
298
|
+
if (!modelURL && isBareDmName) {
|
|
299
|
+
NSLog(@"[TTS] INIT: bare .dm name could not be resolved, falling back to bare path: %@", modelPath);
|
|
300
|
+
modelURL = [NSURL fileURLWithPath:modelPath];
|
|
301
|
+
}
|
|
302
|
+
|
|
288
303
|
if (!modelURL) {
|
|
289
304
|
self.initializing = NO;
|
|
290
305
|
[self.stt destroySpeech:nil];
|
|
@@ -293,8 +308,8 @@ RCT_EXPORT_METHOD(initAll:(NSDictionary *)opts
|
|
|
293
308
|
return;
|
|
294
309
|
}
|
|
295
310
|
|
|
296
|
-
// Verify file exists for local file URLs
|
|
297
|
-
if (modelURL.isFileURL && ![[NSFileManager defaultManager] fileExistsAtPath:modelURL.path]) {
|
|
311
|
+
// Verify file exists for local file URLs (skip for bare .dm fallback — native core will search)
|
|
312
|
+
if (!isBareDmName && modelURL.isFileURL && ![[NSFileManager defaultManager] fileExistsAtPath:modelURL.path]) {
|
|
298
313
|
self.initializing = NO;
|
|
299
314
|
[self.stt destroySpeech:nil];
|
|
300
315
|
self.stt = nil;
|