@vibesdotdev/integrations-whisper 0.0.0-stage → 1.0.0-rc.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.
- package/LICENSE +126 -0
- package/README.md +10 -2
- package/dist/ai/index.d.ts +5 -0
- package/dist/ai/index.d.ts.map +1 -0
- package/dist/ai/index.js +5 -0
- package/dist/ai/index.js.map +1 -0
- package/dist/ai/provider.plugin.d.ts +6 -0
- package/dist/ai/provider.plugin.d.ts.map +1 -0
- package/dist/ai/provider.plugin.js +111 -0
- package/dist/ai/provider.plugin.js.map +1 -0
- package/dist/ai/providers/cloud/speech/whisper/config/config.whisper.descriptor.d.ts +4194 -0
- package/dist/ai/providers/cloud/speech/whisper/config/config.whisper.descriptor.d.ts.map +1 -0
- package/dist/ai/providers/cloud/speech/whisper/config/config.whisper.descriptor.js +54 -0
- package/dist/ai/providers/cloud/speech/whisper/config/config.whisper.descriptor.js.map +1 -0
- package/dist/ai/providers/cloud/speech/whisper/config/schemas/index.d.ts +12 -0
- package/dist/ai/providers/cloud/speech/whisper/config/schemas/index.d.ts.map +1 -0
- package/dist/ai/providers/cloud/speech/whisper/config/schemas/index.js +10 -0
- package/dist/ai/providers/cloud/speech/whisper/config/schemas/index.js.map +1 -0
- package/dist/ai/providers/cloud/speech/whisper/index.d.ts +5 -0
- package/dist/ai/providers/cloud/speech/whisper/index.d.ts.map +1 -0
- package/dist/ai/providers/cloud/speech/whisper/index.js +4 -0
- package/dist/ai/providers/cloud/speech/whisper/index.js.map +1 -0
- package/dist/ai/providers/cloud/speech/whisper/provider.whisper.descriptor.d.ts +183 -0
- package/dist/ai/providers/cloud/speech/whisper/provider.whisper.descriptor.d.ts.map +1 -0
- package/dist/ai/providers/cloud/speech/whisper/provider.whisper.descriptor.js +47 -0
- package/dist/ai/providers/cloud/speech/whisper/provider.whisper.descriptor.js.map +1 -0
- package/dist/ai/providers/whisper/detection/system.d.ts +17 -0
- package/dist/ai/providers/whisper/detection/system.d.ts.map +1 -0
- package/dist/ai/providers/whisper/detection/system.js +35 -0
- package/dist/ai/providers/whisper/detection/system.js.map +1 -0
- package/dist/ai/providers/whisper/recommendations.d.ts +27 -0
- package/dist/ai/providers/whisper/recommendations.d.ts.map +1 -0
- package/dist/ai/providers/whisper/recommendations.js +68 -0
- package/dist/ai/providers/whisper/recommendations.js.map +1 -0
- package/dist/ai/providers/whisper/whisper.provider.impl.d.ts +18 -0
- package/dist/ai/providers/whisper/whisper.provider.impl.d.ts.map +1 -0
- package/dist/ai/providers/whisper/whisper.provider.impl.js +63 -0
- package/dist/ai/providers/whisper/whisper.provider.impl.js.map +1 -0
- package/dist/ai/specs/whisper-cli/whisper-cli.spec.descriptor.d.ts +35 -0
- package/dist/ai/specs/whisper-cli/whisper-cli.spec.descriptor.d.ts.map +1 -0
- package/dist/ai/specs/whisper-cli/whisper-cli.spec.descriptor.js +24 -0
- package/dist/ai/specs/whisper-cli/whisper-cli.spec.descriptor.js.map +1 -0
- package/dist/ai/specs/whisper-cli/whisper-cli.spec.impl.d.ts +31 -0
- package/dist/ai/specs/whisper-cli/whisper-cli.spec.impl.d.ts.map +1 -0
- package/dist/ai/specs/whisper-cli/whisper-cli.spec.impl.js +60 -0
- package/dist/ai/specs/whisper-cli/whisper-cli.spec.impl.js.map +1 -0
- package/dist/ai/specs/whisper-hf-cli/whisper-hf-cli.spec.descriptor.d.ts +25 -0
- package/dist/ai/specs/whisper-hf-cli/whisper-hf-cli.spec.descriptor.d.ts.map +1 -0
- package/dist/ai/specs/whisper-hf-cli/whisper-hf-cli.spec.descriptor.js +14 -0
- package/dist/ai/specs/whisper-hf-cli/whisper-hf-cli.spec.descriptor.js.map +1 -0
- package/dist/ai/specs/whisper-hf-cli/whisper-hf-cli.spec.impl.d.ts +31 -0
- package/dist/ai/specs/whisper-hf-cli/whisper-hf-cli.spec.impl.d.ts.map +1 -0
- package/dist/ai/specs/whisper-hf-cli/whisper-hf-cli.spec.impl.js +52 -0
- package/dist/ai/specs/whisper-hf-cli/whisper-hf-cli.spec.impl.js.map +1 -0
- package/dist/ai/specs/wire.d.ts +545 -0
- package/dist/ai/specs/wire.d.ts.map +1 -0
- package/dist/ai/specs/wire.js +80 -0
- package/dist/ai/specs/wire.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/schemas/wire.d.ts +30 -0
- package/dist/schemas/wire.d.ts.map +1 -0
- package/dist/schemas/wire.js +20 -0
- package/dist/schemas/wire.js.map +1 -0
- package/package.json +71 -4
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
export declare const AudioDataUriSchema: z.ZodPipe<z.ZodString, z.ZodTransform<Uint8Array<ArrayBuffer>, string>>;
|
|
3
|
+
export declare const HfOutputSchema: z.ZodObject<{
|
|
4
|
+
text: z.ZodString;
|
|
5
|
+
language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
|
+
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7
|
+
start: z.ZodNumber;
|
|
8
|
+
end: z.ZodNumber;
|
|
9
|
+
text: z.ZodString;
|
|
10
|
+
}, z.core.$strip>>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export declare const CppOutputSchema: z.ZodObject<{
|
|
13
|
+
transcription: z.ZodArray<z.ZodObject<{
|
|
14
|
+
text: z.ZodString;
|
|
15
|
+
timestamps: z.ZodOptional<z.ZodObject<{
|
|
16
|
+
from: z.ZodOptional<z.ZodString>;
|
|
17
|
+
to: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
offsets: z.ZodOptional<z.ZodObject<{
|
|
20
|
+
from: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
to: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
result: z.ZodOptional<z.ZodObject<{
|
|
25
|
+
language: z.ZodOptional<z.ZodString>;
|
|
26
|
+
}, z.core.$strip>>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export type HfOutput = z.infer<typeof HfOutputSchema>;
|
|
29
|
+
export type CppOutput = z.infer<typeof CppOutputSchema>;
|
|
30
|
+
//# sourceMappingURL=wire.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wire.d.ts","sourceRoot":"","sources":["../../src/schemas/wire.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,eAAO,MAAM,kBAAkB,yEAGiF,CAAC;AAGjH,eAAO,MAAM,cAAc;;;;;;;;iBAIzB,CAAC;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;iBAO1B,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AACtD,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
export const AudioDataUriSchema = z.string()
|
|
3
|
+
.regex(/^data:audio\/[^;,]+;base64,(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/)
|
|
4
|
+
.refine((value) => !value.endsWith(','), 'Audio bytes are required')
|
|
5
|
+
.transform((value) => Uint8Array.from(atob(value.slice(value.indexOf(',') + 1)), (char) => char.charCodeAt(0)));
|
|
6
|
+
const SegmentSchema = z.object({ start: z.number().finite(), end: z.number().finite(), text: z.string() });
|
|
7
|
+
export const HfOutputSchema = z.object({
|
|
8
|
+
text: z.string(),
|
|
9
|
+
language: z.string().nullish(),
|
|
10
|
+
segments: z.array(SegmentSchema).optional()
|
|
11
|
+
});
|
|
12
|
+
export const CppOutputSchema = z.object({
|
|
13
|
+
transcription: z.array(z.object({
|
|
14
|
+
text: z.string(),
|
|
15
|
+
timestamps: z.object({ from: z.string().optional(), to: z.string().optional() }).optional(),
|
|
16
|
+
offsets: z.object({ from: z.number().finite().optional(), to: z.number().finite().optional() }).optional()
|
|
17
|
+
})).min(1).refine((segments) => segments.some((segment) => segment.text.trim().length > 0)),
|
|
18
|
+
result: z.object({ language: z.string().optional() }).optional()
|
|
19
|
+
});
|
|
20
|
+
//# sourceMappingURL=wire.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wire.js","sourceRoot":"","sources":["../../src/schemas/wire.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,EAAE;KAC1C,KAAK,CAAC,4FAA4F,CAAC;KACnG,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,0BAA0B,CAAC;KACnE,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAEjH,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAC3G,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IAC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
|
|
2
2
|
"name": "@vibesdotdev/integrations-whisper",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
"version": "1.0.0-rc.1",
|
|
4
|
+
"dependencies": {
|
|
5
|
+
"@vibesdotdev/ai": "^1.0.0-rc.2",
|
|
6
|
+
"@vibesdotdev/docs-contracts": "^1.0.0-rc.4",
|
|
7
|
+
"@vibesdotdev/kernel": "^1.0.0-rc.5",
|
|
8
|
+
"zod": "^4.6.7"
|
|
9
|
+
},
|
|
10
|
+
"main": "./dist/index.js",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"bun": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"import": "./dist/index.js",
|
|
16
|
+
"default": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./ai": {
|
|
19
|
+
"bun": "./dist/ai/index.js",
|
|
20
|
+
"types": "./dist/ai/index.d.ts",
|
|
21
|
+
"import": "./dist/ai/index.js",
|
|
22
|
+
"default": "./dist/ai/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./ai/*": {
|
|
25
|
+
"bun": "./dist/ai/*.js",
|
|
26
|
+
"types": "./dist/ai/*.d.ts",
|
|
27
|
+
"import": "./dist/ai/*.js",
|
|
28
|
+
"default": "./dist/ai/*.js"
|
|
29
|
+
},
|
|
30
|
+
"./ai/plugin": {
|
|
31
|
+
"bun": "./dist/ai/provider.plugin.js",
|
|
32
|
+
"types": "./dist/ai/provider.plugin.d.ts",
|
|
33
|
+
"import": "./dist/ai/provider.plugin.js",
|
|
34
|
+
"default": "./dist/ai/provider.plugin.js"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"files": [
|
|
38
|
+
"dist",
|
|
39
|
+
"README.md",
|
|
40
|
+
"LICENSE"
|
|
41
|
+
],
|
|
42
|
+
"scripts": {
|
|
43
|
+
"lint": "node ../../node_modules/@vibesdotdev/internal-oxlint-toolchain/ratchet.mjs .",
|
|
44
|
+
"check": "bun --bun tsc -p tsconfig.json --noEmit",
|
|
45
|
+
"test": "bun test src",
|
|
46
|
+
"build": "tsc -p tsconfig.build.json"
|
|
47
|
+
},
|
|
48
|
+
"repository": {
|
|
49
|
+
"type": "git",
|
|
50
|
+
"url": "ssh://git@git.vibes.dev/vibesdotdev/integrations.git",
|
|
51
|
+
"directory": "integrations/whisper"
|
|
52
|
+
},
|
|
53
|
+
"publishConfig": {
|
|
54
|
+
"registry": "https://packages.vibes.dev",
|
|
55
|
+
"access": "public"
|
|
56
|
+
},
|
|
57
|
+
"vibes": {
|
|
58
|
+
"visibility": "public",
|
|
59
|
+
"registry": {
|
|
60
|
+
"repositoryId": "70be51c9-5ab7-4d7e-9f47-801cb17720d8",
|
|
61
|
+
"directory": "integrations/whisper"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"type": "module",
|
|
65
|
+
"types": "./dist/index.d.ts",
|
|
66
|
+
"license": "BUSL-1.1",
|
|
67
|
+
"gitHead": "494ddfcab4c073eef61acb182042223d7e4da2e5",
|
|
68
|
+
"_vibes_source": {
|
|
69
|
+
"repo": "ssh://git@git.vibes.dev/vibesdotdev/integrations.git",
|
|
70
|
+
"sha": "494ddfcab4c073eef61acb182042223d7e4da2e5",
|
|
71
|
+
"workspaceDigest": "sha256:e4583488e0865b3a6f19ed146be3514d4c9ec2f8705260dc497293e248b99db7"
|
|
72
|
+
}
|
|
73
|
+
}
|