react-native-davoice 1.0.6 → 1.0.8

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/ios/SpeechBridge/SpeechBridge.m +26 -4
  3. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/DavoiceTTS +0 -0
  4. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.abi.json +6250 -6250
  5. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.private.swiftinterface +42 -42
  6. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.swiftinterface +42 -42
  7. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/DavoiceTTS +0 -0
  8. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.abi.json +6905 -6905
  9. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +43 -43
  10. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.swiftinterface +43 -43
  11. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.abi.json +6905 -6905
  12. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +43 -43
  13. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +43 -43
  14. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/_CodeSignature/CodeDirectory +0 -0
  15. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/_CodeSignature/CodeRequirements-1 +0 -0
  16. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/_CodeSignature/CodeResources +24 -24
  17. package/package.json +1 -1
  18. package/speech/index.ts +12 -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.189" # Update to your package version
5
+ s.version = "1.0.191" # 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 .
@@ -25,6 +25,14 @@ static BOOL SBHasSpeechRecognitionPermission(void) {
25
25
  return status == SFSpeechRecognizerAuthorizationStatusAuthorized;
26
26
  }
27
27
 
28
+ static void SBLog(NSString *format, ...) {
29
+ va_list args;
30
+ va_start(args, format);
31
+ NSString *msg = [[NSString alloc] initWithFormat:format arguments:args];
32
+ va_end(args);
33
+ NSLog(@"[SpeechBridge] %@", msg);
34
+ }
35
+
28
36
  // Make a mono Float32 AVAudioPCMBuffer from raw PCM payload (i16 or f32).
29
37
  // We accept either interleaved or non-interleaved input and mixdown to mono
30
38
  // (DaVoiceTTS.playBuffer will resample / normalize as needed).
@@ -491,20 +499,34 @@ RCT_EXPORT_METHOD(pauseSpeechRecognitionLite:(RCTResponseSenderBlock)callback)
491
499
  RCT_EXPORT_METHOD(unPauseSpeechRecognitionLite:(nonnull NSNumber *)times
492
500
  callback:(RCTResponseSenderBlock)callback)
493
501
  {
502
+ SBLog(@"unPauseSpeechRecognitionLite ENTER times=%@", times);
494
503
  // No-op if STT isn't initialized yet (avoid JS error spam).
495
- if (!self.stt) { if (callback) callback(@[@(YES)]); return; }
504
+ if (!self.stt) {
505
+ SBLog(@"unPauseSpeechRecognitionLite EXIT no STT instance");
506
+ if (callback) callback(@[@(YES)]);
507
+ return;
508
+ }
496
509
  [self.stt unPauseSpeechRecognitionLite:times];
510
+ SBLog(@"unPauseSpeechRecognitionLite AFTER Swift call times=%@", times);
497
511
  if (callback) callback(@[@(YES)]);
512
+ SBLog(@"unPauseSpeechRecognitionLite CALLBACK fired times=%@", times);
498
513
  }
499
514
 
500
- RCT_EXPORT_METHOD(unPauseSpeechRecognitionLite:(nonnull NSNumber *)times
501
- preFetch:(nonnull NSNumber *)preFetch
515
+ RCT_EXPORT_METHOD(unPauseSpeechRecognitionLiteWithPreFetch:(nonnull NSNumber *)times
516
+ preFetchMs:(nonnull NSNumber *)preFetch
502
517
  callback:(RCTResponseSenderBlock)callback)
503
518
  {
519
+ SBLog(@"unPauseSpeechRecognitionLiteWithPreFetch ENTER times=%@ preFetchMs=%@", times, preFetch);
504
520
  // No-op if STT isn't initialized yet (avoid JS error spam).
505
- if (!self.stt) { if (callback) callback(@[@(YES)]); return; }
521
+ if (!self.stt) {
522
+ SBLog(@"unPauseSpeechRecognitionLiteWithPreFetch EXIT no STT instance");
523
+ if (callback) callback(@[@(YES)]);
524
+ return;
525
+ }
506
526
  [self.stt unPauseSpeechRecognitionLite:times preFetch:preFetch];
527
+ SBLog(@"unPauseSpeechRecognitionLiteWithPreFetch AFTER Swift call times=%@ preFetchMs=%@", times, preFetch);
507
528
  if (callback) callback(@[@(YES)]);
529
+ SBLog(@"unPauseSpeechRecognitionLiteWithPreFetch CALLBACK fired times=%@ preFetchMs=%@", times, preFetch);
508
530
  }
509
531
 
510
532
  // Promise-based pause that resolves ONLY when iOS is actually settled in playback (mic released)