@qvac/sdk 0.4.0 → 0.4.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.
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare const SUPPORTED_AUDIO_FORMATS: readonly [".mp3", ".m4a", ".ogg", ".wav", ".flac", ".aac", ".raw"];
|
|
1
|
+
export { FORMATS_NEEDING_DECODE, SUPPORTED_AUDIO_FORMATS, } from "@qvac/decoder-audio/constants";
|
|
3
2
|
//# sourceMappingURL=audio.d.ts.map
|
package/dist/constants/audio.js
CHANGED
|
@@ -1,17 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
".mp3",
|
|
3
|
-
".m4a",
|
|
4
|
-
".ogg",
|
|
5
|
-
".flac",
|
|
6
|
-
".aac",
|
|
7
|
-
".wav",
|
|
8
|
-
];
|
|
9
|
-
export const SUPPORTED_AUDIO_FORMATS = [
|
|
10
|
-
".mp3",
|
|
11
|
-
".m4a",
|
|
12
|
-
".ogg",
|
|
13
|
-
".wav",
|
|
14
|
-
".flac",
|
|
15
|
-
".aac",
|
|
16
|
-
".raw",
|
|
17
|
-
];
|
|
1
|
+
export { FORMATS_NEEDING_DECODE, SUPPORTED_AUDIO_FORMATS, } from "@qvac/decoder-audio/constants.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import fs from "bare-fs";
|
|
2
2
|
import path from "bare-path";
|
|
3
3
|
import GSTDecoder from "@qvac/decoder-audio";
|
|
4
|
+
import { FORMATS_NEEDING_DECODE } from "@qvac/decoder-audio/constants.js";
|
|
4
5
|
import { Readable } from "bare-stream";
|
|
5
|
-
import { FORMATS_NEEDING_DECODE } from "../../../constants/audio.js";
|
|
6
6
|
export function needsDecoding(filePath) {
|
|
7
7
|
const ext = path.extname(filePath).toLowerCase();
|
|
8
8
|
return FORMATS_NEEDING_DECODE.includes(ext);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qvac/sdk",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"!**/package-lock.json",
|
|
30
30
|
"!**/yarn.lock",
|
|
31
31
|
"!**/pnpm-lock.yaml",
|
|
32
|
-
"!**/bun.
|
|
32
|
+
"!**/bun.lock"
|
|
33
33
|
],
|
|
34
34
|
"scripts": {
|
|
35
35
|
"lint": "eslint . --max-warnings=0 && bun run typecheck",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"update-models": "node ./scripts/update-models.js"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@qvac/decoder-audio": "^0.1.
|
|
56
|
+
"@qvac/decoder-audio": "^0.1.1",
|
|
57
57
|
"@qvac/dl-filesystem": "^0.1.1",
|
|
58
58
|
"@qvac/embed-llamacpp": "^0.6.2",
|
|
59
59
|
"@qvac/error": "^0.1.0",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@qvac/logging": "^0.1.0",
|
|
63
63
|
"@qvac/rag": "^0.2.1",
|
|
64
64
|
"@qvac/transcription-whispercpp": "0.2.0",
|
|
65
|
-
"@qvac/translation-nmtcpp": "0.1.
|
|
65
|
+
"@qvac/translation-nmtcpp": "0.1.8",
|
|
66
66
|
"@qvac/tts-onnx": "^0.2.5",
|
|
67
67
|
"fast-safe-stringify": "2.1.1",
|
|
68
68
|
"zod": "^4.0.17"
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"bare-fs": "^4.1.6",
|
|
102
102
|
"bare-https": "^2.1.1",
|
|
103
103
|
"bare-http1": "^4.1.6",
|
|
104
|
-
"bare-link": "^1.5.
|
|
104
|
+
"bare-link": "^1.5.9",
|
|
105
105
|
"bare-net": "^2.0.1",
|
|
106
106
|
"bare-os": "^3.6.1",
|
|
107
107
|
"bare-path": "^3.0.0",
|