lq-audio-studio 4.0.0 → 4.0.1

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 (31) hide show
  1. package/android/build.gradle +2 -1
  2. package/android/consumer-rules.pro +1 -0
  3. package/android/src/main/java/com/aozora/audio/AozoraWebRtcApm.java +36 -0
  4. package/android/src/main/java/net/siteed/audiostudio/AudioProcessing.kt +95 -0
  5. package/android/src/main/java/net/siteed/audiostudio/AudioRecorderManager.kt +145 -20
  6. package/android/src/main/java/net/siteed/audiostudio/Pcm16FrameAccumulator.kt +47 -0
  7. package/android/src/main/java/net/siteed/audiostudio/RecordingConfig.kt +45 -0
  8. package/android/src/main/java/net/siteed/audiostudio/VoiceProcessingEffects.kt +16 -5
  9. package/android/src/main/java/net/siteed/audiostudio/WebRtcAudioFrameProcessor.kt +118 -0
  10. package/android/src/main/jniLibs/arm64-v8a/libaozora_apm.so +0 -0
  11. package/android/src/main/webrtc-apm-notices/README.md +151 -0
  12. package/android/src/main/webrtc-apm-notices/THIRD_PARTY_NOTICES.md +25 -0
  13. package/android/src/main/webrtc-apm-notices/licenses/AUTHORS +7 -0
  14. package/android/src/main/webrtc-apm-notices/licenses/COPYING +29 -0
  15. package/android/src/main/webrtc-apm-notices/licenses/android-ndk/NOTICE +9997 -0
  16. package/android/src/main/webrtc-apm-notices/licenses/android-ndk/NOTICE.toolchain +15302 -0
  17. package/android/src/main/webrtc-apm-notices/licenses/subprojects/abseil-cpp-20230125.1/AUTHORS +6 -0
  18. package/android/src/main/webrtc-apm-notices/licenses/subprojects/abseil-cpp-20230125.1/LICENSE +203 -0
  19. package/android/src/main/webrtc-apm-notices/licenses/subprojects/abseil-cpp-20230125.1/LICENSE.build +19 -0
  20. package/android/src/main/webrtc-apm-notices/licenses/webrtc/LICENSE +29 -0
  21. package/android/src/main/webrtc-apm-notices/licenses/webrtc/PATENTS +24 -0
  22. package/android/src/main/webrtc-apm-notices/licenses/webrtc/common_audio/third_party/ooura/LICENSE +8 -0
  23. package/android/src/main/webrtc-apm-notices/licenses/webrtc/common_audio/third_party/spl_sqrt_floor/LICENSE +27 -0
  24. package/android/src/main/webrtc-apm-notices/licenses/webrtc/modules/third_party/fft/LICENSE +25 -0
  25. package/android/src/main/webrtc-apm-notices/licenses/webrtc/third_party/pffft/LICENSE +1 -0
  26. package/android/src/main/webrtc-apm-notices/licenses/webrtc/third_party/rnnoise/COPYING +1 -0
  27. package/android/src/main/webrtc-apm-notices/licenses/wrapper-LICENSE +27 -0
  28. package/android/src/main/webrtc-apm-notices/manifest.json +150 -0
  29. package/build/types/AudioStudio.types.d.ts +35 -1
  30. package/package.json +1 -1
  31. package/src/AudioStudio.types.ts +47 -0
