react-native-wakeword 1.1.46 → 1.1.48

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 (34) hide show
  1. package/android/libs/com/davoice/keyworddetection/1.0.0/keyworddetection-1.0.0.aar +0 -0
  2. package/android/libs/com/davoice/keyworddetection/1.0.0/keyworddetection-1.0.0.aar.md5 +1 -1
  3. package/android/libs/com/davoice/keyworddetection/1.0.0/keyworddetection-1.0.0.aar.sha1 +1 -1
  4. package/android/src/main/java/com/davoice/keywordspotting/KeyWordRNBridge.java +1 -2
  5. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/Info.plist +5 -5
  6. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Headers/KeyWordDetection-Swift.h +6 -19
  7. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Info.plist +0 -0
  8. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/KeyWordDetection +0 -0
  9. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.abi.json +484 -303
  10. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.private.swiftinterface +30 -18
  11. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  12. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.swiftinterface +30 -18
  13. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Headers/KeyWordDetection-Swift.h +12 -38
  14. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Info.plist +0 -0
  15. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/KeyWordDetection +0 -0
  16. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.abi.json +484 -303
  17. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +30 -18
  18. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  19. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.swiftinterface +30 -18
  20. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.abi.json +484 -303
  21. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +30 -18
  22. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  23. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +30 -18
  24. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeDirectory +0 -0
  25. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeRequirements-1 +0 -0
  26. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeResources +34 -34
  27. package/ios/KeyWordRNBridge/KeyWordRNBridge.mm +23 -2
  28. package/package.json +1 -1
  29. package/wakewords/KeyWordRNBridge.d.ts +1 -0
  30. package/wakewords/KeyWordRNBridge.js +7 -0
  31. package/wakewords/audioRoutingConfig.d.ts +17 -0
  32. package/wakewords/audioRoutingConfig.ts +28 -0
  33. package/wakewords/index.d.ts +5 -1
  34. package/wakewords/index.js +2 -1
@@ -1,7 +1,7 @@
1
1
  // swift-interface-format-version: 1.0
2
- // swift-compiler-version: Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
2
+ // swift-compiler-version: Apple Swift version 6.2.1 effective-5.10 (swiftlang-6.2.1.4.8 clang-1700.4.4.1)
3
3
  // swift-module-flags: -target arm64-apple-ios13.5 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name KeyWordDetection
4
- // swift-module-flags-ignorable: -no-verify-emitted-module-interface -interface-compiler-version 6.1.2
4
+ // swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.1
5
5
  import AVFAudio
6
6
  import AVFoundation
7
7
  import Accelerate
@@ -10,6 +10,7 @@ import CommonCrypto
10
10
  import Foundation
11
11
  @_exported import KeyWordDetection
12
12
  import Swift
13
+ import UIKit
13
14
  import _Concurrency
14
15
  import _StringProcessing
15
16
  import _SwiftConcurrencyShims
