react-native-davoice-tts 1.0.262 → 1.0.265

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.
Files changed (17) hide show
  1. package/TTSRNBridge.podspec +1 -1
  2. package/android/libs/com/davoice/tts/1.0.0/tts-1.0.0.aar +0 -0
  3. package/android/libs/com/davoice/tts/1.0.0/tts-1.0.0.aar.md5 +1 -1
  4. package/android/libs/com/davoice/tts/1.0.0/tts-1.0.0.aar.sha1 +1 -1
  5. package/ios/SpeechBridge/SpeechBridge.m +4 -2
  6. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/DavoiceTTS +0 -0
  7. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.abi.json +2970 -2970
  8. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.private.swiftinterface +12 -12
  9. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.swiftinterface +12 -12
  10. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/DavoiceTTS +0 -0
  11. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.abi.json +8 -8
  12. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.abi.json +8 -8
  13. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/_CodeSignature/CodeDirectory +0 -0
  14. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/_CodeSignature/CodeRequirements-1 +0 -0
  15. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/_CodeSignature/CodeResources +12 -12
  16. package/package.json +1 -1
  17. package/speech/index.ts +11 -2
@@ -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.135" # Update to your package version
5
+ s.version = "1.0.138" # 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 .
@@ -1 +1 @@
1
- 7686ba29355fc01a6c6f7faa16cbd58c tts-1.0.0.aar
1
+ 63d727e6d55dbc5154f4339f27cde247 tts-1.0.0.aar
@@ -1 +1 @@
1
- 373b9581501382fa52186f155bb38edfe5b16baf tts-1.0.0.aar
1
+ 9407940c8e4d0bf5ca3a35bdb319cb77926d1176 tts-1.0.0.aar
@@ -321,7 +321,8 @@ RCT_EXPORT_METHOD(initAll:(NSDictionary *)opts
321
321
 
322
322
  RCT_EXPORT_METHOD(pauseSpeechRecognitionLite:(RCTResponseSenderBlock)callback)
323
323
  {
324
- if (!self.stt) { if (callback) callback(@[@(NO)]); return; }
324
+ // No-op if STT isn't initialized yet (avoid JS error spam).
325
+ if (!self.stt) { if (callback) callback(@[@(YES)]); return; }
325
326
  [self.stt pauseSpeechRecognitionLite];
326
327
  if (callback) callback(@[@(YES)]);
327
328
  }
@@ -329,7 +330,8 @@ RCT_EXPORT_METHOD(pauseSpeechRecognitionLite:(RCTResponseSenderBlock)callback)
329
330
  RCT_EXPORT_METHOD(unPauseSpeechRecognitionLite:(nonnull NSNumber *)times
330
331
  callback:(RCTResponseSenderBlock)callback)
331
332
  {
332
- if (!self.stt) { if (callback) callback(@[@(NO)]); return; }
333
+ // No-op if STT isn't initialized yet (avoid JS error spam).
334
+ if (!self.stt) { if (callback) callback(@[@(YES)]); return; }
333
335
  [self.stt unPauseSpeechRecognitionLite:times];
334
336
  if (callback) callback(@[@(YES)]);
335
337
  }