react-native-davoice-tts 1.0.318 → 1.0.320
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 +2 -25
- 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 +7936 -7936
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.private.swiftinterface +77 -77
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.swiftinterface +77 -77
- 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 +4949 -4949
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +75 -75
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.swiftinterface +75 -75
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.abi.json +4949 -4949
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +75 -75
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +75 -75
- 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/speech/index.ts +0 -1
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.200" # 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,14 +25,6 @@ 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
|
-
|
|
36
28
|
// Make a mono Float32 AVAudioPCMBuffer from raw PCM payload (i16 or f32).
|
|
37
29
|
// We accept either interleaved or non-interleaved input and mixdown to mono
|
|
38
30
|
// (DaVoiceTTS.playBuffer will resample / normalize as needed).
|
|
@@ -558,34 +550,20 @@ RCT_EXPORT_METHOD(pauseSpeechRecognitionLiteAsync:(nonnull NSNumber *)timeoutMs
|
|
|
558
550
|
RCT_EXPORT_METHOD(unPauseSpeechRecognitionLite:(nonnull NSNumber *)times
|
|
559
551
|
callback:(RCTResponseSenderBlock)callback)
|
|
560
552
|
{
|
|
561
|
-
SBLog(@"unPauseSpeechRecognitionLite ENTER times=%@", times);
|
|
562
553
|
// No-op if STT isn't initialized yet (avoid JS error spam).
|
|
563
|
-
if (!self.stt) {
|
|
564
|
-
SBLog(@"unPauseSpeechRecognitionLite EXIT no STT instance");
|
|
565
|
-
if (callback) callback(@[@(YES)]);
|
|
566
|
-
return;
|
|
567
|
-
}
|
|
554
|
+
if (!self.stt) { if (callback) callback(@[@(YES)]); return; }
|
|
568
555
|
[self.stt unPauseSpeechRecognitionLite:times];
|
|
569
|
-
SBLog(@"unPauseSpeechRecognitionLite AFTER Swift call times=%@", times);
|
|
570
556
|
if (callback) callback(@[@(YES)]);
|
|
571
|
-
SBLog(@"unPauseSpeechRecognitionLite CALLBACK fired times=%@", times);
|
|
572
557
|
}
|
|
573
558
|
|
|
574
559
|
RCT_EXPORT_METHOD(unPauseSpeechRecognitionLiteWithPreFetch:(nonnull NSNumber *)times
|
|
575
560
|
preFetchMs:(nonnull NSNumber *)preFetch
|
|
576
561
|
callback:(RCTResponseSenderBlock)callback)
|
|
577
562
|
{
|
|
578
|
-
SBLog(@"unPauseSpeechRecognitionLiteWithPreFetch ENTER times=%@ preFetchMs=%@", times, preFetch);
|
|
579
563
|
// No-op if STT isn't initialized yet (avoid JS error spam).
|
|
580
|
-
if (!self.stt) {
|
|
581
|
-
SBLog(@"unPauseSpeechRecognitionLiteWithPreFetch EXIT no STT instance");
|
|
582
|
-
if (callback) callback(@[@(YES)]);
|
|
583
|
-
return;
|
|
584
|
-
}
|
|
564
|
+
if (!self.stt) { if (callback) callback(@[@(YES)]); return; }
|
|
585
565
|
[self.stt unPauseSpeechRecognitionLite:times preFetch:preFetch];
|
|
586
|
-
SBLog(@"unPauseSpeechRecognitionLiteWithPreFetch AFTER Swift call times=%@ preFetchMs=%@", times, preFetch);
|
|
587
566
|
if (callback) callback(@[@(YES)]);
|
|
588
|
-
SBLog(@"unPauseSpeechRecognitionLiteWithPreFetch CALLBACK fired times=%@ preFetchMs=%@", times, preFetch);
|
|
589
567
|
}
|
|
590
568
|
|
|
591
569
|
RCT_EXPORT_METHOD(unPauseSpeechRecognitionLiteAsync:(nonnull NSNumber *)times
|
|
@@ -594,7 +572,6 @@ RCT_EXPORT_METHOD(unPauseSpeechRecognitionLiteAsync:(nonnull NSNumber *)times
|
|
|
594
572
|
resolver:(RCTPromiseResolveBlock)resolve
|
|
595
573
|
rejecter:(RCTPromiseRejectBlock)reject)
|
|
596
574
|
{
|
|
597
|
-
SBLog(@"unPauseSpeechRecognitionLiteAsync ENTER times=%@ preFetchMs=%@ timeoutMs=%@", times, preFetch, timeoutMs);
|
|
598
575
|
if (!self.stt) { resolve(@{@"ok": @(YES), @"reason": @""}); return; }
|
|
599
576
|
|
|
600
577
|
NSNumber *t = timeoutMs ?: @(2500);
|