@qvac/decoder-audio 0.1.1 → 0.2.0
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/index.js +6 -1
- package/package.json +9 -8
- package/prebuilds/android-arm/qvac__decoder-audio.bare +0 -0
- package/prebuilds/android-arm64/qvac__decoder-audio.bare +0 -0
- package/prebuilds/android-ia32/qvac__decoder-audio.bare +0 -0
- package/prebuilds/android-x64/qvac__decoder-audio.bare +0 -0
- package/prebuilds/darwin-arm64/qvac__decoder-audio.bare +0 -0
- package/prebuilds/darwin-arm64/qvac__decoder-audio.bare.exports +1 -1
- package/prebuilds/darwin-x64/qvac__decoder-audio.bare +0 -0
- package/prebuilds/darwin-x64/qvac__decoder-audio.bare.exports +1 -1
- package/prebuilds/ios-arm64/qvac__decoder-audio.bare +0 -0
- package/prebuilds/ios-arm64/qvac__decoder-audio.bare.exports +1 -1
- package/prebuilds/ios-arm64-simulator/qvac__decoder-audio.bare +0 -0
- package/prebuilds/ios-arm64-simulator/qvac__decoder-audio.bare.exports +1 -1
- package/prebuilds/ios-x64-simulator/qvac__decoder-audio.bare +0 -0
- package/prebuilds/ios-x64-simulator/qvac__decoder-audio.bare.exports +1 -1
- package/prebuilds/linux-x64/qvac__decoder-audio.bare +0 -0
- package/prebuilds/win32-x64/qvac__decoder-audio.bare +0 -0
- package/constants.d.ts +0 -9
- package/constants.js +0 -31
package/index.js
CHANGED
|
@@ -15,7 +15,9 @@ class GSTDecoder extends BaseInference {
|
|
|
15
15
|
/**
|
|
16
16
|
* Creates an instance of GSTDecoder.
|
|
17
17
|
* @constructor
|
|
18
|
-
* @param {Object}
|
|
18
|
+
* @param {Object} options - Constructor options
|
|
19
|
+
* @param {Object} options.config - environment-specific inference setup configuration
|
|
20
|
+
* @param {*} [args] - Additional arguments passed to BaseInference
|
|
19
21
|
*/
|
|
20
22
|
|
|
21
23
|
constructor ({ config, ...args }) {
|
|
@@ -101,6 +103,9 @@ class GSTDecoder extends BaseInference {
|
|
|
101
103
|
}
|
|
102
104
|
}
|
|
103
105
|
|
|
106
|
+
const FFmpegDecoder = require('./lib/ffmpeg/ffmpeg-decoder')
|
|
107
|
+
|
|
104
108
|
module.exports = GSTDecoder
|
|
105
109
|
module.exports.FORMATS_NEEDING_DECODE = FORMATS_NEEDING_DECODE
|
|
106
110
|
module.exports.SUPPORTED_AUDIO_FORMATS = SUPPORTED_AUDIO_FORMATS
|
|
111
|
+
module.exports.FFmpegDecoder = FFmpegDecoder
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qvac/decoder-audio",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Tether",
|
|
@@ -16,24 +16,20 @@
|
|
|
16
16
|
"lint": "standard --ignore 'addon/**'",
|
|
17
17
|
"lint:fix": "standard --fix --ignore 'addon/**'",
|
|
18
18
|
"test:unit:generate": "brittle -r test/unit/all.js test/unit/*.test.js",
|
|
19
|
-
"test:integration:generate": "brittle -r test/integration/all.js test/integration
|
|
19
|
+
"test:integration:generate": "brittle -r test/integration/all.js test/integration/ffmpeg-decoder.test.js",
|
|
20
20
|
"test:integration": "npm run test:integration:generate && bare test/integration/all.js"
|
|
21
21
|
},
|
|
22
22
|
"files": [
|
|
23
23
|
"binding.js",
|
|
24
24
|
"index.js",
|
|
25
25
|
"gstreamer.js",
|
|
26
|
-
"constants.js",
|
|
27
|
-
"constants.d.ts",
|
|
28
26
|
"prebuilds",
|
|
29
27
|
"utils",
|
|
30
28
|
"index.d.ts"
|
|
31
29
|
],
|
|
32
30
|
"exports": {
|
|
33
31
|
"./package": "./package.json",
|
|
34
|
-
".": "./index.js"
|
|
35
|
-
"./constants": "./constants.js",
|
|
36
|
-
"./constants.js": "./constants.js"
|
|
32
|
+
".": "./index.js"
|
|
37
33
|
},
|
|
38
34
|
"devDependencies": {
|
|
39
35
|
"@types/node": "^22.14.1",
|
|
@@ -48,9 +44,14 @@
|
|
|
48
44
|
"dependencies": {
|
|
49
45
|
"@qvac/infer-base": "^0.1.0",
|
|
50
46
|
"@qvac/error": "^0.1.0",
|
|
47
|
+
"@qvac/logging": "^0.1.0",
|
|
51
48
|
"@qvac/response": "^0.1.0",
|
|
52
49
|
"bare-assert": "^1.0.2",
|
|
53
|
-
"bare-
|
|
50
|
+
"bare-channel": "^5.2.0",
|
|
51
|
+
"bare-ffmpeg": "^1.0.0-29",
|
|
52
|
+
"bare-fs": "^4.0.2",
|
|
53
|
+
"bare-path": "^3.0.0",
|
|
54
|
+
"bare-worker": "^3.2.0"
|
|
54
55
|
},
|
|
55
56
|
"bugs": "https://github.com/tetherto/qvac-lib-decoder-audio/issues",
|
|
56
57
|
"types": "index.d.ts"
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/constants.d.ts
DELETED
package/constants.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Audio formats that require decoding before processing
|
|
5
|
-
*/
|
|
6
|
-
const FORMATS_NEEDING_DECODE = [
|
|
7
|
-
'.mp3',
|
|
8
|
-
'.m4a',
|
|
9
|
-
'.ogg',
|
|
10
|
-
'.flac',
|
|
11
|
-
'.aac',
|
|
12
|
-
'.wav'
|
|
13
|
-
]
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* All supported audio formats (including raw)
|
|
17
|
-
*/
|
|
18
|
-
const SUPPORTED_AUDIO_FORMATS = [
|
|
19
|
-
'.mp3',
|
|
20
|
-
'.m4a',
|
|
21
|
-
'.ogg',
|
|
22
|
-
'.wav',
|
|
23
|
-
'.flac',
|
|
24
|
-
'.aac',
|
|
25
|
-
'.raw'
|
|
26
|
-
]
|
|
27
|
-
|
|
28
|
-
module.exports = {
|
|
29
|
-
FORMATS_NEEDING_DECODE,
|
|
30
|
-
SUPPORTED_AUDIO_FORMATS
|
|
31
|
-
}
|