@@ -34,12 +35,16 @@ public class AVAudioWrapperFrameListener {
34
35
  public var isRecording: Swift.Bool {
35
36
  get
36
37
  }
38
+ #if compiler(>=5.3) && $NonescapableTypes
37
39
  public var frameLength: Swift.UInt32? {
38
40
  get
39
41
  }
42
+ #endif
43
+ #if compiler(>=5.3) && $NonescapableTypes
40
44
  public var sampleRate: Swift.UInt32? {
41
45
  get
42
46
  }
47
+ #endif
43
48
  public var numFrameListeners: Swift.Int {
44
49
  get
45
50
  }
@@ -51,10 +56,17 @@ public class AVAudioWrapperFrameListener {
51
56
  public func removeFrameListener(_ listener: KeyWordDetection.AVAudioWrapperFrameListener)
52
57
  public func clearFrameListeners()
53
58
  public func setSessionOptions(sessionOptions: AVFAudio.AVAudioSession.CategoryOptions)
54
- public func start(frameLength: Swift.UInt32, sampleRate: Swift.UInt32, setActive: Swift.Bool = true, duckOthers: Swift.Bool = false, mixWithOthers: Swift.Bool = true, defaultToSpeaker: Swift.Bool = true)
59
+ public func start(frameLength: Swift.UInt32, sampleRate: Swift.UInt32, noExternalActivation: Swift.Bool = true, duckOthers: Swift.Bool = false, mixWithOthers: Swift.Bool = true, defaultToSpeaker: Swift.Bool = true)
55
60
  public func stop() throws
56
61
  @objc deinit
57
62
  }
63
+ @_hasMissingDesignatedInitializers final public class AppStateTracker {
64
+ public static let shared: KeyWordDetection.AppStateTracker
65
+ final public var isInBackground: Swift.Bool {
66
+ get
67
+ }
68
+ @objc deinit
69
+ }
58
70
  public class AVAudioWrapperBuffer {
59
71
  public init(size: Swift.Int)
60
72
  public func write(samples: [Swift.Float]) -> Swift.Int16
@@ -64,20 +76,26 @@ public class AVAudioWrapperBuffer {
64
76
  }
65
77
  public class AVAudioWrapper {
66
78
  public static let instance: KeyWordDetection.AVAudioWrapper
79
+ public var preferOnDeviceMicInCarPlay: Swift.Bool
67
80
  public var isRecording: Swift.Bool {
68
81
  get
69
82
  }
83
+ #if compiler(>=5.3) && $NonescapableTypes
70
84
  public var frameLength: Swift.UInt32? {
71
85
  get
72
86
  }
87
+ #endif
88
+ #if compiler(>=5.3) && $NonescapableTypes
73
89
  public var sampleRate: Swift.UInt32? {
74
90
  get
75
91
  }
92
+ #endif
76
93
  public var numFrameListeners: Swift.Int {
77
94
  get
78
95
  }
79
96
  public func setSessionOptions(sessionOptions: AVFAudio.AVAudioSession.CategoryOptions)
80
97
  public init()
98
+ @objc deinit
81
99
  public static var hasRecordAudioPermission: Swift.Bool {
82
100
  get
83
101
  }
@@ -88,9 +106,9 @@ public class AVAudioWrapper {
88
106
  public func removeFrameListeners(_ listeners: [KeyWordDetection.AVAudioWrapperFrameListener])
89
107
  public func clearFrameListeners()
90
108
  public func startAfterUnDucking()
91
- public func start(frameLength: Swift.UInt32, sampleRate: Swift.UInt32, setActive: Swift.Bool = true, duckOthers: Swift.Bool = false, mixWithOthers: Swift.Bool = true, defaultToSpeaker: Swift.Bool = true)
109
+ public func start(frameLength: Swift.UInt32, sampleRate: Swift.UInt32, noExternalActivation: Swift.Bool = true, duckOthers: Swift.Bool = false, mixWithOthers: Swift.Bool = true, defaultToSpeaker: Swift.Bool = true)
110
+ public func start_org(frameLength: Swift.UInt32, sampleRate: Swift.UInt32, noExternalActivation: Swift.Bool = true, duckOthers: Swift.Bool = false, mixWithOthers: Swift.Bool = true, defaultToSpeaker: Swift.Bool = true)
92
111
  public func stop() throws
93
- @objc deinit
94
112
  }
95
113
  @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objc public class GlobalVariables : ObjectiveC.NSObject {
96
114
  @objc public static let shared: KeyWordDetection.GlobalVariables
@@ -116,7 +134,7 @@ public class AVAudioWrapper {
116
134
  @objc public func setKeywordDetectionLicense(licenseKey: Swift.String) -> Swift.Bool
117
135
  @objc public func setLicense(licenseKey: Swift.String) -> Swift.Bool
118
136
  @objc public func callBack(frame: [Swift.Float])
119
- @objc public func startListening(setActive: Swift.Bool = true, duckOthers: Swift.Bool = false, mixWithOthers: Swift.Bool = true, defaultToSpeaker: Swift.Bool = true) -> Swift.Bool
137
+ @objc public func startListening(noExternalActivation: Swift.Bool = true, duckOthers: Swift.Bool = false, mixWithOthers: Swift.Bool = true, defaultToSpeaker: Swift.Bool = true) -> Swift.Bool
120
138
  @objc public func stopListening()
121
139
  @objc public func getVoiceProps() -> [Swift.String : Any]
122
140
  @objc public func startSilentListening() -> Swift.Bool
@@ -132,22 +150,16 @@ public enum AudioPlaybackHook {
132
150
  }
133
151
  @_inheritsConvenienceInitializers @objc public class AudioSessionAndDuckingManager : ObjectiveC.NSObject {
134
152
  @objc public static let shared: KeyWordDetection.AudioSessionAndDuckingManager
153
+ #if compiler(>=5.3) && $NonescapableTypes
154
+ @objc public func getWakewordAudioRoutingConfigJSONString() -> Swift.String?
155
+ #endif
156
+ @objc public func setWakewordAudioRoutingConfigFromJSONString(_ jsonConfig: Swift.String)
135
157
  @objc public func initAudioSessAndDuckManage()
136
- @objc public func disableDucking()
137
- @objc public func _disableDucking()
158
+ @objc public func enableRadioInCar()
138
159
  @objc public func enableAggressiveDucking()
139
- @objc public func _enableAggressiveDucking()
140
- @objc public func enableAggressiveDuckingWorksMaxSilencing()
141
- @objc public func enableAggressiveDuckingWorksOnSecondTime()
142
- @objc public func disableDuckingWorks()
143
- @objc public func disableDuckingDidNotUnDuck()
144
- @objc public func disableDuckingOrg()
160
+ @objc public func disableDucking()
145
161
  @objc public func restartListeningAfterDucking()
146
162
  @objc public func disableDuckingAndCleanup()
147
- @objc public func activateSessionForDucking()
148
- @objc public func playInstructionSound(_ soundURL: Foundation.URL)
149
- @objc public func speakInstruction(_ text: Swift.String)
150
- @objc public func deactivateSession()
151
163
  @objc override dynamic public init()
152
164
  @objc deinit
153
165
  }
@@ -1,7 +1,7 @@
1
1
  // swift-interface-format-version: 1.0
2
- // swift-compiler-version: Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
2
+ // swift-compiler-version: Apple Swift version 6.2.1 effective-5.10 (swiftlang-6.2.1.4.8 clang-1700.4.4.1)
3
3
  // swift-module-flags: -target arm64-apple-ios13.5 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name KeyWordDetection
4
- // swift-module-flags-ignorable: -no-verify-emitted-module-interface -interface-compiler-version 6.1.2
4
+ // swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.1
5
5
  import AVFAudio
6
6
  import AVFoundation
7
7
  import Accelerate
@@ -10,6 +10,7 @@ import CommonCrypto
10
10
  import Foundation
11
11
  @_exported import KeyWordDetection
12
12
  import Swift
13
+ import UIKit
13
14
  import _Concurrency
14
15
  import _StringProcessing
15
16
  import _SwiftConcurrencyShims
@@ -34,12 +35,16 @@ public class AVAudioWrapperFrameListener {
34
35
  public var isRecording: Swift.Bool {
35
36
  get
36
37
  }
38
+ #if compiler(>=5.3) && $NonescapableTypes
37
39
  public var frameLength: Swift.UInt32? {
38
40
  get
39
41
  }
42
+ #endif
43
+ #if compiler(>=5.3) && $NonescapableTypes
40
44
  public var sampleRate: Swift.UInt32? {
41
45
  get
42
46
  }
47
+ #endif
43
48
  public var numFrameListeners: Swift.Int {
44
49
  get
45
50
  }
@@ -51,10 +56,17 @@ public class AVAudioWrapperFrameListener {
51
56
  public func removeFrameListener(_ listener: KeyWordDetection.AVAudioWrapperFrameListener)
52
57
  public func clearFrameListeners()
53
58
  public func setSessionOptions(sessionOptions: AVFAudio.AVAudioSession.CategoryOptions)
54
- public func start(frameLength: Swift.UInt32, sampleRate: Swift.UInt32, setActive: Swift.Bool = true, duckOthers: Swift.Bool = false, mixWithOthers: Swift.Bool = true, defaultToSpeaker: Swift.Bool = true)
59
+ public func start(frameLength: Swift.UInt32, sampleRate: Swift.UInt32, noExternalActivation: Swift.Bool = true, duckOthers: Swift.Bool = false, mixWithOthers: Swift.Bool = true, defaultToSpeaker: Swift.Bool = true)
55
60
  public func stop() throws
56
61
  @objc deinit
57
62
  }
63
+ @_hasMissingDesignatedInitializers final public class AppStateTracker {
64
+ public static let shared: KeyWordDetection.AppStateTracker
65
+ final public var isInBackground: Swift.Bool {
66
+ get
67
+ }
68
+ @objc deinit
69
+ }
58
70
  public class AVAudioWrapperBuffer {
59
71
  public init(size: Swift.Int)
60
72
  public func write(samples: [Swift.Float]) -> Swift.Int16
@@ -64,20 +76,26 @@ public class AVAudioWrapperBuffer {
64
76
  }
65
77
  public class AVAudioWrapper {
66
78
  public static let instance: KeyWordDetection.AVAudioWrapper
79
+ public var preferOnDeviceMicInCarPlay: Swift.Bool
67
80
  public var isRecording: Swift.Bool {
68
81
  get
69
82
  }
83
+ #if compiler(>=5.3) && $NonescapableTypes
70
84
  public var frameLength: Swift.UInt32? {
71
85
  get
72
86
  }
87
+ #endif
88
+ #if compiler(>=5.3) && $NonescapableTypes
73
89
  public var sampleRate: Swift.UInt32? {
74
90
  get
75
91
  }
92
+ #endif
76
93
  public var numFrameListeners: Swift.Int {
77
94
  get
78
95
  }
79
96
  public func setSessionOptions(sessionOptions: AVFAudio.AVAudioSession.CategoryOptions)
80
97
  public init()
98
+ @objc deinit
81
99
  public static var hasRecordAudioPermission: Swift.Bool {
82
100
  get
83
101
  }
@@ -88,9 +106,9 @@ public class AVAudioWrapper {
88
106
  public func removeFrameListeners(_ listeners: [KeyWordDetection.AVAudioWrapperFrameListener])
89
107
  public func clearFrameListeners()
90
108
  public func startAfterUnDucking()
91
- public func start(frameLength: Swift.UInt32, sampleRate: Swift.UInt32, setActive: Swift.Bool = true, duckOthers: Swift.Bool = false, mixWithOthers: Swift.Bool = true, defaultToSpeaker: Swift.Bool = true)
109
+ public func start(frameLength: Swift.UInt32, sampleRate: Swift.UInt32, noExternalActivation: Swift.Bool = true, duckOthers: Swift.Bool = false, mixWithOthers: Swift.Bool = true, defaultToSpeaker: Swift.Bool = true)
110
+ public func start_org(frameLength: Swift.UInt32, sampleRate: Swift.UInt32, noExternalActivation: Swift.Bool = true, duckOthers: Swift.Bool = false, mixWithOthers: Swift.Bool = true, defaultToSpeaker: Swift.Bool = true)
92
111
  public func stop() throws
93
- @objc deinit
94
112
  }
95
113
  @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objc public class GlobalVariables : ObjectiveC.NSObject {
96
114
  @objc public static let shared: KeyWordDetection.GlobalVariables
@@ -116,7 +134,7 @@ public class AVAudioWrapper {
116
134
  @objc public func setKeywordDetectionLicense(licenseKey: Swift.String) -> Swift.Bool
117
135
  @objc public func setLicense(licenseKey: Swift.String) -> Swift.Bool
118
136
  @objc public func callBack(frame: [Swift.Float])
119
- @objc public func startListening(setActive: Swift.Bool = true, duckOthers: Swift.Bool = false, mixWithOthers: Swift.Bool = true, defaultToSpeaker: Swift.Bool = true) -> Swift.Bool
137
+ @objc public func startListening(noExternalActivation: Swift.Bool = true, duckOthers: Swift.Bool = false, mixWithOthers: Swift.Bool = true, defaultToSpeaker: Swift.Bool = true) -> Swift.Bool
120
138
  @objc public func stopListening()
121
139
  @objc public func getVoiceProps() -> [Swift.String : Any]
122
140
  @objc public func startSilentListening() -> Swift.Bool
@@ -132,22 +150,16 @@ public enum AudioPlaybackHook {
132
150
  }
133
151
  @_inheritsConvenienceInitializers @objc public class AudioSessionAndDuckingManager : ObjectiveC.NSObject {
134
152
  @objc public static let shared: KeyWordDetection.AudioSessionAndDuckingManager
153
+ #if compiler(>=5.3) && $NonescapableTypes
154
+ @objc public func getWakewordAudioRoutingConfigJSONString() -> Swift.String?
155
+ #endif
156
+ @objc public func setWakewordAudioRoutingConfigFromJSONString(_ jsonConfig: Swift.String)
135
157
  @objc public func initAudioSessAndDuckManage()
136
- @objc public func disableDucking()
137
- @objc public func _disableDucking()
158
+ @objc public func enableRadioInCar()
138
159
  @objc public func enableAggressiveDucking()
139
- @objc public func _enableAggressiveDucking()
140
- @objc public func enableAggressiveDuckingWorksMaxSilencing()
141
- @objc public func enableAggressiveDuckingWorksOnSecondTime()
142
- @objc public func disableDuckingWorks()
143
- @objc public func disableDuckingDidNotUnDuck()
144
- @objc public func disableDuckingOrg()
160
+ @objc public func disableDucking()
145
161
  @objc public func restartListeningAfterDucking()
146
162
  @objc public func disableDuckingAndCleanup()
147
- @objc public func activateSessionForDucking()
148
- @objc public func playInstructionSound(_ soundURL: Foundation.URL)
149
- @objc public func speakInstruction(_ text: Swift.String)
150
- @objc public func deactivateSession()
151
163
  @objc override dynamic public init()
152
164
  @objc deinit
153
165
  }
@@ -1,6 +1,6 @@
1
1
  #if 0
2
2
  #elif defined(__arm64__) && __arm64__
3
- // Generated by Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
3
+ // Generated by Apple Swift version 6.2.1 effective-5.10 (swiftlang-6.2.1.4.8 clang-1700.4.4.1)
4
4
  #ifndef KEYWORDDETECTION_SWIFT_H
5
5
  #define KEYWORDDETECTION_SWIFT_H
6
6
  #pragma clang diagnostic push
@@ -305,33 +305,20 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
305
305
 
306
306
  #if defined(__OBJC__)
307
307
 
308
- @class NSURL;
309
308
  @class NSString;
310
309
  SWIFT_CLASS("_TtC16KeyWordDetection29AudioSessionAndDuckingManager")
311
310
  @interface AudioSessionAndDuckingManager : NSObject
312
311
  SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) AudioSessionAndDuckingManager * _Nonnull shared;)
313
312
  + (AudioSessionAndDuckingManager * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
313
+ - (NSString * _Nullable)getWakewordAudioRoutingConfigJSONString SWIFT_WARN_UNUSED_RESULT;
314
+ - (void)setWakewordAudioRoutingConfigFromJSONString:(NSString * _Nonnull)jsonConfig;
314
315
  - (void)initAudioSessAndDuckManage SWIFT_METHOD_FAMILY(none);
315
- - (void)disableDucking;
316
- /// Example function to end ducking. Deactivates session and stops engine.
317
- - (void)_disableDucking;
316
+ - (void)enableRadioInCar;
318
317
  - (void)enableAggressiveDucking;
319
- - (void)_enableAggressiveDucking;
320
- - (void)enableAggressiveDuckingWorksMaxSilencing;
321
- - (void)enableAggressiveDuckingWorksOnSecondTime;
322
- /// Example function to end ducking. Deactivates session and stops engine.
323
- - (void)disableDuckingWorks;
324
- - (void)disableDuckingDidNotUnDuck;
325
- /// Example function to end ducking. Deactivates session and stops engine.
326
- - (void)disableDuckingOrg;
318
+ - (void)disableDucking;
327
319
  - (void)restartListeningAfterDucking;
328
320
  /// Example function to end ducking. Deactivates session and stops engine.
329
321
  - (void)disableDuckingAndCleanup;
330
- /// BELOW IS FROM CHATGPT – XXX NOT TESTED AND PROBABLY BUGGY
331
- - (void)activateSessionForDucking;
332
- - (void)playInstructionSound:(NSURL * _Nonnull)soundURL;
333
- - (void)speakInstruction:(NSString * _Nonnull)text;
334
- - (void)deactivateSession;
335
322
  - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
336
323
  @end
337
324
 
@@ -363,7 +350,7 @@ SWIFT_CLASS("_TtC16KeyWordDetection17KeyWordsDetection")
363
350
  - (BOOL)setKeywordDetectionLicenseWithLicenseKey:(NSString * _Nonnull)licenseKey SWIFT_WARN_UNUSED_RESULT;
364
351
  - (BOOL)setLicenseWithLicenseKey:(NSString * _Nonnull)licenseKey SWIFT_WARN_UNUSED_RESULT;
365
352
  - (void)callBackWithFrame:(NSArray<NSNumber *> * _Nonnull)frame;
366
- - (BOOL)startListeningWithSetActive:(BOOL)setActive duckOthers:(BOOL)duckOthers mixWithOthers:(BOOL)mixWithOthers defaultToSpeaker:(BOOL)defaultToSpeaker SWIFT_WARN_UNUSED_RESULT;
353
+ - (BOOL)startListeningWithNoExternalActivation:(BOOL)noExternalActivation duckOthers:(BOOL)duckOthers mixWithOthers:(BOOL)mixWithOthers defaultToSpeaker:(BOOL)defaultToSpeaker SWIFT_WARN_UNUSED_RESULT;
367
354
  - (void)stopListening;
368
355
  - (NSDictionary<NSString *, id> * _Nonnull)getVoiceProps SWIFT_WARN_UNUSED_RESULT;
369
356
  - (BOOL)startSilentListening SWIFT_WARN_UNUSED_RESULT;
@@ -395,7 +382,7 @@ SWIFT_CLASS("_TtC16KeyWordDetection14LicenseManager")
395
382
  #endif
396
383
 
397
384
  #elif defined(__x86_64__) && __x86_64__
398
- // Generated by Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
385
+ // Generated by Apple Swift version 6.2.1 effective-5.10 (swiftlang-6.2.1.4.8 clang-1700.4.4.1)
399
386
  #ifndef KEYWORDDETECTION_SWIFT_H
400
387
  #define KEYWORDDETECTION_SWIFT_H
401
388
  #pragma clang diagnostic push
@@ -700,33 +687,20 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
700
687
 
701
688
  #if defined(__OBJC__)
702
689
 
703
- @class NSURL;
704
690
  @class NSString;
705
691
  SWIFT_CLASS("_TtC16KeyWordDetection29AudioSessionAndDuckingManager")
706
692
  @interface AudioSessionAndDuckingManager : NSObject
707
693
  SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) AudioSessionAndDuckingManager * _Nonnull shared;)
708
694
  + (AudioSessionAndDuckingManager * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
695
+ - (NSString * _Nullable)getWakewordAudioRoutingConfigJSONString SWIFT_WARN_UNUSED_RESULT;
696
+ - (void)setWakewordAudioRoutingConfigFromJSONString:(NSString * _Nonnull)jsonConfig;
709
697
  - (void)initAudioSessAndDuckManage SWIFT_METHOD_FAMILY(none);
710
- - (void)disableDucking;
711
- /// Example function to end ducking. Deactivates session and stops engine.
712
- - (void)_disableDucking;
698
+ - (void)enableRadioInCar;
713
699
  - (void)enableAggressiveDucking;
714
- - (void)_enableAggressiveDucking;
715
- - (void)enableAggressiveDuckingWorksMaxSilencing;
716
- - (void)enableAggressiveDuckingWorksOnSecondTime;
717
- /// Example function to end ducking. Deactivates session and stops engine.
718
- - (void)disableDuckingWorks;
719
- - (void)disableDuckingDidNotUnDuck;
720
- /// Example function to end ducking. Deactivates session and stops engine.
721
- - (void)disableDuckingOrg;
700
+ - (void)disableDucking;
722
701
  - (void)restartListeningAfterDucking;
723
702
  /// Example function to end ducking. Deactivates session and stops engine.
724
703
  - (void)disableDuckingAndCleanup;
725
- /// BELOW IS FROM CHATGPT – XXX NOT TESTED AND PROBABLY BUGGY
726
- - (void)activateSessionForDucking;
727
- - (void)playInstructionSound:(NSURL * _Nonnull)soundURL;
728
- - (void)speakInstruction:(NSString * _Nonnull)text;
729
- - (void)deactivateSession;
730
704
  - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
731
705
  @end
732
706
 
@@ -758,7 +732,7 @@ SWIFT_CLASS("_TtC16KeyWordDetection17KeyWordsDetection")
758
732
  - (BOOL)setKeywordDetectionLicenseWithLicenseKey:(NSString * _Nonnull)licenseKey SWIFT_WARN_UNUSED_RESULT;
759
733
  - (BOOL)setLicenseWithLicenseKey:(NSString * _Nonnull)licenseKey SWIFT_WARN_UNUSED_RESULT;
760
734
  - (void)callBackWithFrame:(NSArray<NSNumber *> * _Nonnull)frame;
761
- - (BOOL)startListeningWithSetActive:(BOOL)setActive duckOthers:(BOOL)duckOthers mixWithOthers:(BOOL)mixWithOthers defaultToSpeaker:(BOOL)defaultToSpeaker SWIFT_WARN_UNUSED_RESULT;
735
+ - (BOOL)startListeningWithNoExternalActivation:(BOOL)noExternalActivation duckOthers:(BOOL)duckOthers mixWithOthers:(BOOL)mixWithOthers defaultToSpeaker:(BOOL)defaultToSpeaker SWIFT_WARN_UNUSED_RESULT;
762
736
  - (void)stopListening;
763
737
  - (NSDictionary<NSString *, id> * _Nonnull)getVoiceProps SWIFT_WARN_UNUSED_RESULT;
764
738
  - (BOOL)startSilentListening SWIFT_WARN_UNUSED_RESULT;