@@ -0,0 +1,6 @@
1
+ # This is the list of Abseil authors for copyright purposes.
2
+ #
3
+ # This does not necessarily list everyone who has contributed code, since in
4
+ # some cases, their employer may be the copyright holder. To see the full list
5
+ # of contributors, see the revision history in source control.
6
+ Google Inc.
@@ -0,0 +1,203 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ https://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ https://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
203
+
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2021 The Meson development team
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
@@ -0,0 +1,29 @@
1
+ Copyright (c) 2011, The WebRTC project authors. All rights reserved.
2
+
3
+ Redistribution and use in source and binary forms, with or without
4
+ modification, are permitted provided that the following conditions are
5
+ met:
6
+
7
+ * Redistributions of source code must retain the above copyright
8
+ notice, this list of conditions and the following disclaimer.
9
+
10
+ * Redistributions in binary form must reproduce the above copyright
11
+ notice, this list of conditions and the following disclaimer in
12
+ the documentation and/or other materials provided with the
13
+ distribution.
14
+
15
+ * Neither the name of Google nor the names of its contributors may
16
+ be used to endorse or promote products derived from this software
17
+ without specific prior written permission.
18
+
19
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,24 @@
1
+ Additional IP Rights Grant (Patents)
2
+
3
+ "This implementation" means the copyrightable works distributed by
4
+ Google as part of the WebRTC code package.
5
+
6
+ Google hereby grants to you a perpetual, worldwide, non-exclusive,
7
+ no-charge, irrevocable (except as stated in this section) patent
8
+ license to make, have made, use, offer to sell, sell, import,
9
+ transfer, and otherwise run, modify and propagate the contents of this
10
+ implementation of the WebRTC code package, where such license applies
11
+ only to those patent claims, both currently owned by Google and
12
+ acquired in the future, licensable by Google that are necessarily
13
+ infringed by this implementation of the WebRTC code package. This
14
+ grant does not include claims that would be infringed only as a
15
+ consequence of further modification of this implementation. If you or
16
+ your agent or exclusive licensee institute or order or agree to the
17
+ institution of patent litigation against any entity (including a
18
+ cross-claim or counterclaim in a lawsuit) alleging that this
19
+ implementation of the WebRTC code package or any code incorporated
20
+ within this implementation of the WebRTC code package constitutes
21
+ direct or contributory patent infringement, or inducement of patent
22
+ infringement, then any patent rights granted to you under this License
23
+ for this implementation of the WebRTC code package shall terminate as
24
+ of the date such litigation is filed.
@@ -0,0 +1,8 @@
1
+ /*
2
+ * http://www.kurims.kyoto-u.ac.jp/~ooura/fft.html
3
+ * Copyright Takuya OOURA, 1996-2001
4
+ *
5
+ * You may use, copy, modify and distribute this code for any purpose (include
6
+ * commercial use) and without fee. Please refer to this package when you modify
7
+ * this code.
8
+ */
@@ -0,0 +1,27 @@
1
+ /*
2
+ * Written by Wilco Dijkstra, 1996. The following email exchange establishes the
3
+ * license.
4
+ *
5
+ * From: Wilco Dijkstra <Wilco.Dijkstra@ntlworld.com>
6
+ * Date: Fri, Jun 24, 2011 at 3:20 AM
7
+ * Subject: Re: sqrt routine
8
+ * To: Kevin Ma <kma@google.com>
9
+ * Hi Kevin,
10
+ * Thanks for asking. Those routines are public domain (originally posted to
11
+ * comp.sys.arm a long time ago), so you can use them freely for any purpose.
12
+ * Cheers,
13
+ * Wilco
14
+ *
15
+ * ----- Original Message -----
16
+ * From: "Kevin Ma" <kma@google.com>
17
+ * To: <Wilco.Dijkstra@ntlworld.com>
18
+ * Sent: Thursday, June 23, 2011 11:44 PM
19
+ * Subject: Fwd: sqrt routine
20
+ * Hi Wilco,
21
+ * I saw your sqrt routine from several web sites, including
22
+ * http://www.finesse.demon.co.uk/steven/sqrt.html.
23
+ * Just wonder if there's any copyright information with your Successive
24
+ * approximation routines, or if I can freely use it for any purpose.
25
+ * Thanks.
26
+ * Kevin
27
+ */
@@ -0,0 +1,25 @@
1
+ /*
2
+ * Copyright(c)1995,97 Mark Olesen <olesen@me.QueensU.CA>
3
+ * Queen's Univ at Kingston (Canada)
4
+ *
5
+ * Permission to use, copy, modify, and distribute this software for
6
+ * any purpose without fee is hereby granted, provided that this
7
+ * entire notice is included in all copies of any software which is
8
+ * or includes a copy or modification of this software and in all
9
+ * copies of the supporting documentation for such software.
10
+ *
11
+ * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR
12
+ * IMPLIED WARRANTY. IN PARTICULAR, NEITHER THE AUTHOR NOR QUEEN'S
13
+ * UNIVERSITY AT KINGSTON MAKES ANY REPRESENTATION OR WARRANTY OF ANY
14
+ * KIND CONCERNING THE MERCHANTABILITY OF THIS SOFTWARE OR ITS
15
+ * FITNESS FOR ANY PARTICULAR PURPOSE.
16
+ *
17
+ * All of which is to say that you can do what you like with this
18
+ * source code provided you don't try to sell it as your own and you
19
+ * include an unaltered copy of this message (including the
20
+ * copyright).
21
+ *
22
+ * It is also implicitly understood that bug fixes and improvements
23
+ * should make their way back to the general Internet community so
24
+ * that everyone benefits.
25
+ */
@@ -0,0 +1 @@
1
+ Q29weXJpZ2h0IChjKSAyMDEzICBKdWxpZW4gUG9tbWllciAoIHBvbW1pZXJAbW9kYXJ0dC5jb20gKQoKQmFzZWQgb24gb3JpZ2luYWwgZm9ydHJhbiA3NyBjb2RlIGZyb20gRkZUUEFDS3Y0IGZyb20gTkVUTElCLAphdXRob3JlZCBieSBEciBQYXVsIFN3YXJ6dHJhd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gV0hFVEhFUiBJTiBDT05UUkFDVCwgU1RSSUNUIExJQUJJTElUWSwgT1IgVE9SVAooSU5DTFVESU5HIE5FR0xJR0VOQ0UgT1IgT1RIRVJXSVNFKSBBUklTSU5HIElOIEFOWSBXQVkgT1VUIE9GIFRIRSBVU0UKT0YgVEhJUyBTT0ZUV0FSRSwgRVZFTiBJRiBBRFZJU0VEIE9GIFRIRSBQT1NTSUJJTElUWSBPRiBTVUNIIERBTUFHRS4K
@@ -0,0 +1,27 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2026, webrtc-apm-deps-build contributors
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ 1. Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+ 2. Redistributions in binary form must reproduce the above copyright notice,
12
+ this list of conditions and the following disclaimer in the documentation
13
+ and/or other materials provided with the distribution.
14
+ 3. Neither the name of the copyright holder nor the names of its contributors
15
+ may be used to endorse or promote products derived from this software
16
+ without specific prior written permission.
17
+
18
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
22
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,150 @@
1
+ {
2
+ "platform": "android",
3
+ "source": {
4
+ "url": "https://github.com/helloooideeeeea/webrtc-audio-processing.git",
5
+ "commit": "f8efa8486ac0dd463fb84e4e99be2e072c28adb8",
6
+ "version": "1.3"
7
+ },
8
+ "dependencyLock": {
9
+ "source": {
10
+ "url": "https://github.com/helloooideeeeea/webrtc-audio-processing.git",
11
+ "commit": "f8efa8486ac0dd463fb84e4e99be2e072c28adb8",
12
+ "version": "1.3"
13
+ },
14
+ "abseil": {
15
+ "directory": "abseil-cpp-20230125.1",
16
+ "source_hash": "81311c17599b3712069ded20cca09a62ab0bf2a89dfa16993786c8782b7ed145",
17
+ "patch_hash": "112ee72052049d930396c2778fc1c6e184137905dd75d60a97dcfc386426610d"
18
+ },
19
+ "android": {
20
+ "ndk": "27.1.12297006",
21
+ "api": 28
22
+ },
23
+ "ios": {
24
+ "deploymentTarget": "14.0",
25
+ "architectures": [
26
+ "arm64"
27
+ ],
28
+ "deviceOnly": true
29
+ },
30
+ "harmony": {
31
+ "architecture": "arm64-v8a",
32
+ "sdkArchive": "commandline-tools-linux-x64-26.0.0.851.zip",
33
+ "sdkSha256": "ab604bd92721d5cbcafd154e6461d46b9f1b105e7b89eab04a9d046681198082"
34
+ }
35
+ },
36
+ "features": [
37
+ "AEC3",
38
+ "NS",
39
+ "AGC2",
40
+ "voice-detection"
41
+ ],
42
+ "runtimeValidation": "NOT RUN",
43
+ "utsValidation": "NOT RUN",
44
+ "checks": {
45
+ "arm64-v8a": {
46
+ "libaozora_apm.so": {
47
+ "machine": "AArch64",
48
+ "needed": [
49
+ "libc.so",
50
+ "libdl.so",
51
+ "liblog.so",
52
+ "libm.so"
53
+ ],
54
+ "linkage": "PASSED"
55
+ }
56
+ }
57
+ },
58
+ "licenses": [
59
+ "AUTHORS",
60
+ "COPYING",
61
+ "subprojects/abseil-cpp-20230125.1/AUTHORS",
62
+ "subprojects/abseil-cpp-20230125.1/LICENSE",
63
+ "subprojects/abseil-cpp-20230125.1/LICENSE.build",
64
+ "webrtc/LICENSE",
65
+ "webrtc/PATENTS",
66
+ "webrtc/common_audio/third_party/ooura/LICENSE",
67
+ "webrtc/common_audio/third_party/spl_sqrt_floor/LICENSE",
68
+ "webrtc/modules/third_party/fft/LICENSE",
69
+ "webrtc/third_party/pffft/LICENSE",
70
+ "webrtc/third_party/rnnoise/COPYING"
71
+ ],
72
+ "files": {
73
+ "README.md": {
74
+ "bytes": 7794,
75
+ "sha256": "b8b8acc272df16b4a497e713588cc8f1cc918119b6f28f966378617e88ece207"
76
+ },
77
+ "THIRD_PARTY_NOTICES.md": {
78
+ "bytes": 1528,
79
+ "sha256": "97bbccd06118ce8a9dd9348a59f0636cca4fb1fa82d3d7d33c62af847d748697"
80
+ },
81
+ "app-android/include/aozora_apm.h": {
82
+ "bytes": 1834,
83
+ "sha256": "277d83959341396aa1fa1f3a9cca8a11fc020685861c0635085bd0c0e2b90cc3"
84
+ },
85
+ "app-android/libs/arm64-v8a/libaozora_apm.so": {
86
+ "bytes": 720984,
87
+ "sha256": "35505f16f5d24279cae33facb5a19a08f31776c70668addde4c166546103e914"
88
+ },
89
+ "licenses/AUTHORS": {
90
+ "bytes": 181,
91
+ "sha256": "705caaeede8c3bc8c8e3f76489864a5b0575b42cb4a38091f88b9126c3e6628d"
92
+ },
93
+ "licenses/COPYING": {
94
+ "bytes": 1495,
95
+ "sha256": "9b79539028e216e813e152d45f5c1ed5fdd0554426ad50270fb03134e7082dac"
96
+ },
97
+ "licenses/android-ndk/NOTICE": {
98
+ "bytes": 522923,
99
+ "sha256": "4d5224d1c0b54ffa88b0dc0088191638fdbb7227835095dfb98f7f66b416a323"
100
+ },
101
+ "licenses/android-ndk/NOTICE.toolchain": {
102
+ "bytes": 806124,
103
+ "sha256": "cbe3237be53c0a819f8df6aac5358fdee848eee3b6571b4e2ca20767ebd7465e"
104
+ },
105
+ "licenses/subprojects/abseil-cpp-20230125.1/AUTHORS": {
106
+ "bytes": 295,
107
+ "sha256": "1fd39030c119b4c97014f59e0ad0ed65f23475bbdf55a52740f31eb82b34b4ee"
108
+ },
109
+ "licenses/subprojects/abseil-cpp-20230125.1/LICENSE": {
110
+ "bytes": 11361,
111
+ "sha256": "c79a7fea0e3cac04cd43f20e7b648e5a0ff8fa5344e644b0ee09ca1162b62747"
112
+ },
113
+ "licenses/subprojects/abseil-cpp-20230125.1/LICENSE.build": {
114
+ "bytes": 1070,
115
+ "sha256": "7939f4c45423cec4a18236ad0a88570e33508dd7462e07b1038001f90ece65fb"
116
+ },
117
+ "licenses/webrtc/LICENSE": {
118
+ "bytes": 1511,
119
+ "sha256": "ab00a482b6a3902e40211b43c5d0441962ea99b6cc7c25c0f243fa270b78d482"
120
+ },
121
+ "licenses/webrtc/PATENTS": {
122
+ "bytes": 1388,
123
+ "sha256": "01462e2068d1a04c2274f3389773014c14ed9bc3446b28303543bd3e3c064145"
124
+ },
125
+ "licenses/webrtc/common_audio/third_party/ooura/LICENSE": {
126
+ "bytes": 272,
127
+ "sha256": "25b7731b70c77ecd5f3bb19303fbaa99be18860f81d44f71da670fdcd04829db"
128
+ },
129
+ "licenses/webrtc/common_audio/third_party/spl_sqrt_floor/LICENSE": {
130
+ "bytes": 915,
131
+ "sha256": "41d791701e3e1c1073470403de7e342442d1e6a2af72681023b13a2f45f2125c"
132
+ },
133
+ "licenses/webrtc/modules/third_party/fft/LICENSE": {
134
+ "bytes": 1125,
135
+ "sha256": "6fdbabd2c95c5efc6f1e46175278239afb9343120a3022ed0e0cb04267a6aeb3"
136
+ },
137
+ "licenses/webrtc/third_party/pffft/LICENSE": {
138
+ "bytes": 2560,
139
+ "sha256": "867617bfc1d18efeb0e2d8b0667912037d0de866cb5a58489108ee7b2bdb5d28"
140
+ },
141
+ "licenses/webrtc/third_party/rnnoise/COPYING": {
142
+ "bytes": 2108,
143
+ "sha256": "c12b096f7895f751fc51e6f406e20086c7dcc97a87fb87499ed2844cb123716c"
144
+ },
145
+ "licenses/wrapper-LICENSE": {
146
+ "bytes": 1540,
147
+ "sha256": "89418fc938de5d5ef90cc92de717eceb8a442dfbe7160065865bfcc230a351e8"
148
+ }
149
+ }
150
+ }
@@ -33,6 +33,23 @@ export interface AudioStreamStatus {
33
33
  maxDurationMs?: number;
34
34
  /** Whether the current recording session has reached the configured maximum duration */
35
35
  maxDurationReached?: boolean;
36
+ /** Android 3A backend selected for the active recording. */
37
+ audioProcessing?: AudioProcessingStatus;
38
+ }
39
+ export type AudioProcessingBackend = 'disabled' | 'system' | 'webrtc' | 'unavailable';
40
+ export interface AudioProcessingStatus {
41
+ mode: 'disabled' | AndroidAudioProcessingMode;
42
+ /** `webrtc` is reported only after the software AEC receives real speaker-reference PCM. */
43
+ aec: AudioProcessingBackend;
44
+ noiseSuppression: AudioProcessingBackend;
45
+ automaticGainControl: AudioProcessingBackend;
46
+ /** A software AEC is not effective until real speaker PCM reaches its reverse stream. */
47
+ reverseStreamConnected: boolean;
48
+ sampleRate: number;
49
+ channels: number;
50
+ frameDurationMs: 10;
51
+ /** Currently false: Android MediaRecorder compression uses a separate capture path. */
52
+ compressedOutputProcessed: boolean;
36
53
  }
