react-native-davoice-tts 1.0.320 → 1.0.321

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 +14 -0
  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 +3503 -3510
  5. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.private.swiftinterface +17 -17
  6. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.swiftinterface +17 -17
  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 +381 -388
  9. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +5 -5
  10. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.swiftinterface +5 -5
  11. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.abi.json +381 -388
  12. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +5 -5
  13. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +5 -5
  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 +18 -1
@@ -53,6 +53,11 @@ import phonemes
53
53
  @objc final public func playWav(_ url: Foundation.URL, markAsLastUtterance: Swift.Bool = true)
54
54
  @objc final public func playBuffer(_ buffer: AVFAudio.AVAudioPCMBuffer, markAsLastUtterance: Swift.Bool = true)
55
55
  }
56
+ @_inheritsConvenienceInitializers @objc final public class LicenseManager : ObjectiveC.NSObject {
57
+ @objc public static func isLicenseValid(licenseKey: Swift.String) -> Swift.Bool
58
+ @objc override dynamic public init()
59
+ @objc deinit
60
+ }
56
61
  public typealias EngineSchedule = (_ url: Foundation.URL, _ onDone: @escaping () -> Swift.Void) -> Swift.Bool
57
62
  public typealias IsEngineReady = () -> Swift.Bool
58
63
  public typealias useOnlyEnginePlayback = () -> Swift.Bool
@@ -65,11 +70,6 @@ public enum AudioPlaybackHook {
65
70
  public static var stopEnginePlayback: DavoiceTTS.StopEnginePlayback?
66
71
  public static var currentEngine: DavoiceTTS.CurrentEngineProvider?
67
72
  }
68
- @_inheritsConvenienceInitializers @objc final public class LicenseManager : ObjectiveC.NSObject {
69
- @objc public static func isLicenseValid(licenseKey: Swift.String) -> Swift.Bool
70
- @objc override dynamic public init()
71
- @objc deinit
72
- }
73
73
  public enum SVLogLevel : Swift.Int, Swift.Codable {
74
74
  case off, error, warn, info, debug, trace
75
75
  public init?(rawValue: Swift.Int)
@@ -53,6 +53,11 @@ import phonemes
53
53
  @objc final public func playWav(_ url: Foundation.URL, markAsLastUtterance: Swift.Bool = true)
54
54
  @objc final public func playBuffer(_ buffer: AVFAudio.AVAudioPCMBuffer, markAsLastUtterance: Swift.Bool = true)
55
55
  }
56
+ @_inheritsConvenienceInitializers @objc final public class LicenseManager : ObjectiveC.NSObject {
57
+ @objc public static func isLicenseValid(licenseKey: Swift.String) -> Swift.Bool
58
+ @objc override dynamic public init()
59
+ @objc deinit
60
+ }
56
61
  public typealias EngineSchedule = (_ url: Foundation.URL, _ onDone: @escaping () -> Swift.Void) -> Swift.Bool
57
62
  public typealias IsEngineReady = () -> Swift.Bool
58
63
  public typealias useOnlyEnginePlayback = () -> Swift.Bool
@@ -65,11 +70,6 @@ public enum AudioPlaybackHook {
65
70
  public static var stopEnginePlayback: DavoiceTTS.StopEnginePlayback?
66
71
  public static var currentEngine: DavoiceTTS.CurrentEngineProvider?
67
72
  }
