@qvac/decoder-audio 0.3.2 → 0.3.4
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/LICENSE +1 -24
- package/NOTICE +242 -0
- package/README.md +17 -1
- package/index.d.ts +6 -2
- package/package.json +5 -3
package/LICENSE
CHANGED
|
@@ -176,27 +176,4 @@
|
|
|
176
176
|
|
|
177
177
|
END OF TERMS AND CONDITIONS
|
|
178
178
|
|
|
179
|
-
|
|
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
|
-
http://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.
|
|
179
|
+
Copyright 2026 Tether Data, S.A. de C.V.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
@qvac/decoder-audio
|
|
2
|
+
Copyright 2026 Tether Data, S.A. de C.V.
|
|
3
|
+
|
|
4
|
+
This product includes third-party components under their
|
|
5
|
+
respective licenses. @qvac/decoder-audio itself is licensed under
|
|
6
|
+
Apache-2.0; bundled dependencies are governed by the licenses
|
|
7
|
+
listed below.
|
|
8
|
+
|
|
9
|
+
=========================================================================
|
|
10
|
+
JavaScript Dependencies
|
|
11
|
+
=========================================================================
|
|
12
|
+
|
|
13
|
+
--- apache-2.0 (Apache License 2.0) ---
|
|
14
|
+
|
|
15
|
+
@hyperswarm/secret-stream@6.9.1
|
|
16
|
+
https://github.com/holepunchto/hyperswarm-secret-stream
|
|
17
|
+
@qvac/dl-base@0.1.1
|
|
18
|
+
@qvac/dl-hyperdrive@0.1.1
|
|
19
|
+
@qvac/error@0.1.1
|
|
20
|
+
@qvac/infer-base@0.1.1
|
|
21
|
+
@qvac/logging@0.1.0
|
|
22
|
+
@qvac/response@0.1.2
|
|
23
|
+
adaptive-timeout@1.0.1
|
|
24
|
+
https://github.com/holepunchto/adaptive-timeout
|
|
25
|
+
b4a@1.7.5
|
|
26
|
+
https://github.com/holepunchto/b4a
|
|
27
|
+
bare-addon-resolve@1.10.0
|
|
28
|
+
https://github.com/holepunchto/bare-addon-resolve
|
|
29
|
+
bare-ansi-escapes@2.2.3
|
|
30
|
+
https://github.com/holepunchto/bare-ansi-escapes
|
|
31
|
+
bare-assert@1.2.0
|
|
32
|
+
https://github.com/holepunchto/bare-assert
|
|
33
|
+
bare-channel@5.2.3
|
|
34
|
+
https://github.com/holepunchto/bare-channel
|
|
35
|
+
bare-env@3.0.0
|
|
36
|
+
https://github.com/holepunchto/bare-env
|
|
37
|
+
bare-events@2.4.2
|
|
38
|
+
https://github.com/holepunchto/bare-events
|
|
39
|
+
bare-events@2.8.2
|
|
40
|
+
https://github.com/holepunchto/bare-events
|
|
41
|
+
bare-ffmpeg@1.1.0
|
|
42
|
+
https://github.com/holepunchto/bare-ffmpeg
|
|
43
|
+
bare-fs@4.5.4
|
|
44
|
+
https://github.com/holepunchto/bare-fs
|
|
45
|
+
bare-hrtime@2.1.1
|
|
46
|
+
https://github.com/holepunchto/bare-hrtime
|
|
47
|
+
bare-inspect@3.1.4
|
|
48
|
+
https://github.com/holepunchto/bare-inspect
|
|
49
|
+
bare-module-resolve@1.12.1
|
|
50
|
+
https://github.com/holepunchto/bare-module-resolve
|
|
51
|
+
bare-os@3.6.2
|
|
52
|
+
https://github.com/holepunchto/bare-os
|
|
53
|
+
bare-path@3.0.0
|
|
54
|
+
https://github.com/holepunchto/bare-path
|
|
55
|
+
bare-pipe@4.1.3
|
|
56
|
+
https://github.com/holepunchto/bare-pipe
|
|
57
|
+
bare-process@4.2.2
|
|
58
|
+
https://github.com/holepunchto/bare-process
|
|
59
|
+
bare-semver@1.0.2
|
|
60
|
+
https://github.com/holepunchto/bare-semver
|
|
61
|
+
bare-signals@4.2.0
|
|
62
|
+
https://github.com/holepunchto/bare-signals
|
|
63
|
+
bare-stream@2.8.0
|
|
64
|
+
https://github.com/holepunchto/bare-stream
|
|
65
|
+
bare-structured-clone@1.5.2
|
|
66
|
+
https://github.com/holepunchto/bare-structured-clone
|
|
67
|
+
bare-tty@5.0.3
|
|
68
|
+
https://github.com/holepunchto/bare-tty
|
|
69
|
+
bare-type@1.1.0
|
|
70
|
+
https://github.com/holepunchto/bare-type
|
|
71
|
+
bare-url@2.3.2
|
|
72
|
+
https://github.com/holepunchto/bare-url
|
|
73
|
+
blind-relay@1.4.0
|
|
74
|
+
https://github.com/holepunchto/blind-relay
|
|
75
|
+
compact-encoding@2.18.0
|
|
76
|
+
https://github.com/compact-encoding/compact-encoding
|
|
77
|
+
device-file@2.3.1
|
|
78
|
+
https://github.com/holepunchto/device-file
|
|
79
|
+
events-universal@1.0.1
|
|
80
|
+
https://github.com/holepunchto/events-universal
|
|
81
|
+
fd-lock@2.1.1
|
|
82
|
+
https://github.com/holepunchto/fd-lock
|
|
83
|
+
fs-native-extensions@1.4.5
|
|
84
|
+
https://github.com/holepunchto/fs-native-extensions
|
|
85
|
+
hyperblobs@2.9.0
|
|
86
|
+
https://github.com/holepunchto/hyperblobs
|
|
87
|
+
hypercore-errors@1.5.0
|
|
88
|
+
https://github.com/holepunchto/hypercore-errors
|
|
89
|
+
hypercore-id-encoding@1.3.0
|
|
90
|
+
https://github.com/holepunchto/hypercore-id-encoding
|
|
91
|
+
hypercore-storage@2.4.1
|
|
92
|
+
hyperdrive@13.2.1
|
|
93
|
+
https://github.com/holepunchto/hyperdrive
|
|
94
|
+
hyperschema@1.19.1
|
|
95
|
+
https://github.com/holepunchto/hyperschema
|
|
96
|
+
index-encoder@3.4.0
|
|
97
|
+
https://github.com/holepunchto/index-encoder
|
|
98
|
+
mirror-drive@1.12.0
|
|
99
|
+
https://github.com/holepunchto/mirror-drive
|
|
100
|
+
noise-handshake@4.2.0
|
|
101
|
+
https://github.com/holepunchto/noise-handshake
|
|
102
|
+
quickbit-native@2.4.8
|
|
103
|
+
https://github.com/holepunchto/quickbit-native
|
|
104
|
+
rache@1.0.0
|
|
105
|
+
https://github.com/holepunchto/rache
|
|
106
|
+
refcounter@1.0.0
|
|
107
|
+
https://github.com/holepunchto/refcounter
|
|
108
|
+
require-addon@1.2.0
|
|
109
|
+
https://github.com/holepunchto/require-addon
|
|
110
|
+
resource-on-exit@1.0.0
|
|
111
|
+
https://github.com/holepunchto/bare-teardown
|
|
112
|
+
rocksdb-native@3.13.0
|
|
113
|
+
https://github.com/holepunchto/rocksdb-native
|
|
114
|
+
scope-lock@1.2.4
|
|
115
|
+
https://github.com/holepunchto/scope-lock
|
|
116
|
+
simdle-native@1.3.9
|
|
117
|
+
https://github.com/holepunchto/simdle-native
|
|
118
|
+
sub-encoder@2.1.3
|
|
119
|
+
https://github.com/holepunchto/sub-encoder
|
|
120
|
+
text-decoder@1.2.7
|
|
121
|
+
https://github.com/holepunchto/text-decoder
|
|
122
|
+
udx-native@1.19.2
|
|
123
|
+
https://github.com/holepunchto/udx-native
|
|
124
|
+
unslab@1.3.0
|
|
125
|
+
https://github.com/holepunchto/unslab
|
|
126
|
+
which-runtime@1.3.2
|
|
127
|
+
https://github.com/holepunchto/which-runtime
|
|
128
|
+
|
|
129
|
+
--- isc (ISC License) ---
|
|
130
|
+
|
|
131
|
+
bits-to-bytes@1.3.0
|
|
132
|
+
https://github.com/holepunchto/bits-to-bytes
|
|
133
|
+
compact-encoding-bitfield@1.0.0
|
|
134
|
+
https://github.com/compact-encoding/compact-encoding-bitfield
|
|
135
|
+
compact-encoding-net@1.2.0
|
|
136
|
+
https://github.com/compact-encoding/compact-encoding-net
|
|
137
|
+
nanoassert@2.0.0
|
|
138
|
+
https://github.com/emilbayes/nanoassert
|
|
139
|
+
noise-curve-ed@2.1.0
|
|
140
|
+
https://github.com/chm-diederichs/noise-curve-ed
|
|
141
|
+
quickbit-universal@2.2.0
|
|
142
|
+
https://github.com/holepunchto/quickbit-universal
|
|
143
|
+
simdle-universal@1.1.2
|
|
144
|
+
https://github.com/holepunchto/simdle-universal
|
|
145
|
+
|
|
146
|
+
--- mit (MIT License) ---
|
|
147
|
+
|
|
148
|
+
big-sparse-array@1.0.3
|
|
149
|
+
https://github.com/mafintosh/big-sparse-array
|
|
150
|
+
binary-stream-equals@1.0.0
|
|
151
|
+
https://github.com/mafintosh/binary-stream-equals
|
|
152
|
+
bogon@1.2.0
|
|
153
|
+
https://github.com/mafintosh/bogon
|
|
154
|
+
codecs@3.1.0
|
|
155
|
+
https://github.com/mafintosh/codecs
|
|
156
|
+
corestore@7.8.0
|
|
157
|
+
https://github.com/holepunchto/corestore
|
|
158
|
+
debounceify@1.1.0
|
|
159
|
+
https://github.com/mafintosh/debounceify
|
|
160
|
+
dht-rpc@6.26.1
|
|
161
|
+
https://github.com/mafintosh/dht-rpc
|
|
162
|
+
fast-fifo@1.3.2
|
|
163
|
+
https://github.com/mafintosh/fast-fifo
|
|
164
|
+
flat-tree@1.13.0
|
|
165
|
+
https://github.com/mafintosh/flat-tree
|
|
166
|
+
generate-object-property@2.0.0
|
|
167
|
+
https://github.com/mafintosh/generate-object-property
|
|
168
|
+
generate-string@1.0.1
|
|
169
|
+
https://github.com/mafintosh/generate-string
|
|
170
|
+
hyperbee@2.27.3
|
|
171
|
+
https://github.com/holepunchto/hyperbee
|
|
172
|
+
hypercore@11.24.0
|
|
173
|
+
https://github.com/holepunchto/hypercore
|
|
174
|
+
hypercore-crypto@3.6.1
|
|
175
|
+
https://github.com/mafintosh/hypercore-crypto
|
|
176
|
+
hyperdht@6.29.0
|
|
177
|
+
https://github.com/holepunchto/hyperdht
|
|
178
|
+
hyperswarm@4.16.0
|
|
179
|
+
https://github.com/holepunchto/hyperswarm
|
|
180
|
+
is-options@1.0.2
|
|
181
|
+
https://github.com/mafintosh/is-options
|
|
182
|
+
is-property@1.0.2
|
|
183
|
+
https://github.com/mikolalysenko/is-property
|
|
184
|
+
kademlia-routing-table@1.0.6
|
|
185
|
+
https://github.com/mafintosh/kademlia-routing-table
|
|
186
|
+
mutexify@1.4.0
|
|
187
|
+
https://github.com/mafintosh/mutexify
|
|
188
|
+
nat-sampler@1.0.1
|
|
189
|
+
https://github.com/mafintosh/nat-sampler
|
|
190
|
+
protocol-buffers-encodings@1.2.0
|
|
191
|
+
https://github.com/mafintosh/protocol-buffers-encodings
|
|
192
|
+
protomux@3.10.1
|
|
193
|
+
https://github.com/mafintosh/protomux
|
|
194
|
+
queue-tick@1.0.1
|
|
195
|
+
https://github.com/mafintosh/queue-tick
|
|
196
|
+
random-array-iterator@1.0.0
|
|
197
|
+
https://github.com/mafintosh/random-array-iterator
|
|
198
|
+
ready-resource@1.2.0
|
|
199
|
+
https://github.com/holepunchto/ready-resource
|
|
200
|
+
record-cache@1.2.0
|
|
201
|
+
https://github.com/mafintosh/record-cache
|
|
202
|
+
resolve-reject-promise@1.1.0
|
|
203
|
+
https://github.com/mafintosh/resolve-reject-promise
|
|
204
|
+
safety-catch@1.0.2
|
|
205
|
+
https://github.com/mafintosh/safety-catch
|
|
206
|
+
same-data@1.0.0
|
|
207
|
+
https://github.com/mafintosh/same-data
|
|
208
|
+
shuffled-priority-queue@2.1.0
|
|
209
|
+
https://github.com/mafintosh/shuffled-priority-queue
|
|
210
|
+
signal-promise@1.0.3
|
|
211
|
+
https://github.com/mafintosh/signal-promise
|
|
212
|
+
signed-varint@2.0.1
|
|
213
|
+
https://github.com/dominictarr/signed-varint
|
|
214
|
+
sodium-native@5.0.10
|
|
215
|
+
https://github.com/holepunchto/sodium-native
|
|
216
|
+
sodium-secretstream@1.2.0
|
|
217
|
+
https://github.com/mafintosh/sodium-secretstream
|
|
218
|
+
sodium-universal@5.0.1
|
|
219
|
+
https://github.com/holepunchto/sodium-universal
|
|
220
|
+
speedometer@1.1.0
|
|
221
|
+
https://github.com/mafintosh/speedometer
|
|
222
|
+
streamx@2.23.0
|
|
223
|
+
https://github.com/mafintosh/streamx
|
|
224
|
+
teex@1.0.1
|
|
225
|
+
https://github.com/mafintosh/teex
|
|
226
|
+
test-tmp@1.4.0
|
|
227
|
+
https://github.com/mafintosh/test-tmp
|
|
228
|
+
time-ordered-set@2.0.1
|
|
229
|
+
https://github.com/mafintosh/time-ordered-set
|
|
230
|
+
timeout-refresh@2.0.1
|
|
231
|
+
https://github.com/mafintosh/timeout-refresh
|
|
232
|
+
unix-path-resolve@1.0.2
|
|
233
|
+
https://github.com/mafintosh/unix-path-resolve
|
|
234
|
+
unordered-set@2.0.1
|
|
235
|
+
https://github.com/mafintosh/unordered-set
|
|
236
|
+
varint@5.0.0
|
|
237
|
+
https://github.com/chrisdickinson/varint
|
|
238
|
+
xache@1.2.1
|
|
239
|
+
https://github.com/mafintosh/xache
|
|
240
|
+
z32@1.1.0
|
|
241
|
+
https://github.com/mafintosh/z32
|
|
242
|
+
|
package/README.md
CHANGED
|
@@ -4,6 +4,7 @@ This decoder library leverages FFmpeg for efficient audio decoding. It simplifie
|
|
|
4
4
|
|
|
5
5
|
## Table of Contents
|
|
6
6
|
|
|
7
|
+
- [Supported Platforms](#supported-platforms)
|
|
7
8
|
- [Installation](#installation)
|
|
8
9
|
- [Usage](#usage)
|
|
9
10
|
- [1. Creating the Decoder Instance](#1-creating-the-decoder-instance)
|
|
@@ -19,6 +20,21 @@ This decoder library leverages FFmpeg for efficient audio decoding. It simplifie
|
|
|
19
20
|
- [Resources](#resources)
|
|
20
21
|
- [License](#license)
|
|
21
22
|
|
|
23
|
+
## Supported Platforms
|
|
24
|
+
|
|
25
|
+
| Platform | Architecture | Min Version | Status | GPU Support |
|
|
26
|
+
|----------|-------------|-------------|--------|-------------|
|
|
27
|
+
| macOS | arm64, x64 | 14.0+ | ✅ Tier 1 | N/A (CPU only) |
|
|
28
|
+
| iOS | arm64 | 17.0+ | ✅ Tier 1 | N/A (CPU only) |
|
|
29
|
+
| Linux | arm64, x64 | Ubuntu-22+ | ✅ Tier 1 | N/A (CPU only) |
|
|
30
|
+
| Android | arm64 | 12+ | ✅ Tier 1 | N/A (CPU only) |
|
|
31
|
+
| Windows | x64 | 10+ | ✅ Tier 1 | N/A (CPU only) |
|
|
32
|
+
|
|
33
|
+
**Dependencies:**
|
|
34
|
+
- qvac-lib-inference-addon-cpp: C++ addon framework
|
|
35
|
+
- FFmpeg: Audio decoding engine
|
|
36
|
+
- Bare Runtime (latest): JavaScript runtime
|
|
37
|
+
|
|
22
38
|
## Installation
|
|
23
39
|
|
|
24
40
|
### Prerequisites
|
|
@@ -239,7 +255,7 @@ Coverage reports are generated in the 'coverage/unit/' directory. Open the corre
|
|
|
239
255
|
|
|
240
256
|
## Resources
|
|
241
257
|
|
|
242
|
-
* GitHub Repo: [tetherto/qvac
|
|
258
|
+
* GitHub Repo: [tetherto/qvac](https://github.com/tetherto/qvac/tree/main/packages/qvac-lib-decoder-audio)
|
|
243
259
|
|
|
244
260
|
## License
|
|
245
261
|
|
package/index.d.ts
CHANGED
|
@@ -33,6 +33,10 @@ interface DecoderStatus {
|
|
|
33
33
|
paused: boolean
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
export interface DecoderOutput {
|
|
37
|
+
outputArray: ArrayBuffer
|
|
38
|
+
}
|
|
39
|
+
|
|
36
40
|
interface RuntimeStats {
|
|
37
41
|
decodeTimeMs: number
|
|
38
42
|
inputBytes: number
|
|
@@ -52,7 +56,7 @@ declare class FFmpegDecoder extends BaseInference {
|
|
|
52
56
|
|
|
53
57
|
load(): Promise<void>
|
|
54
58
|
unload(): Promise<void>
|
|
55
|
-
run(audioStream: AsyncIterable<Buffer>): Promise<QvacResponse
|
|
59
|
+
run(audioStream: AsyncIterable<Buffer>): Promise<QvacResponse<DecoderOutput>>
|
|
56
60
|
pause(): Promise<void>
|
|
57
61
|
unpause(): Promise<void>
|
|
58
62
|
stop(): Promise<void>
|
|
@@ -61,4 +65,4 @@ declare class FFmpegDecoder extends BaseInference {
|
|
|
61
65
|
runtimeStats(): RuntimeStats
|
|
62
66
|
}
|
|
63
67
|
|
|
64
|
-
export { FFmpegDecoder, RuntimeStats }
|
|
68
|
+
export { FFmpegDecoder, RuntimeStats, DecoderOutput }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qvac/decoder-audio",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Tether",
|
|
@@ -25,7 +25,9 @@
|
|
|
25
25
|
"constants.d.ts",
|
|
26
26
|
"utils",
|
|
27
27
|
"index.d.ts",
|
|
28
|
-
"test/mobile"
|
|
28
|
+
"test/mobile",
|
|
29
|
+
"LICENSE",
|
|
30
|
+
"NOTICE"
|
|
29
31
|
],
|
|
30
32
|
"exports": {
|
|
31
33
|
"./package": "./package.json",
|
|
@@ -55,6 +57,6 @@
|
|
|
55
57
|
"bare-process": "^4.2.2",
|
|
56
58
|
"process": "npm:bare-process@^4.2.2"
|
|
57
59
|
},
|
|
58
|
-
"bugs": "https://github.com/tetherto/qvac
|
|
60
|
+
"bugs": "https://github.com/tetherto/qvac/issues",
|
|
59
61
|
"types": "index.d.ts"
|
|
60
62
|
}
|