react-native-davoice-tts 1.0.260 → 1.0.262
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 +3 -2
- 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 +1523 -1458
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.private.swiftinterface +14 -12
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.swiftinterface +14 -12
- 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 +73 -8
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +2 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.swiftinterface +2 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.abi.json +73 -8
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +2 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +2 -0
- 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 +5 -5
|
@@ -14,6 +14,18 @@ import _StringProcessing
|
|
|
14
14
|
import _SwiftConcurrencyShims
|
|
15
15
|
import onnxruntime_objc
|
|
16
16
|
import phonemes
|
|
17
|
+
public typealias EngineSchedule = (_ url: Foundation.URL, _ onDone: @escaping () -> Swift.Void) -> Swift.Bool
|
|
18
|
+
public typealias IsEngineReady = () -> Swift.Bool
|
|
19
|
+
public typealias useOnlyEnginePlayback = () -> Swift.Bool
|
|
20
|
+
public typealias StopEnginePlayback = () -> Swift.Void
|
|
21
|
+
public typealias CurrentEngineProvider = () -> AVFAudio.AVAudioEngine?
|
|
22
|
+
public enum AudioPlaybackHook {
|
|
23
|
+
public static var engineScheduleFile: DavoiceTTS.EngineSchedule?
|
|
24
|
+
public static var isEngineReady: DavoiceTTS.IsEngineReady?
|
|
25
|
+
public static var useOnlyEnginePlayback: DavoiceTTS.useOnlyEnginePlayback?
|
|
26
|
+
public static var stopEnginePlayback: DavoiceTTS.StopEnginePlayback?
|
|
27
|
+
public static var currentEngine: DavoiceTTS.CurrentEngineProvider?
|
|
28
|
+
}
|
|
17
29
|
@objc public protocol STTDelegate {
|
|
18
30
|
@objc func stt(_ stt: DavoiceTTS.STT, didEmitEvent name: Swift.String, body: [Swift.String : Any]?)
|
|
19
31
|
}
|
|
@@ -22,6 +34,8 @@ import phonemes
|
|
|
22
34
|
@objc final public var continuous: Swift.Bool
|
|
23
35
|
@objc final public var aecEnabled: Swift.Bool
|
|
24
36
|
@objc public static let supportedEvents: [Swift.String]
|
|
37
|
+
@objc final public func pauseSpeechRecognitionLite()
|
|
38
|
+
@objc final public func unPauseSpeechRecognitionLite(_ times: Foundation.NSNumber)
|
|
25
39
|
@objc final public func pauseMicrophoneAndWait(_ timeoutMs: Foundation.NSNumber, completion: @escaping (Swift.Bool, Swift.String?) -> Swift.Void)
|
|
26
40
|
@objc final public func unPauseMicrophoneAndWait(_ timeoutMs: Foundation.NSNumber, completion: @escaping (Swift.Bool, Swift.String?) -> Swift.Void)
|
|
27
41
|
@objc final public func pauseMicrophone()
|
|
@@ -39,18 +53,6 @@ import phonemes
|
|
|
39
53
|
@objc override dynamic public init()
|
|
40
54
|
@objc deinit
|
|
41
55
|
}
|
|
42
|
-
public typealias EngineSchedule = (_ url: Foundation.URL, _ onDone: @escaping () -> Swift.Void) -> Swift.Bool
|
|
43
|
-
public typealias IsEngineReady = () -> Swift.Bool
|
|
44
|
-
public typealias useOnlyEnginePlayback = () -> Swift.Bool
|
|
45
|
-
public typealias StopEnginePlayback = () -> Swift.Void
|
|
46
|
-
public typealias CurrentEngineProvider = () -> AVFAudio.AVAudioEngine?
|
|
47
|
-
public enum AudioPlaybackHook {
|
|
48
|
-
public static var engineScheduleFile: DavoiceTTS.EngineSchedule?
|
|
49
|
-
public static var isEngineReady: DavoiceTTS.IsEngineReady?
|
|
50
|
-
public static var useOnlyEnginePlayback: DavoiceTTS.useOnlyEnginePlayback?
|
|
51
|
-
public static var stopEnginePlayback: DavoiceTTS.StopEnginePlayback?
|
|
52
|
-
public static var currentEngine: DavoiceTTS.CurrentEngineProvider?
|
|
53
|
-
}
|
|
54
56
|
@objc @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers final public class SwiftSoundQueue : ObjectiveC.NSObject, AVFAudio.AVAudioPlayerDelegate {
|
|
55
57
|
@objc deinit
|
|
56
58
|
public static let shared: DavoiceTTS.SwiftSoundQueue
|
|
@@ -14,6 +14,18 @@ import _StringProcessing
|
|
|
14
14
|
import _SwiftConcurrencyShims
|
|
15
15
|
import onnxruntime_objc
|
|
16
16
|
import phonemes
|
|
17
|
+
public typealias EngineSchedule = (_ url: Foundation.URL, _ onDone: @escaping () -> Swift.Void) -> Swift.Bool
|
|
18
|
+
public typealias IsEngineReady = () -> Swift.Bool
|
|
19
|
+
public typealias useOnlyEnginePlayback = () -> Swift.Bool
|
|
20
|
+
public typealias StopEnginePlayback = () -> Swift.Void
|
|
21
|
+
public typealias CurrentEngineProvider = () -> AVFAudio.AVAudioEngine?
|
|
22
|
+
public enum AudioPlaybackHook {
|
|
23
|
+
public static var engineScheduleFile: DavoiceTTS.EngineSchedule?
|
|
24
|
+
public static var isEngineReady: DavoiceTTS.IsEngineReady?
|
|
25
|
+
public static var useOnlyEnginePlayback: DavoiceTTS.useOnlyEnginePlayback?
|
|
26
|
+
public static var stopEnginePlayback: DavoiceTTS.StopEnginePlayback?
|
|
27
|
+
public static var currentEngine: DavoiceTTS.CurrentEngineProvider?
|
|
28
|
+
}
|
|
17
29
|
@objc public protocol STTDelegate {
|
|
18
30
|
@objc func stt(_ stt: DavoiceTTS.STT, didEmitEvent name: Swift.String, body: [Swift.String : Any]?)
|
|
19
31
|
}
|
|
@@ -22,6 +34,8 @@ import phonemes
|
|
|
22
34
|
@objc final public var continuous: Swift.Bool
|
|
23
35
|
@objc final public var aecEnabled: Swift.Bool
|
|
24
36
|
@objc public static let supportedEvents: [Swift.String]
|
|
37
|
+
@objc final public func pauseSpeechRecognitionLite()
|
|
38
|
+
@objc final public func unPauseSpeechRecognitionLite(_ times: Foundation.NSNumber)
|
|
25
39
|
@objc final public func pauseMicrophoneAndWait(_ timeoutMs: Foundation.NSNumber, completion: @escaping (Swift.Bool, Swift.String?) -> Swift.Void)
|
|
26
40
|
@objc final public func unPauseMicrophoneAndWait(_ timeoutMs: Foundation.NSNumber, completion: @escaping (Swift.Bool, Swift.String?) -> Swift.Void)
|
|
27
41
|
@objc final public func pauseMicrophone()
|
|
@@ -39,18 +53,6 @@ import phonemes
|
|
|
39
53
|
@objc override dynamic public init()
|
|
40
54
|
@objc deinit
|
|
41
55
|
}
|
|
42
|
-
public typealias EngineSchedule = (_ url: Foundation.URL, _ onDone: @escaping () -> Swift.Void) -> Swift.Bool
|
|
43
|
-
public typealias IsEngineReady = () -> Swift.Bool
|
|
44
|
-
public typealias useOnlyEnginePlayback = () -> Swift.Bool
|
|
45
|
-
public typealias StopEnginePlayback = () -> Swift.Void
|
|
46
|
-
public typealias CurrentEngineProvider = () -> AVFAudio.AVAudioEngine?
|
|
47
|
-
public enum AudioPlaybackHook {
|
|
48
|
-
public static var engineScheduleFile: DavoiceTTS.EngineSchedule?
|
|
49
|
-
public static var isEngineReady: DavoiceTTS.IsEngineReady?
|
|
50
|
-
public static var useOnlyEnginePlayback: DavoiceTTS.useOnlyEnginePlayback?
|
|
51
|
-
public static var stopEnginePlayback: DavoiceTTS.StopEnginePlayback?
|
|
52
|
-
public static var currentEngine: DavoiceTTS.CurrentEngineProvider?
|
|
53
|
-
}
|
|
54
56
|
@objc @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers final public class SwiftSoundQueue : ObjectiveC.NSObject, AVFAudio.AVAudioPlayerDelegate {
|
|
55
57
|
@objc deinit
|
|
56
58
|
public static let shared: DavoiceTTS.SwiftSoundQueue
|
|
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:(NSNumber * _Nonnull)times;
|
|
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:(NSNumber * _Nonnull)times;
|
|
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;
|
|
@@ -1423,6 +1423,57 @@
|
|
|
1423
1423
|
}
|
|
1424
1424
|
]
|
|
1425
1425
|
},
|
|
1426
|
+
{
|
|
1427
|
+
"kind": "Function",
|
|
1428
|
+
"name": "pauseSpeechRecognitionLite",
|
|
1429
|
+
"printedName": "pauseSpeechRecognitionLite()",
|
|
1430
|
+
"children": [
|
|
1431
|
+
{
|
|
1432
|
+
"kind": "TypeNominal",
|
|
1433
|
+
"name": "Void",
|
|
1434
|
+
"printedName": "()"
|
|
1435
|
+
}
|
|
1436
|
+
],
|
|
1437
|
+
"declKind": "Func",
|
|
1438
|
+
"usr": "c:@M@DavoiceTTS@objc(cs)STT(im)pauseSpeechRecognitionLite",
|
|
1439
|
+
"mangledName": "$s10DavoiceTTS3STTC26pauseSpeechRecognitionLiteyyF",
|
|
1440
|
+
"moduleName": "DavoiceTTS",
|
|
1441
|
+
"declAttributes": [
|
|
1442
|
+
"Final",
|
|
1443
|
+
"AccessControl",
|
|
1444
|
+
"ObjC"
|
|
1445
|
+
],
|
|
1446
|
+
"funcSelfKind": "NonMutating"
|
|
1447
|
+
},
|
|
1448
|
+
{
|
|
1449
|
+
"kind": "Function",
|
|
1450
|
+
"name": "unPauseSpeechRecognitionLite",
|
|
1451
|
+
"printedName": "unPauseSpeechRecognitionLite(_:)",
|
|
1452
|
+
"children": [
|
|
1453
|
+
{
|
|
1454
|
+
"kind": "TypeNominal",
|
|
1455
|
+
"name": "Void",
|
|
1456
|
+
"printedName": "()"
|
|
1457
|
+
},
|
|
1458
|
+
{
|
|
1459
|
+
"kind": "TypeNominal",
|
|
1460
|
+
"name": "NSNumber",
|
|
1461
|
+
"printedName": "Foundation.NSNumber",
|
|
1462
|
+
"usr": "c:objc(cs)NSNumber"
|
|
1463
|
+
}
|
|
1464
|
+
],
|
|
1465
|
+
"declKind": "Func",
|
|
1466
|
+
"usr": "c:@M@DavoiceTTS@objc(cs)STT(im)unPauseSpeechRecognitionLite:",
|
|
1467
|
+
"mangledName": "$s10DavoiceTTS3STTC28unPauseSpeechRecognitionLiteyySo8NSNumberCF",
|
|
1468
|
+
"moduleName": "DavoiceTTS",
|
|
1469
|
+
"declAttributes": [
|
|
1470
|
+
"Final",
|
|
1471
|
+
"AccessControl",
|
|
1472
|
+
"ObjC",
|
|
1473
|
+
"RawDocComment"
|
|
1474
|
+
],
|
|
1475
|
+
"funcSelfKind": "NonMutating"
|
|
1476
|
+
},
|
|
1426
1477
|
{
|
|
1427
1478
|
"kind": "Function",
|
|
1428
1479
|
"name": "pauseMicrophoneAndWait",
|
|
@@ -4347,59 +4398,73 @@
|
|
|
4347
4398
|
"length": 5,
|
|
4348
4399
|
"value": "false"
|
|
4349
4400
|
},
|
|
4401
|
+
{
|
|
4402
|
+
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4403
|
+
"kind": "IntegerLiteral",
|
|
4404
|
+
"offset": 4661,
|
|
4405
|
+
"length": 1,
|
|
4406
|
+
"value": "0"
|
|
4407
|
+
},
|
|
4408
|
+
{
|
|
4409
|
+
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4410
|
+
"kind": "BooleanLiteral",
|
|
4411
|
+
"offset": 4711,
|
|
4412
|
+
"length": 5,
|
|
4413
|
+
"value": "false"
|
|
4414
|
+
},
|
|
4350
4415
|
{
|
|
4351
4416
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4352
4417
|
"kind": "Array",
|
|
4353
|
-
"offset":
|
|
4418
|
+
"offset": 4807,
|
|
4354
4419
|
"length": 203,
|
|
4355
4420
|
"value": "[\"onSpeechResults\", \"onSpeechStart\", \"onSpeechPartialResults\", \"onSpeechError\", \"onSpeechEnd\", \"onSpeechRecognized\", \"onSpeechVolumeChanged\"]"
|
|
4356
4421
|
},
|
|
4357
4422
|
{
|
|
4358
4423
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4359
4424
|
"kind": "IntegerLiteral",
|
|
4360
|
-
"offset":
|
|
4425
|
+
"offset": 18933,
|
|
4361
4426
|
"length": 1,
|
|
4362
4427
|
"value": "0"
|
|
4363
4428
|
},
|
|
4364
4429
|
{
|
|
4365
4430
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4366
4431
|
"kind": "BooleanLiteral",
|
|
4367
|
-
"offset":
|
|
4432
|
+
"offset": 19093,
|
|
4368
4433
|
"length": 5,
|
|
4369
4434
|
"value": "false"
|
|
4370
4435
|
},
|
|
4371
4436
|
{
|
|
4372
4437
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4373
4438
|
"kind": "BooleanLiteral",
|
|
4374
|
-
"offset":
|
|
4439
|
+
"offset": 20625,
|
|
4375
4440
|
"length": 4,
|
|
4376
4441
|
"value": "true"
|
|
4377
4442
|
},
|
|
4378
4443
|
{
|
|
4379
4444
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4380
4445
|
"kind": "IntegerLiteral",
|
|
4381
|
-
"offset":
|
|
4446
|
+
"offset": 21422,
|
|
4382
4447
|
"length": 1,
|
|
4383
4448
|
"value": "0"
|
|
4384
4449
|
},
|
|
4385
4450
|
{
|
|
4386
4451
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4387
4452
|
"kind": "BooleanLiteral",
|
|
4388
|
-
"offset":
|
|
4453
|
+
"offset": 30729,
|
|
4389
4454
|
"length": 4,
|
|
4390
4455
|
"value": "true"
|
|
4391
4456
|
},
|
|
4392
4457
|
{
|
|
4393
4458
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4394
4459
|
"kind": "BooleanLiteral",
|
|
4395
|
-
"offset":
|
|
4460
|
+
"offset": 49564,
|
|
4396
4461
|
"length": 5,
|
|
4397
4462
|
"value": "false"
|
|
4398
4463
|
},
|
|
4399
4464
|
{
|
|
4400
4465
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4401
4466
|
"kind": "FloatLiteral",
|
|
4402
|
-
"offset":
|
|
4467
|
+
"offset": 64054,
|
|
4403
4468
|
"length": 3,
|
|
4404
4469
|
"value": "0.7"
|
|
4405
4470
|
},
|
|
@@ -34,6 +34,8 @@ public enum AudioPlaybackHook {
|
|
|
34
34
|
@objc final public var continuous: Swift.Bool
|
|
35
35
|
@objc final public var aecEnabled: Swift.Bool
|
|
36
36
|
@objc public static let supportedEvents: [Swift.String]
|
|
37
|
+
@objc final public func pauseSpeechRecognitionLite()
|
|
38
|
+
@objc final public func unPauseSpeechRecognitionLite(_ times: Foundation.NSNumber)
|
|
37
39
|
@objc final public func pauseMicrophoneAndWait(_ timeoutMs: Foundation.NSNumber, completion: @escaping (Swift.Bool, Swift.String?) -> Swift.Void)
|
|
38
40
|
@objc final public func unPauseMicrophoneAndWait(_ timeoutMs: Foundation.NSNumber, completion: @escaping (Swift.Bool, Swift.String?) -> Swift.Void)
|
|
39
41
|
@objc final public func pauseMicrophone()
|
|
@@ -34,6 +34,8 @@ public enum AudioPlaybackHook {
|
|
|
34
34
|
@objc final public var continuous: Swift.Bool
|
|
35
35
|
@objc final public var aecEnabled: Swift.Bool
|
|
36
36
|
@objc public static let supportedEvents: [Swift.String]
|
|
37
|
+
@objc final public func pauseSpeechRecognitionLite()
|
|
38
|
+
@objc final public func unPauseSpeechRecognitionLite(_ times: Foundation.NSNumber)
|
|
37
39
|
@objc final public func pauseMicrophoneAndWait(_ timeoutMs: Foundation.NSNumber, completion: @escaping (Swift.Bool, Swift.String?) -> Swift.Void)
|
|
38
40
|
@objc final public func unPauseMicrophoneAndWait(_ timeoutMs: Foundation.NSNumber, completion: @escaping (Swift.Bool, Swift.String?) -> Swift.Void)
|
|
39
41
|
@objc final public func pauseMicrophone()
|
|
@@ -1423,6 +1423,57 @@
|
|
|
1423
1423
|
}
|
|
1424
1424
|
]
|
|
1425
1425
|
},
|
|
1426
|
+
{
|
|
1427
|
+
"kind": "Function",
|
|
1428
|
+
"name": "pauseSpeechRecognitionLite",
|
|
1429
|
+
"printedName": "pauseSpeechRecognitionLite()",
|
|
1430
|
+
"children": [
|
|
1431
|
+
{
|
|
1432
|
+
"kind": "TypeNominal",
|
|
1433
|
+
"name": "Void",
|
|
1434
|
+
"printedName": "()"
|
|
1435
|
+
}
|
|
1436
|
+
],
|
|
1437
|
+
"declKind": "Func",
|
|
1438
|
+
"usr": "c:@M@DavoiceTTS@objc(cs)STT(im)pauseSpeechRecognitionLite",
|
|
1439
|
+
"mangledName": "$s10DavoiceTTS3STTC26pauseSpeechRecognitionLiteyyF",
|
|
1440
|
+
"moduleName": "DavoiceTTS",
|
|
1441
|
+
"declAttributes": [
|
|
1442
|
+
"Final",
|
|
1443
|
+
"AccessControl",
|
|
1444
|
+
"ObjC"
|
|
1445
|
+
],
|
|
1446
|
+
"funcSelfKind": "NonMutating"
|
|
1447
|
+
},
|
|
1448
|
+
{
|
|
1449
|
+
"kind": "Function",
|
|
1450
|
+
"name": "unPauseSpeechRecognitionLite",
|
|
1451
|
+
"printedName": "unPauseSpeechRecognitionLite(_:)",
|
|
1452
|
+
"children": [
|
|
1453
|
+
{
|
|
1454
|
+
"kind": "TypeNominal",
|
|
1455
|
+
"name": "Void",
|
|
1456
|
+
"printedName": "()"
|
|
1457
|
+
},
|
|
1458
|
+
{
|
|
1459
|
+
"kind": "TypeNominal",
|
|
1460
|
+
"name": "NSNumber",
|
|
1461
|
+
"printedName": "Foundation.NSNumber",
|
|
1462
|
+
"usr": "c:objc(cs)NSNumber"
|
|
1463
|
+
}
|
|
1464
|
+
],
|
|
1465
|
+
"declKind": "Func",
|
|
1466
|
+
"usr": "c:@M@DavoiceTTS@objc(cs)STT(im)unPauseSpeechRecognitionLite:",
|
|
1467
|
+
"mangledName": "$s10DavoiceTTS3STTC28unPauseSpeechRecognitionLiteyySo8NSNumberCF",
|
|
1468
|
+
"moduleName": "DavoiceTTS",
|
|
1469
|
+
"declAttributes": [
|
|
1470
|
+
"Final",
|
|
1471
|
+
"AccessControl",
|
|
1472
|
+
"ObjC",
|
|
1473
|
+
"RawDocComment"
|
|
1474
|
+
],
|
|
1475
|
+
"funcSelfKind": "NonMutating"
|
|
1476
|
+
},
|
|
1426
1477
|
{
|
|
1427
1478
|
"kind": "Function",
|
|
1428
1479
|
"name": "pauseMicrophoneAndWait",
|
|
@@ -4347,59 +4398,73 @@
|
|
|
4347
4398
|
"length": 5,
|
|
4348
4399
|
"value": "false"
|
|
4349
4400
|
},
|
|
4401
|
+
{
|
|
4402
|
+
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4403
|
+
"kind": "IntegerLiteral",
|
|
4404
|
+
"offset": 4661,
|
|
4405
|
+
"length": 1,
|
|
4406
|
+
"value": "0"
|
|
4407
|
+
},
|
|
4408
|
+
{
|
|
4409
|
+
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4410
|
+
"kind": "BooleanLiteral",
|
|
4411
|
+
"offset": 4711,
|
|
4412
|
+
"length": 5,
|
|
4413
|
+
"value": "false"
|
|
4414
|
+
},
|
|
4350
4415
|
{
|
|
4351
4416
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4352
4417
|
"kind": "Array",
|
|
4353
|
-
"offset":
|
|
4418
|
+
"offset": 4807,
|
|
4354
4419
|
"length": 203,
|
|
4355
4420
|
"value": "[\"onSpeechResults\", \"onSpeechStart\", \"onSpeechPartialResults\", \"onSpeechError\", \"onSpeechEnd\", \"onSpeechRecognized\", \"onSpeechVolumeChanged\"]"
|
|
4356
4421
|
},
|
|
4357
4422
|
{
|
|
4358
4423
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4359
4424
|
"kind": "IntegerLiteral",
|
|
4360
|
-
"offset":
|
|
4425
|
+
"offset": 18933,
|
|
4361
4426
|
"length": 1,
|
|
4362
4427
|
"value": "0"
|
|
4363
4428
|
},
|
|
4364
4429
|
{
|
|
4365
4430
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4366
4431
|
"kind": "BooleanLiteral",
|
|
4367
|
-
"offset":
|
|
4432
|
+
"offset": 19093,
|
|
4368
4433
|
"length": 5,
|
|
4369
4434
|
"value": "false"
|
|
4370
4435
|
},
|
|
4371
4436
|
{
|
|
4372
4437
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4373
4438
|
"kind": "BooleanLiteral",
|
|
4374
|
-
"offset":
|
|
4439
|
+
"offset": 20625,
|
|
4375
4440
|
"length": 4,
|
|
4376
4441
|
"value": "true"
|
|
4377
4442
|
},
|
|
4378
4443
|
{
|
|
4379
4444
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4380
4445
|
"kind": "IntegerLiteral",
|
|
4381
|
-
"offset":
|
|
4446
|
+
"offset": 21422,
|
|
4382
4447
|
"length": 1,
|
|
4383
4448
|
"value": "0"
|
|
4384
4449
|
},
|
|
4385
4450
|
{
|
|
4386
4451
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4387
4452
|
"kind": "BooleanLiteral",
|
|
4388
|
-
"offset":
|
|
4453
|
+
"offset": 30729,
|
|
4389
4454
|
"length": 4,
|
|
4390
4455
|
"value": "true"
|
|
4391
4456
|
},
|
|
4392
4457
|
{
|
|
4393
4458
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4394
4459
|
"kind": "BooleanLiteral",
|
|
4395
|
-
"offset":
|
|
4460
|
+
"offset": 49564,
|
|
4396
4461
|
"length": 5,
|
|
4397
4462
|
"value": "false"
|
|
4398
4463
|
},
|
|
4399
4464
|
{
|
|
4400
4465
|
"filePath": "\/Volumes\/T9\/projects\/DavoiceTTSPrivate\/Sources\/DaVoiceSTT.swift",
|
|
4401
4466
|
"kind": "FloatLiteral",
|
|
4402
|
-
"offset":
|
|
4467
|
+
"offset": 64054,
|
|
4403
4468
|
"length": 3,
|
|
4404
4469
|
"value": "0.7"
|
|
4405
4470
|
},
|
|
@@ -34,6 +34,8 @@ public enum AudioPlaybackHook {
|
|
|
34
34
|
@objc final public var continuous: Swift.Bool
|
|
35
35
|
@objc final public var aecEnabled: Swift.Bool
|
|
36
36
|
@objc public static let supportedEvents: [Swift.String]
|
|
37
|
+
@objc final public func pauseSpeechRecognitionLite()
|
|
38
|
+
@objc final public func unPauseSpeechRecognitionLite(_ times: Foundation.NSNumber)
|
|
37
39
|
@objc final public func pauseMicrophoneAndWait(_ timeoutMs: Foundation.NSNumber, completion: @escaping (Swift.Bool, Swift.String?) -> Swift.Void)
|
|
38
40
|
@objc final public func unPauseMicrophoneAndWait(_ timeoutMs: Foundation.NSNumber, completion: @escaping (Swift.Bool, Swift.String?) -> Swift.Void)
|
|
39
41
|
@objc final public func pauseMicrophone()
|
|
@@ -34,6 +34,8 @@ public enum AudioPlaybackHook {
|
|
|
34
34
|
@objc final public var continuous: Swift.Bool
|
|
35
35
|
@objc final public var aecEnabled: Swift.Bool
|
|
36
36
|
@objc public static let supportedEvents: [Swift.String]
|
|
37
|
+
@objc final public func pauseSpeechRecognitionLite()
|
|
38
|
+
@objc final public func unPauseSpeechRecognitionLite(_ times: Foundation.NSNumber)
|
|
37
39
|
@objc final public func pauseMicrophoneAndWait(_ timeoutMs: Foundation.NSNumber, completion: @escaping (Swift.Bool, Swift.String?) -> Swift.Void)
|
|
38
40
|
@objc final public func unPauseMicrophoneAndWait(_ timeoutMs: Foundation.NSNumber, completion: @escaping (Swift.Bool, Swift.String?) -> Swift.Void)
|
|
39
41
|
@objc final public func pauseMicrophone()
|
|
Binary file
|
|
Binary file
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<dict>
|
|
7
7
|
<key>Headers/DavoiceTTS-Swift.h</key>
|
|
8
8
|
<data>
|
|
9
|
-
|
|
9
|
+
8glOk8jnSHUvcemIt9x6T4sQSlc=
|
|
10
10
|
</data>
|
|
11
11
|
<key>Info.plist</key>
|
|
12
12
|
<data>
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
</data>
|
|
15
15
|
<key>Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
|
|
16
16
|
<data>
|
|
17
|
-
|
|
17
|
+
xGkUJyL1Hp9/XmZnRg+6U0bLhvY=
|
|
18
18
|
</data>
|
|
19
19
|
<key>Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
|
|
20
20
|
<data>
|
|
21
|
-
|
|
21
|
+
z60ECTiCUfA3JYUHgy1qhJk9wos=
|
|
22
22
|
</data>
|
|
23
23
|
<key>Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
|
|
24
24
|
<data>
|
|
@@ -26,19 +26,19 @@
|
|
|
26
26
|
</data>
|
|
27
27
|
<key>Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
|
|
28
28
|
<data>
|
|
29
|
-
|
|
29
|
+
z60ECTiCUfA3JYUHgy1qhJk9wos=
|
|
30
30
|
</data>
|
|
31
31
|
<key>Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
|
|
32
32
|
<data>
|
|
33
|
-
|
|
33
|
+
ufO/+r4xPu4RZEIB/0r7AekImUc=
|
|
34
34
|
</data>
|
|
35
35
|
<key>Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
|
|
36
36
|
<data>
|
|
37
|
-
|
|
37
|
+
xGkUJyL1Hp9/XmZnRg+6U0bLhvY=
|
|
38
38
|
</data>
|
|
39
39
|
<key>Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
|
|
40
40
|
<data>
|
|
41
|
-
|
|
41
|
+
JZkQrjnqRyH3gInbdCc37WEASzM=
|
|
42
42
|
</data>
|
|
43
43
|
<key>Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
|
|
44
44
|
<data>
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
</data>
|
|
47
47
|
<key>Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
|
|
48
48
|
<data>
|
|
49
|
-
|
|
49
|
+
JZkQrjnqRyH3gInbdCc37WEASzM=
|
|
50
50
|
</data>
|
|
51
51
|
<key>Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
|
|
52
52
|
<data>
|
|
53
|
-
|
|
53
|
+
eBwozuOkJYFZ7Rjl5wnKY1tOb0I=
|
|
54
54
|
</data>
|
|
55
55
|
<key>Modules/module.modulemap</key>
|
|
56
56
|
<data>
|
|
@@ -63,33 +63,33 @@
|
|
|
63
63
|
<dict>
|
|
64
64
|
<key>hash</key>
|
|
65
65
|
<data>
|
|
66
|
-
|
|
66
|
+
8glOk8jnSHUvcemIt9x6T4sQSlc=
|
|
67
67
|
</data>
|
|
68
68
|
<key>hash2</key>
|
|
69
69
|
<data>
|
|
70
|
-
|
|
70
|
+
i++rYWjMcPL2CGIVtxnRhkKpo02dgsuNV8VDAse0Pnk=
|
|
71
71
|
</data>
|
|
72
72
|
</dict>
|
|
73
73
|
<key>Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
|
|
74
74
|
<dict>
|
|
75
75
|
<key>hash</key>
|
|
76
76
|
<data>
|
|
77
|
-
|
|
77
|
+
xGkUJyL1Hp9/XmZnRg+6U0bLhvY=
|
|
78
78
|
</data>
|
|
79
79
|
<key>hash2</key>
|
|
80
80
|
<data>
|
|
81
|
-
|
|
81
|
+
JiVtENMkndgI1a5B7z1uX4oFwv9rfMuAj7wfrSKllOM=
|
|
82
82
|
</data>
|
|
83
83
|
</dict>
|
|
84
84
|
<key>Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
|
|
85
85
|
<dict>
|
|
86
86
|
<key>hash</key>
|
|
87
87
|
<data>
|
|
88
|
-
|
|
88
|
+
z60ECTiCUfA3JYUHgy1qhJk9wos=
|
|
89
89
|
</data>
|
|
90
90
|
<key>hash2</key>
|
|
91
91
|
<data>
|
|
92
|
-
|
|
92
|
+
9ER51CAoNzmIIg/WXRZnriMKUMLcb5LPVq6jtyRfGAA=
|
|
93
93
|
</data>
|
|
94
94
|
</dict>
|
|
95
95
|
<key>Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
|
|
@@ -107,44 +107,44 @@
|
|
|
107
107
|
<dict>
|
|
108
108
|
<key>hash</key>
|
|
109
109
|
<data>
|
|
110
|
-
|
|
110
|
+
z60ECTiCUfA3JYUHgy1qhJk9wos=
|
|
111
111
|
</data>
|
|
112
112
|
<key>hash2</key>
|
|
113
113
|
<data>
|
|
114
|
-
|
|
114
|
+
9ER51CAoNzmIIg/WXRZnriMKUMLcb5LPVq6jtyRfGAA=
|
|
115
115
|
</data>
|
|
116
116
|
</dict>
|
|
117
117
|
<key>Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
|
|
118
118
|
<dict>
|
|
119
119
|
<key>hash</key>
|
|
120
120
|
<data>
|
|
121
|
-
|
|
121
|
+
ufO/+r4xPu4RZEIB/0r7AekImUc=
|
|
122
122
|
</data>
|
|
123
123
|
<key>hash2</key>
|
|
124
124
|
<data>
|
|
125
|
-
|
|
125
|
+
iOWto1QNSwe7+lwDEaxLNalSiUxpzB6acJAcrsB+Vyw=
|
|
126
126
|
</data>
|
|
127
127
|
</dict>
|
|
128
128
|
<key>Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
|
|
129
129
|
<dict>
|
|
130
130
|
<key>hash</key>
|
|
131
131
|
<data>
|
|
132
|
-
|
|
132
|
+
xGkUJyL1Hp9/XmZnRg+6U0bLhvY=
|
|
133
133
|
</data>
|
|
134
134
|
<key>hash2</key>
|
|
135
135
|
<data>
|
|
136
|
-
|
|
136
|
+
JiVtENMkndgI1a5B7z1uX4oFwv9rfMuAj7wfrSKllOM=
|
|
137
137
|
</data>
|
|
138
138
|
</dict>
|
|
139
139
|
<key>Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
|
|
140
140
|
<dict>
|
|
141
141
|
<key>hash</key>
|
|
142
142
|
<data>
|
|
143
|
-
|
|
143
|
+
JZkQrjnqRyH3gInbdCc37WEASzM=
|
|
144
144
|
</data>
|
|
145
145
|
<key>hash2</key>
|
|
146
146
|
<data>
|
|
147
|
-
|
|
147
|
+
ZqMvIgFs0PvugFm9w6XAqMHLuS1Oy/gbmGV3PAGNRzY=
|
|
148
148
|
</data>
|
|
149
149
|
</dict>
|
|
150
150
|
<key>Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
|
|
@@ -162,22 +162,22 @@
|
|
|
162
162
|
<dict>
|
|
163
163
|
<key>hash</key>
|
|
164
164
|
<data>
|
|
165
|
-
|
|
165
|
+
JZkQrjnqRyH3gInbdCc37WEASzM=
|
|
166
166
|
</data>
|
|
167
167
|
<key>hash2</key>
|
|
168
168
|
<data>
|
|
169
|
-
|
|
169
|
+
ZqMvIgFs0PvugFm9w6XAqMHLuS1Oy/gbmGV3PAGNRzY=
|
|
170
170
|
</data>
|
|
171
171
|
</dict>
|
|
172
172
|
<key>Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
|
|
173
173
|
<dict>
|
|
174
174
|
<key>hash</key>
|
|
175
175
|
<data>
|
|
176
|
-
|
|
176
|
+
eBwozuOkJYFZ7Rjl5wnKY1tOb0I=
|
|
177
177
|
</data>
|
|
178
178
|
<key>hash2</key>
|
|
179
179
|
<data>
|
|
180
|
-
|
|
180
|
+
z79rDu3pBpdoZLJIPefFk2M2dZL6RzWB8sniOB1cLR0=
|
|
181
181
|
</data>
|
|
182
182
|
</dict>
|
|
183
183
|
<key>Modules/module.modulemap</key>
|
package/package.json
CHANGED
package/speech/index.ts
CHANGED
|
@@ -431,19 +431,19 @@ class Speech {
|
|
|
431
431
|
});
|
|
432
432
|
}
|
|
433
433
|
|
|
434
|
-
unPauseSpeechRecognition(): Promise<void> {
|
|
435
|
-
this.logCall('unPauseSpeechRecognitionLite');
|
|
434
|
+
unPauseSpeechRecognition(times: number): Promise<void> {
|
|
435
|
+
this.logCall('unPauseSpeechRecognitionLite', { times });
|
|
436
436
|
if (Platform.OS !== 'ios') return Promise.resolve();
|
|
437
437
|
|
|
438
438
|
if (!(NativeSpeech as any)?.unPauseSpeechRecognitionLite) {
|
|
439
|
-
dbg('iOS unPauseSpeechRecognitionLite not available on NativeSpeech');
|
|
439
|
+
dbg('iOS unPauseSpeechRecognitionLite(times) not available on NativeSpeech');
|
|
440
440
|
return Promise.resolve();
|
|
441
441
|
}
|
|
442
442
|
|
|
443
443
|
return new Promise((resolve, reject) => {
|
|
444
444
|
try {
|
|
445
|
-
(NativeSpeech as any).unPauseSpeechRecognitionLite((ok: boolean) => {
|
|
446
|
-
if (!ok) dbgErr('unPauseSpeechRecognitionLite returned false');
|
|
445
|
+
(NativeSpeech as any).unPauseSpeechRecognitionLite(times, (ok: boolean) => {
|
|
446
|
+
if (!ok) dbgErr('unPauseSpeechRecognitionLite(times) returned false');
|
|
447
447
|
resolve();
|
|
448
448
|
});
|
|
449
449
|
} catch (e) {
|