68
- @_inheritsConvenienceInitializers @objc final public class LicenseManager : ObjectiveC.NSObject {
69
- @objc public static func isLicenseValid(licenseKey: Swift.String) -> Swift.Bool
70
- @objc override dynamic public init()
71
- @objc deinit
72
- }
73
73
  public enum SVLogLevel : Swift.Int, Swift.Codable {
74
74
  case off, error, warn, info, debug, trace
75
75
  public init?(rawValue: Swift.Int)
@@ -14,11 +14,11 @@
14
14
  </data>
15
15
  <key>Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
16
16
  <data>
17
- hCIQzvLsnUwMA5G2zfkUvOZR054=
17
+ 9CFGBqNMnh3cwOoi38aVBgsneqk=
18
18
  </data>
19
19
  <key>Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
20
20
  <data>
21
- j5jzjepWd2wFGYdKznplWdXFU9E=
21
+ iZ9SB6PLiy0mvvKUm31ZjWrdPY8=
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
- j5jzjepWd2wFGYdKznplWdXFU9E=
29
+ iZ9SB6PLiy0mvvKUm31ZjWrdPY8=
30
30
  </data>
31
31
  <key>Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
32
32
  <data>
33
- M3G4SihpT6RHQknHh9IOfXJRq9w=
33
+ jp/eQj6hR7QPBMc0xBNk10JXAQM=
34
34
  </data>
35
35
  <key>Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
36
36
  <data>
37
- hCIQzvLsnUwMA5G2zfkUvOZR054=
37
+ 9CFGBqNMnh3cwOoi38aVBgsneqk=
38
38
  </data>
39
39
  <key>Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
40
40
  <data>
41
- caID91YeOxRgLsyBMKhGgKw8TqU=
41
+ 6dQ7pJyDbRInQCGa8BRk3B9JBRY=
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
- caID91YeOxRgLsyBMKhGgKw8TqU=
49
+ 6dQ7pJyDbRInQCGa8BRk3B9JBRY=
50
50
  </data>
51
51
  <key>Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
52
52
  <data>
53
- 3855CoU2Vmb8AUhvJmmPodnOWjw=
53
+ 08QaJH5IFQQUTX61OdpSPYcdDbQ=
54
54
  </data>
55
55
  <key>Modules/module.modulemap</key>
56
56
  <data>
@@ -74,22 +74,22 @@
74
74
  <dict>
75
75
  <key>hash</key>
76
76
  <data>
77
- hCIQzvLsnUwMA5G2zfkUvOZR054=
77
+ 9CFGBqNMnh3cwOoi38aVBgsneqk=
78
78
  </data>
79
79
  <key>hash2</key>
80
80
  <data>
81
- fej1bj1EOXQIqf2cEsApamLwp69Ns0TasFZE5H50ENA=
81
+ YOKYBImLcHgWJLcSItgIoJJaujhZ3De9+PCgVsi2Wl0=
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
- j5jzjepWd2wFGYdKznplWdXFU9E=
88
+ iZ9SB6PLiy0mvvKUm31ZjWrdPY8=
89
89
  </data>
90
90
  <key>hash2</key>
91
91
  <data>
92
- xjHsQN1ui8h7/lY6kQ31AcXiJ56iO01fTPPgAtORbvI=
92
+ 6yqMqwnkQOtfKqVrzCxqU/p/UmJb+VLLlaIT8BVf9FI=
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
- j5jzjepWd2wFGYdKznplWdXFU9E=
110
+ iZ9SB6PLiy0mvvKUm31ZjWrdPY8=
111
111
  </data>
112
112
  <key>hash2</key>
113
113
  <data>
114
- xjHsQN1ui8h7/lY6kQ31AcXiJ56iO01fTPPgAtORbvI=
114
+ 6yqMqwnkQOtfKqVrzCxqU/p/UmJb+VLLlaIT8BVf9FI=
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
- M3G4SihpT6RHQknHh9IOfXJRq9w=
121
+ jp/eQj6hR7QPBMc0xBNk10JXAQM=
122
122
  </data>
123
123
  <key>hash2</key>
124
124
  <data>
125
- q6KtDXQQdDfnnDWFmPu3EDx046bbllApyTlqRlwTMgU=
125
+ 7BXGUKiPQUkLePIFPa0Nxbqpj3p9wZKkqtUnN6jwE4M=
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
- hCIQzvLsnUwMA5G2zfkUvOZR054=
132
+ 9CFGBqNMnh3cwOoi38aVBgsneqk=
133
133
  </data>
134
134
  <key>hash2</key>
135
135
  <data>
136
- fej1bj1EOXQIqf2cEsApamLwp69Ns0TasFZE5H50ENA=
136
+ YOKYBImLcHgWJLcSItgIoJJaujhZ3De9+PCgVsi2Wl0=
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
- caID91YeOxRgLsyBMKhGgKw8TqU=
143
+ 6dQ7pJyDbRInQCGa8BRk3B9JBRY=
144
144
  </data>
145
145
  <key>hash2</key>
146
146
  <data>
147
- r8RDUVA0LrY0QI4RNPCunNEmOdRBmduzk0WdhlzFeSA=
147
+ GwE5m+vZsiC5Yb1S83RtpV6FORCCBOreebjmXNXoSSw=
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
- caID91YeOxRgLsyBMKhGgKw8TqU=
165
+ 6dQ7pJyDbRInQCGa8BRk3B9JBRY=
166
166
  </data>
167
167
  <key>hash2</key>
168
168
  <data>
169
- r8RDUVA0LrY0QI4RNPCunNEmOdRBmduzk0WdhlzFeSA=
169
+ GwE5m+vZsiC5Yb1S83RtpV6FORCCBOreebjmXNXoSSw=
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
- 3855CoU2Vmb8AUhvJmmPodnOWjw=
176
+ 08QaJH5IFQQUTX61OdpSPYcdDbQ=
177
177
  </data>
178
178
  <key>hash2</key>
179
179
  <data>
180
- o4KILuLUH9rKYBsdzj04XsIN4eSfn3ci1uIW6OH41oc=
180
+ 72qZhHIICmK61DshcqfMQUoiTgAt3/eW412CPptXn9k=
181
181
  </data>
182
182
  </dict>
183
183
  <key>Modules/module.modulemap</key>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-davoice-tts",
3
- "version": "1.0.320",
3
+ "version": "1.0.321",
4
4
  "description": "tts library for React Native",
5
5
  "main": "tts/index.js",
6
6
  "types": "tts/index.d.ts",
package/speech/index.ts CHANGED
@@ -524,7 +524,7 @@ class Speech {
524
524
  return this.start(locale);
525
525
  }
526
526
 
527
- // XXX BUG THE NATIVE SIDE DOES NOT REALLY AWAITS
527
+ // TODO: CHECK THE NATIVE SIDE DOES NOT REALLY AWAITS
528
528
  async pauseSpeechRecognition(): Promise<void> {
529
529
  this.logCall('pauseSpeechRecognitionLite');
530
530
 
@@ -790,6 +790,23 @@ class Speech {
790
790
  return results.every(Boolean);
791
791
  }
792
792
 
793
+ async setAECEnabled(enabled: boolean): Promise<void> {
794
+ const value = !!enabled;
795
+
796
+ if (Platform.OS === 'ios' && NativeSpeech?.setAECEnabled) {
797
+ await NativeSpeech.setAECEnabled(value);
798
+ return;
799
+ }
800
+
801
+ if (NativeSTT?.setAECEnabled) {
802
+ await NativeSTT.setAECEnabled(value);
803
+ return;
804
+ }
805
+ console.warn("AEC not supported on this platform");
806
+ return;
807
+ //throw new Error('setAECEnabled not available on this platform.');
808
+ }
809
+
793
810
  // ---------- TTS ----------
794
811
  async initTTS(modelOrConfig: ModelRef | { model: ModelRef }) {
795
812
  const cfg =