react-native-davoice-tts 1.0.259 → 1.0.261
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 +16 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/Info.plist +5 -5
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/DavoiceTTS +0 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Headers/DavoiceTTS-Swift.h +2 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.abi.json +66 -8
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.private.swiftinterface +2 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.swiftinterface +2 -0
- 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/Headers/DavoiceTTS-Swift.h +4 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.abi.json +2903 -2845
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +14 -12
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.swiftinterface +14 -12
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.abi.json +2903 -2845
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +14 -12
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +14 -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 +27 -27
- package/package.json +1 -1
- package/speech/index.ts +43 -0
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.134" # 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 .
|
|
@@ -317,6 +317,22 @@ RCT_EXPORT_METHOD(initAll:(NSDictionary *)opts
|
|
|
317
317
|
});
|
|
318
318
|
}
|
|
319
319
|
|
|
320
|
+
// --- SpeechRecognitionLite pause/unpause (counter-based) ---
|
|
321
|
+
|
|
322
|
+
RCT_EXPORT_METHOD(pauseSpeechRecognitionLite:(RCTResponseSenderBlock)callback)
|
|
323
|
+
{
|
|
324
|
+
if (!self.stt) { if (callback) callback(@[@(NO)]); return; }
|
|
325
|
+
[self.stt pauseSpeechRecognitionLite];
|
|
326
|
+
if (callback) callback(@[@(YES)]);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
RCT_EXPORT_METHOD(unPauseSpeechRecognitionLite:(RCTResponseSenderBlock)callback)
|
|
330
|
+
{
|
|
331
|
+
if (!self.stt) { if (callback) callback(@[@(NO)]); return; }
|
|
332
|
+
[self.stt unPauseSpeechRecognitionLite];
|
|
333
|
+
if (callback) callback(@[@(YES)]);
|
|
334
|
+
}
|
|
335
|
+
|
|
320
336
|
// Promise-based pause that resolves ONLY when iOS is actually settled in playback (mic released)
|
|
321
337
|
RCT_EXPORT_METHOD(pauseMicrophoneAsync:(nonnull NSNumber *)timeoutMs
|
|
322
338
|
resolver:(RCTPromiseResolveBlock)resolve
|
|
@@ -8,32 +8,32 @@
|
|
|
8
8
|
<key>BinaryPath</key>
|
|
9
9
|
<string>DavoiceTTS.framework/DavoiceTTS</string>
|
|
10
10
|
<key>LibraryIdentifier</key>
|
|
11
|
-
<string>ios-
|
|
11
|
+
<string>ios-arm64</string>
|
|
12
12
|
<key>LibraryPath</key>
|
|
13
13
|
<string>DavoiceTTS.framework</string>
|
|
14
14
|
<key>SupportedArchitectures</key>
|
|
15
15
|
<array>
|
|
16
16
|
<string>arm64</string>
|
|
17
|
-
<string>x86_64</string>
|
|
18
17
|
</array>
|
|
19
18
|
<key>SupportedPlatform</key>
|
|
20
19
|
<string>ios</string>
|
|
21
|
-
<key>SupportedPlatformVariant</key>
|
|
22
|
-
<string>simulator</string>
|
|
23
20
|
</dict>
|
|
24
21
|
<dict>
|
|
25
22
|
<key>BinaryPath</key>
|
|
26
23
|
<string>DavoiceTTS.framework/DavoiceTTS</string>
|
|
27
24
|
<key>LibraryIdentifier</key>
|
|
28
|
-
<string>ios-
|
|
25
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
29
26
|
<key>LibraryPath</key>
|
|
30
27
|
<string>DavoiceTTS.framework</string>
|
|
31
28
|
<key>SupportedArchitectures</key>
|
|
32
29
|
<array>
|
|
33
30
|
<string>arm64</string>
|
|
31
|
+
<string>x86_64</string>
|
|
34
32
|
</array>
|
|
35
33
|
<key>SupportedPlatform</key>
|
|
36
34
|
<string>ios</string>
|
|
35
|
+
<key>SupportedPlatformVariant</key>
|
|
36
|
+
<string>simulator</string>
|
|
37
37
|
</dict>
|
|
38
38
|
</array>
|
|
39
39
|
<key>CFBundlePackageType</key>
|
|
Binary file
|
|
@@ -344,6 +344,8 @@ SWIFT_CLASS("_TtC10DavoiceTTS3STT")
|
|
|
344
344
|
@property (nonatomic) BOOL aecEnabled;
|
|
345
345
|
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSArray<NSString *> * _Nonnull supportedEvents;)
|
|
346
346
|
+ (NSArray<NSString *> * _Nonnull)supportedEvents SWIFT_WARN_UNUSED_RESULT;
|
|
347
|
+
- (void)pauseSpeechRecognitionLite;
|
|
348
|
+
- (void)unPauseSpeechRecognitionLite;
|
|
347
349
|
- (void)pauseMicrophoneAndWait:(NSNumber * _Nonnull)timeoutMs completion:(void (^ _Nonnull)(BOOL, NSString * _Nullable))completion;
|
|
348
350
|
- (void)unPauseMicrophoneAndWait:(NSNumber * _Nonnull)timeoutMs completion:(void (^ _Nonnull)(BOOL, NSString * _Nullable))completion;
|
|
349
351
|
- (void)pauseMicrophone;
|
|
@@ -529,6 +529,50 @@
|
|
|
529
529
|
}
|
|
530
530
|
]
|
|
531
531
|
},
|
|
532
|
+
{
|
|
533
|
+
"kind": "Function",
|
|
534
|
+
"name": "pauseSpeechRecognitionLite",
|
|
535
|
+
"printedName": "pauseSpeechRecognitionLite()",
|
|
536
|
+
"children": [
|
|
537
|
+
{
|
|
538
|
+
"kind": "TypeNominal",
|
|
539
|
+
"name": "Void",
|
|
540
|
+
"printedName": "()"
|
|
541
|
+
}
|
|
542
|
+
],
|
|
543
|
+
"declKind": "Func",
|
|
544
|
+
"usr": "c:@M@DavoiceTTS@objc(cs)STT(im)pauseSpeechRecognitionLite",
|
|
545
|
+
"mangledName": "$s10DavoiceTTS3STTC26pauseSpeechRecognitionLiteyyF",
|
|
546
|
+
"moduleName": "DavoiceTTS",
|
|
547
|
+
"declAttributes": [
|
|
548
|
+
"Final",
|
|
549
|
+
"AccessControl",
|
|
550
|
+
"ObjC"
|
|
551
|
+
],
|
|
552
|
+
"funcSelfKind": "NonMutating"
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
"kind": "Function",
|
|
556
|
+
"name": "unPauseSpeechRecognitionLite",
|
|
557
|
+
"printedName": "unPauseSpeechRecognitionLite()",
|
|
558
|
+
"children": [
|
|
559
|
+
{
|
|
560
|
+
"kind": "TypeNominal",
|
|
561
|
+
"name": "Void",
|
|
562
|
+
"printedName": "()"
|
|
563
|
+
}
|
|
564
|
+
],
|
|
565
|
+
"declKind": "Func",
|
|
566
|
+
"usr": "c:@M@DavoiceTTS@objc(cs)STT(im)unPauseSpeechRecognitionLite",
|
|
567
|
+
"mangledName": "$s10DavoiceTTS3STTC28unPauseSpeechRecognitionLiteyyF",
|
|
568
|
+
"moduleName": "DavoiceTTS",
|
|
569
|
+
"declAttributes": [
|
|
570
|
+
"Final",
|
|
571
|
+
"AccessControl",
|
|
572
|
+
"ObjC"
|
|
573
|
+
],
|
|
574
|
+
"funcSelfKind": "NonMutating"
|
|
575
|
+
},
|
|
532
576
|
{
|
|
533
577
|
"kind": "Function",
|
|
534
578
|
"name": "pauseMicrophoneAndWait",
|
|
@@ -4347,59 +4391,73 @@
|
|
|
4347
4391
|
"length": 5,
|
|
4348
4392
|
"value": "false"
|
|
4349
4393
|
},
|
|
4394
|
+
{
|
|
4395
|
+
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4396
|
+
"kind": "IntegerLiteral",
|
|
4397
|
+
"offset": 4661,
|
|
4398
|
+
"length": 1,
|
|
4399
|
+
"value": "0"
|
|
4400
|
+
},
|
|
4401
|
+
{
|
|
4402
|
+
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4403
|
+
"kind": "BooleanLiteral",
|
|
4404
|
+
"offset": 4711,
|
|
4405
|
+
"length": 5,
|
|
4406
|
+
"value": "false"
|
|
4407
|
+
},
|
|
4350
4408
|
{
|
|
4351
4409
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4352
4410
|
"kind": "Array",
|
|
4353
|
-
"offset":
|
|
4411
|
+
"offset": 4807,
|
|
4354
4412
|
"length": 203,
|
|
4355
4413
|
"value": "[\"onSpeechResults\", \"onSpeechStart\", \"onSpeechPartialResults\", \"onSpeechError\", \"onSpeechEnd\", \"onSpeechRecognized\", \"onSpeechVolumeChanged\"]"
|
|
4356
4414
|
},
|
|
4357
4415
|
{
|
|
4358
4416
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4359
4417
|
"kind": "IntegerLiteral",
|
|
4360
|
-
"offset":
|
|
4418
|
+
"offset": 16258,
|
|
4361
4419
|
"length": 1,
|
|
4362
4420
|
"value": "0"
|
|
4363
4421
|
},
|
|
4364
4422
|
{
|
|
4365
4423
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4366
4424
|
"kind": "BooleanLiteral",
|
|
4367
|
-
"offset":
|
|
4425
|
+
"offset": 16418,
|
|
4368
4426
|
"length": 5,
|
|
4369
4427
|
"value": "false"
|
|
4370
4428
|
},
|
|
4371
4429
|
{
|
|
4372
4430
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4373
4431
|
"kind": "BooleanLiteral",
|
|
4374
|
-
"offset":
|
|
4432
|
+
"offset": 17950,
|
|
4375
4433
|
"length": 4,
|
|
4376
4434
|
"value": "true"
|
|
4377
4435
|
},
|
|
4378
4436
|
{
|
|
4379
4437
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4380
4438
|
"kind": "IntegerLiteral",
|
|
4381
|
-
"offset":
|
|
4439
|
+
"offset": 18747,
|
|
4382
4440
|
"length": 1,
|
|
4383
4441
|
"value": "0"
|
|
4384
4442
|
},
|
|
4385
4443
|
{
|
|
4386
4444
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4387
4445
|
"kind": "BooleanLiteral",
|
|
4388
|
-
"offset":
|
|
4446
|
+
"offset": 28054,
|
|
4389
4447
|
"length": 4,
|
|
4390
4448
|
"value": "true"
|
|
4391
4449
|
},
|
|
4392
4450
|
{
|
|
4393
4451
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4394
4452
|
"kind": "BooleanLiteral",
|
|
4395
|
-
"offset":
|
|
4453
|
+
"offset": 46889,
|
|
4396
4454
|
"length": 5,
|
|
4397
4455
|
"value": "false"
|
|
4398
4456
|
},
|
|
4399
4457
|
{
|
|
4400
4458
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4401
4459
|
"kind": "FloatLiteral",
|
|
4402
|
-
"offset":
|
|
4460
|
+
"offset": 61379,
|
|
4403
4461
|
"length": 3,
|
|
4404
4462
|
"value": "0.7"
|
|
4405
4463
|
},
|
|
@@ -22,6 +22,8 @@ import phonemes
|
|
|
22
22
|
@objc final public var continuous: Swift.Bool
|
|
23
23
|
@objc final public var aecEnabled: Swift.Bool
|
|
24
24
|
@objc public static let supportedEvents: [Swift.String]
|
|
25
|
+
@objc final public func pauseSpeechRecognitionLite()
|
|
26
|
+
@objc final public func unPauseSpeechRecognitionLite()
|
|
25
27
|
@objc final public func pauseMicrophoneAndWait(_ timeoutMs: Foundation.NSNumber, completion: @escaping (Swift.Bool, Swift.String?) -> Swift.Void)
|
|
26
28
|
@objc final public func unPauseMicrophoneAndWait(_ timeoutMs: Foundation.NSNumber, completion: @escaping (Swift.Bool, Swift.String?) -> Swift.Void)
|
|
27
29
|
@objc final public func pauseMicrophone()
|
|
@@ -22,6 +22,8 @@ import phonemes
|
|
|
22
22
|
@objc final public var continuous: Swift.Bool
|
|
23
23
|
@objc final public var aecEnabled: Swift.Bool
|
|
24
24
|
@objc public static let supportedEvents: [Swift.String]
|
|
25
|
+
@objc final public func pauseSpeechRecognitionLite()
|
|
26
|
+
@objc final public func unPauseSpeechRecognitionLite()
|
|
25
27
|
@objc final public func pauseMicrophoneAndWait(_ timeoutMs: Foundation.NSNumber, completion: @escaping (Swift.Bool, Swift.String?) -> Swift.Void)
|
|
26
28
|
@objc final public func unPauseMicrophoneAndWait(_ timeoutMs: Foundation.NSNumber, completion: @escaping (Swift.Bool, Swift.String?) -> Swift.Void)
|
|
27
29
|
@objc final public func pauseMicrophone()
|
|
Binary file
|
|
@@ -344,6 +344,8 @@ SWIFT_CLASS("_TtC10DavoiceTTS3STT")
|
|
|
344
344
|
@property (nonatomic) BOOL aecEnabled;
|
|
345
345
|
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSArray<NSString *> * _Nonnull supportedEvents;)
|
|
346
346
|
+ (NSArray<NSString *> * _Nonnull)supportedEvents SWIFT_WARN_UNUSED_RESULT;
|
|
347
|
+
- (void)pauseSpeechRecognitionLite;
|
|
348
|
+
- (void)unPauseSpeechRecognitionLite;
|
|
347
349
|
- (void)pauseMicrophoneAndWait:(NSNumber * _Nonnull)timeoutMs completion:(void (^ _Nonnull)(BOOL, NSString * _Nullable))completion;
|
|
348
350
|
- (void)unPauseMicrophoneAndWait:(NSNumber * _Nonnull)timeoutMs completion:(void (^ _Nonnull)(BOOL, NSString * _Nullable))completion;
|
|
349
351
|
- (void)pauseMicrophone;
|
|
@@ -730,6 +732,8 @@ SWIFT_CLASS("_TtC10DavoiceTTS3STT")
|
|
|
730
732
|
@property (nonatomic) BOOL aecEnabled;
|
|
731
733
|
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSArray<NSString *> * _Nonnull supportedEvents;)
|
|
732
734
|
+ (NSArray<NSString *> * _Nonnull)supportedEvents SWIFT_WARN_UNUSED_RESULT;
|
|
735
|
+
- (void)pauseSpeechRecognitionLite;
|
|
736
|
+
- (void)unPauseSpeechRecognitionLite;
|
|
733
737
|
- (void)pauseMicrophoneAndWait:(NSNumber * _Nonnull)timeoutMs completion:(void (^ _Nonnull)(BOOL, NSString * _Nullable))completion;
|
|
734
738
|
- (void)unPauseMicrophoneAndWait:(NSNumber * _Nonnull)timeoutMs completion:(void (^ _Nonnull)(BOOL, NSString * _Nullable))completion;
|
|
735
739
|
- (void)pauseMicrophone;
|