37
54
  interface AudioDataEventBase {
38
55
  /** Current position in the audio stream in bytes */
@@ -175,6 +192,8 @@ export interface StartRecordingResult {
175
192
  * Check this rather than assuming the requested source was used.
176
193
  */
177
194
  androidAudioSource?: 'mic' | 'voiceRecognition' | 'voiceCommunication' | 'unprocessed';
195
+ /** Verifiable Android system/WebRTC 3A selection for this recording session. */
196
+ audioProcessing?: AudioProcessingStatus;
178
197
  /** Information about compression if enabled, including the URI to the compressed file */
179
198
  compression?: CompressionInfo & {
180
199
  /** URI to the compressed audio file */
@@ -276,6 +295,22 @@ export interface AndroidConfig {
276
295
  * @default 'mic'
277
296
  */
278
297
  audioSource?: 'mic' | 'voiceRecognition' | 'voiceCommunication' | 'unprocessed' | 'auto';
298
+ /**
299
+ * Android voice processing policy. When omitted, `voiceCommunication` uses
300
+ * `systemWithSoftwareFallback`; other sources keep their previous behavior.
301
+ *
302
+ * WebRTC software processing currently supports mono PCM16 at 16 or 48 kHz in this
303
+ * package's public sample-rate set. It processes primary WAV, JS PCM streaming, and
304
+ * analysis input. Compressed MediaRecorder output is a separate capture path.
305
+ */
306
+ audioProcessing?: AndroidAudioProcessingConfig;
307
+ }
308
+ export type AndroidAudioProcessingMode = 'system' | 'systemWithSoftwareFallback' | 'software';
309
+ export interface AndroidAudioProcessingConfig {
310
+ mode?: AndroidAudioProcessingMode;
311
+ echoCancellation?: boolean;
312
+ noiseSuppression?: boolean;
313
+ automaticGainControl?: boolean;
279
314
  }
280
315
  /** Web platform specific configuration options */
281
316
  export interface WebConfig {
@@ -875,4 +910,3 @@ export interface TrimAudioResult {
875
910
  };
876
911
  }
877
912
  export {};
878
- //# sourceMappingURL=AudioStudio.types.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lq-audio-studio",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "Comprehensive audio processing library for React Native and Expo with recording, analysis, visualization, and streaming capabilities across iOS, Android, and web",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",