react-native-davoice-tts 1.0.323 → 1.0.325

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 (18) 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 +9 -0
  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 +287 -259
  8. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/DavoiceTTS +0 -0
  9. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.abi.json +8211 -8183
  10. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +76 -76
  11. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.swiftinterface +76 -76
  12. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.abi.json +8211 -8183
  13. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +76 -76
  14. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +76 -76
  15. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/_CodeSignature/CodeDirectory +0 -0
  16. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/_CodeSignature/CodeRequirements-1 +0 -0
  17. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/_CodeSignature/CodeResources +24 -24
  18. package/package.json +1 -1
@@ -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.205" # Update to your package version
5
+ s.version = "1.0.207" # 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
- 42672253290af681c13e0c48a8ea05dd tts-1.0.0.aar
1
+ 34d5e94e94ed16ab142e04079aec0966 tts-1.0.0.aar
@@ -1 +1 @@
1
- db50ab0dec3bc798242d72f812bf5d7b4f87ed0d tts-1.0.0.aar
1
+ f889edd5126c11cdfebd92848e74fad33ed38345 tts-1.0.0.aar
@@ -134,6 +134,8 @@ static AVAudioPCMBuffer *SB_MakeMonoF32Buffer(NSData *raw,
134
134
 
135
135
  // used only to gate TTS init until STT engine is “hot”
136
136
  @property (atomic, assign) BOOL sttEngineHot;
137
+ // retained so we can re-license a fresh STT instance after destroyAll
138
+ @property (nonatomic, copy, nullable) NSString *lastLicenseKey;
137
139
  @end
138
140
 
139
141
  @implementation SpeechBridge
@@ -243,6 +245,9 @@ RCT_EXPORT_MODULE(SpeechBridge)
243
245
  if (!self.stt) {
244
246
  self.stt = [STT new];
245
247
  self.stt.delegate = self;
248
+ if (self.lastLicenseKey) {
249
+ [self.stt setLicenseWithLicenseKey:self.lastLicenseKey];
250
+ }
246
251
  }
247
252
  }
248
253
 
@@ -396,6 +401,7 @@ RCT_EXPORT_METHOD(setLicense:(NSString *)licenseKey
396
401
  }
397
402
 
398
403
  dispatch_async(dispatch_get_main_queue(), ^{
404
+ self.lastLicenseKey = licenseKey;
399
405
  BOOL ttsOk = [DaVoiceTTS activateLicenseWithLicenseKey:licenseKey];
400
406
  [self ensureSTT];
401
407
  BOOL sttOk = [self.stt setLicenseWithLicenseKey:licenseKey];
@@ -444,6 +450,9 @@ RCT_EXPORT_METHOD(initAll:(NSDictionary *)opts
444
450
  if (!self.stt) {
445
451
  self.stt = [STT new];
446
452
  self.stt.delegate = self;
453
+ if (self.lastLicenseKey) {
454
+ [self.stt setLicenseWithLicenseKey:self.lastLicenseKey];
455
+ }
447
456
  }
448
457
  if (onboardingJsonPath && (id)onboardingJsonPath != [NSNull null] && onboardingJsonPath.length > 0) {
449
458
  [self.stt startSpeechWithLocaleStr:locale onboardingJsonPath:onboardingJsonPath];