@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 CHANGED
@@ -15,7 +15,9 @@ class GSTDecoder extends BaseInference {
15
15
  /**
16
16
  * Creates an instance of GSTDecoder.
17
17
  * @constructor
18
- * @param {Object} config - environment-specific inference setup configuration
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.1.1",
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/*.test.js",
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-fs": "^4.0.2"
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"
@@ -7,7 +7,7 @@
7
7
  ],
8
8
  "current_versions": [
9
9
  {
10
- "version": "0.1.1"
10
+ "version": "0.2"
11
11
  }
12
12
  ],
13
13
  "exported_symbols": [
@@ -7,7 +7,7 @@
7
7
  ],
8
8
  "current_versions": [
9
9
  {
10
- "version": "0.1.1"
10
+ "version": "0.2"
11
11
  }
12
12
  ],
13
13
  "exported_symbols": [
@@ -7,7 +7,7 @@
7
7
  ],
8
8
  "current_versions": [
9
9
  {
10
- "version": "0.1.1"
10
+ "version": "0.2"
11
11
  }
12
12
  ],
13
13
  "exported_symbols": [
@@ -7,7 +7,7 @@
7
7
  ],
8
8
  "current_versions": [
9
9
  {
10
- "version": "0.1.1"
10
+ "version": "0.2"
11
11
  }
12
12
  ],
13
13
  "exported_symbols": [
@@ -7,7 +7,7 @@
7
7
  ],
8
8
  "current_versions": [
9
9
  {
10
- "version": "0.1.1"
10
+ "version": "0.2"
11
11
  }
12
12
  ],
13
13
  "exported_symbols": [
package/constants.d.ts DELETED
@@ -1,9 +0,0 @@
1
- /**
2
- * Audio formats that require decoding before processing
3
- */
4
- export const FORMATS_NEEDING_DECODE: readonly string[]
5
-
6
- /**
7
- * All supported audio formats (including raw)
8
- */
9
- export const SUPPORTED_AUDIO_FORMATS: readonly string[]
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
- }