@vibesdotdev/integrations-bark 0.0.0-stage → 1.0.0-rc.3
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 +22 -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/metadata.plugin.d.ts +6 -0
- package/dist/ai/metadata.plugin.d.ts.map +1 -0
- package/dist/ai/metadata.plugin.js +70 -0
- package/dist/ai/metadata.plugin.js.map +1 -0
- package/dist/ai/provider.consumer.plugin.d.ts +5 -0
- package/dist/ai/provider.consumer.plugin.d.ts.map +1 -0
- package/dist/ai/provider.consumer.plugin.js +33 -0
- package/dist/ai/provider.consumer.plugin.js.map +1 -0
- package/dist/ai/provider.plugin.d.ts +2 -0
- package/dist/ai/provider.plugin.d.ts.map +1 -0
- package/dist/ai/provider.plugin.js +2 -0
- package/dist/ai/provider.plugin.js.map +1 -0
- package/dist/ai/providers/bark/bark.provider.impl.d.ts +24 -0
- package/dist/ai/providers/bark/bark.provider.impl.d.ts.map +1 -0
- package/dist/ai/providers/bark/bark.provider.impl.js +89 -0
- package/dist/ai/providers/bark/bark.provider.impl.js.map +1 -0
- package/dist/ai/providers/bark/detection/index.d.ts +2 -0
- package/dist/ai/providers/bark/detection/index.d.ts.map +1 -0
- package/dist/ai/providers/bark/detection/index.js +2 -0
- package/dist/ai/providers/bark/detection/index.js.map +1 -0
- package/dist/ai/providers/bark/detection/system.d.ts +13 -0
- package/dist/ai/providers/bark/detection/system.d.ts.map +1 -0
- package/dist/ai/providers/bark/detection/system.js +38 -0
- package/dist/ai/providers/bark/detection/system.js.map +1 -0
- package/dist/ai/providers/bark/docs/ai.providers.bark.docs.descriptor.d.ts +4 -0
- package/dist/ai/providers/bark/docs/ai.providers.bark.docs.descriptor.d.ts.map +1 -0
- package/dist/ai/providers/bark/docs/ai.providers.bark.docs.descriptor.js +40 -0
- package/dist/ai/providers/bark/docs/ai.providers.bark.docs.descriptor.js.map +1 -0
- package/dist/ai/providers/bark/index.d.ts +4 -0
- package/dist/ai/providers/bark/index.d.ts.map +1 -0
- package/dist/ai/providers/bark/index.js +4 -0
- package/dist/ai/providers/bark/index.js.map +1 -0
- package/dist/ai/providers/bark/recommendations.d.ts +23 -0
- package/dist/ai/providers/bark/recommendations.d.ts.map +1 -0
- package/dist/ai/providers/bark/recommendations.js +71 -0
- package/dist/ai/providers/bark/recommendations.js.map +1 -0
- package/dist/ai/providers/local/speech/bark/config/config.bark.descriptor.d.ts +4206 -0
- package/dist/ai/providers/local/speech/bark/config/config.bark.descriptor.d.ts.map +1 -0
- package/dist/ai/providers/local/speech/bark/config/config.bark.descriptor.js +63 -0
- package/dist/ai/providers/local/speech/bark/config/config.bark.descriptor.js.map +1 -0
- package/dist/ai/providers/local/speech/bark/config/schemas/index.d.ts +11 -0
- package/dist/ai/providers/local/speech/bark/config/schemas/index.d.ts.map +1 -0
- package/dist/ai/providers/local/speech/bark/config/schemas/index.js +9 -0
- package/dist/ai/providers/local/speech/bark/config/schemas/index.js.map +1 -0
- package/dist/ai/providers/local/speech/bark/index.d.ts +5 -0
- package/dist/ai/providers/local/speech/bark/index.d.ts.map +1 -0
- package/dist/ai/providers/local/speech/bark/index.js +4 -0
- package/dist/ai/providers/local/speech/bark/index.js.map +1 -0
- package/dist/ai/providers/local/speech/bark/provider.bark.descriptor.d.ts +183 -0
- package/dist/ai/providers/local/speech/bark/provider.bark.descriptor.d.ts.map +1 -0
- package/dist/ai/providers/local/speech/bark/provider.bark.descriptor.js +48 -0
- package/dist/ai/providers/local/speech/bark/provider.bark.descriptor.js.map +1 -0
- package/dist/ai/specs/bark-cli/bark-cli.spec.descriptor.d.ts +36 -0
- package/dist/ai/specs/bark-cli/bark-cli.spec.descriptor.d.ts.map +1 -0
- package/dist/ai/specs/bark-cli/bark-cli.spec.descriptor.js +25 -0
- package/dist/ai/specs/bark-cli/bark-cli.spec.descriptor.js.map +1 -0
- package/dist/ai/specs/bark-cli/bark-cli.spec.impl.d.ts +25 -0
- package/dist/ai/specs/bark-cli/bark-cli.spec.impl.d.ts.map +1 -0
- package/dist/ai/specs/bark-cli/bark-cli.spec.impl.js +138 -0
- package/dist/ai/specs/bark-cli/bark-cli.spec.impl.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/schemas/speech.d.ts +52 -0
- package/dist/schemas/speech.d.ts.map +1 -0
- package/dist/schemas/speech.js +27 -0
- package/dist/schemas/speech.js.map +1 -0
- package/package.json +100 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.bark.descriptor.d.ts","sourceRoot":"","sources":["../../../../../../../src/ai/providers/local/speech/bark/config/config.bark.descriptor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA8D83pD,CAAC;;;;yBAA6V,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAAo8E,CAAC;;;;6BAA6W,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAAilF,CAAC;;;;iCAA6X,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAA2uF,CAAC;;;;6BAA6W,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAAgkF,CAAC;;;;iCAA6X,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAA8vF,CAAC;;;;yBAA6V,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAAo7E,CAAC;;;;6BAA6W,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAAilF,CAAC;;;;iCAA6X,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAA4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ai/providers-runtime/core';
|
|
2
|
+
import barkProviderDescriptor from "../provider.bark.descriptor.js";
|
|
3
|
+
import { barkConnectionSchema } from "./schemas/index.js";
|
|
4
|
+
export default createProviderConfigDescriptor({
|
|
5
|
+
provider: barkProviderDescriptor,
|
|
6
|
+
schema: barkConnectionSchema,
|
|
7
|
+
optionLabel: 'Bark',
|
|
8
|
+
optionDescription: 'Local transformer-based text-to-speech',
|
|
9
|
+
optionIcon: '🐶',
|
|
10
|
+
fields: {
|
|
11
|
+
'configuration.pythonExecutable': {
|
|
12
|
+
ui: {
|
|
13
|
+
label: 'Python executable',
|
|
14
|
+
description: 'Python used to run Bark',
|
|
15
|
+
placeholder: 'python3',
|
|
16
|
+
component: 'input',
|
|
17
|
+
group: 'connection',
|
|
18
|
+
order: 10
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
'configuration.speaker': {
|
|
22
|
+
ui: {
|
|
23
|
+
label: 'Speaker',
|
|
24
|
+
description: 'Bark speaker preset',
|
|
25
|
+
placeholder: 'v2/en_speaker_6',
|
|
26
|
+
component: 'input',
|
|
27
|
+
group: 'connection',
|
|
28
|
+
order: 11
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
'configuration.textTemp': {
|
|
32
|
+
ui: {
|
|
33
|
+
label: 'Text temperature',
|
|
34
|
+
description: 'Sampling temperature for text generation',
|
|
35
|
+
placeholder: '0.7',
|
|
36
|
+
component: 'number',
|
|
37
|
+
group: 'connection',
|
|
38
|
+
order: 12
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
'configuration.waveformTemp': {
|
|
42
|
+
ui: {
|
|
43
|
+
label: 'Waveform temperature',
|
|
44
|
+
description: 'Sampling temperature for waveform generation',
|
|
45
|
+
placeholder: '0.7',
|
|
46
|
+
component: 'number',
|
|
47
|
+
group: 'connection',
|
|
48
|
+
order: 13
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
'configuration.modelsDir': {
|
|
52
|
+
ui: {
|
|
53
|
+
label: 'Models directory',
|
|
54
|
+
description: 'Directory where Bark models are cached',
|
|
55
|
+
placeholder: '~/.cache/bark',
|
|
56
|
+
component: 'input',
|
|
57
|
+
group: 'connection',
|
|
58
|
+
order: 14
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
//# sourceMappingURL=config.bark.descriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.bark.descriptor.js","sourceRoot":"","sources":["../../../../../../../src/ai/providers/local/speech/bark/config/config.bark.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,wCAAwC,CAAC;AACxF,OAAO,sBAAsB,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,eAAe,8BAA8B,CAAC;IAC7C,QAAQ,EAAE,sBAAsB;IAChC,MAAM,EAAE,oBAAoB;IAC5B,WAAW,EAAE,MAAM;IACnB,iBAAiB,EAAE,wCAAwC;IAC3D,UAAU,EAAE,IAAI;IAChB,MAAM,EAAE;QACP,gCAAgC,EAAE;YACjC,EAAE,EAAE;gBACH,KAAK,EAAE,mBAAmB;gBAC1B,WAAW,EAAE,yBAAyB;gBACtC,WAAW,EAAE,SAAS;gBACtB,SAAS,EAAE,OAAO;gBAClB,KAAK,EAAE,YAAY;gBACnB,KAAK,EAAE,EAAE;aACT;SACD;QACD,uBAAuB,EAAE;YACxB,EAAE,EAAE;gBACH,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,qBAAqB;gBAClC,WAAW,EAAE,iBAAiB;gBAC9B,SAAS,EAAE,OAAO;gBAClB,KAAK,EAAE,YAAY;gBACnB,KAAK,EAAE,EAAE;aACT;SACD;QACD,wBAAwB,EAAE;YACzB,EAAE,EAAE;gBACH,KAAK,EAAE,kBAAkB;gBACzB,WAAW,EAAE,0CAA0C;gBACvD,WAAW,EAAE,KAAK;gBAClB,SAAS,EAAE,QAAQ;gBACnB,KAAK,EAAE,YAAY;gBACnB,KAAK,EAAE,EAAE;aACT;SACD;QACD,4BAA4B,EAAE;YAC7B,EAAE,EAAE;gBACH,KAAK,EAAE,sBAAsB;gBAC7B,WAAW,EAAE,8CAA8C;gBAC3D,WAAW,EAAE,KAAK;gBAClB,SAAS,EAAE,QAAQ;gBACnB,KAAK,EAAE,YAAY;gBACnB,KAAK,EAAE,EAAE;aACT;SACD;QACD,yBAAyB,EAAE;YAC1B,EAAE,EAAE;gBACH,KAAK,EAAE,kBAAkB;gBACzB,WAAW,EAAE,wCAAwC;gBACrD,WAAW,EAAE,eAAe;gBAC5B,SAAS,EAAE,OAAO;gBAClB,KAAK,EAAE,YAAY;gBACnB,KAAK,EAAE,EAAE;aACT;SACD;KACD;CACD,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
export declare const barkConnectionSchema: z.ZodObject<{
|
|
3
|
+
pythonExecutable: z.ZodDefault<z.ZodString>;
|
|
4
|
+
speaker: z.ZodDefault<z.ZodString>;
|
|
5
|
+
textTemp: z.ZodDefault<z.ZodNumber>;
|
|
6
|
+
waveformTemp: z.ZodDefault<z.ZodNumber>;
|
|
7
|
+
modelsDir: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export type BarkConnection = z.infer<typeof barkConnectionSchema>;
|
|
10
|
+
export type BarkConnectionInput = z.input<typeof barkConnectionSchema>;
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ai/providers/local/speech/bark/config/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,eAAO,MAAM,oBAAoB;;;;;;iBAM/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
export const barkConnectionSchema = z.object({
|
|
3
|
+
pythonExecutable: z.string().trim().min(1).default('python3'),
|
|
4
|
+
speaker: z.string().min(1).default('v2/en_speaker_6'),
|
|
5
|
+
textTemp: z.number().min(0).max(1).default(0.7),
|
|
6
|
+
waveformTemp: z.number().min(0).max(1).default(0.7),
|
|
7
|
+
modelsDir: z.string().optional()
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/ai/providers/local/speech/bark/config/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;IAC7D,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC;IACrD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC;IAC/C,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC;IACnD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as barkProviderDescriptor } from './provider.bark.descriptor.ts';
|
|
2
|
+
export { default as barkProviderConfigDescriptor } from './config/config.bark.descriptor.ts';
|
|
3
|
+
export { barkConnectionSchema } from './config/schemas/index.ts';
|
|
4
|
+
export type { BarkConnection } from './config/schemas/index.ts';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ai/providers/local/speech/bark/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAClF,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAC7F,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,YAAY,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default as barkProviderDescriptor } from "./provider.bark.descriptor.js";
|
|
2
|
+
export { default as barkProviderConfigDescriptor } from "./config/config.bark.descriptor.js";
|
|
3
|
+
export { barkConnectionSchema } from "./config/schemas/index.js";
|
|
4
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/ai/providers/local/speech/bark/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAClF,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAC7F,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
id: string;
|
|
3
|
+
kind: "ai/provider";
|
|
4
|
+
name: string;
|
|
5
|
+
version: string;
|
|
6
|
+
connectionSchema: unknown;
|
|
7
|
+
priority: number;
|
|
8
|
+
enabled: boolean;
|
|
9
|
+
description?: string | undefined;
|
|
10
|
+
defaults?: Record<string, unknown> | undefined;
|
|
11
|
+
baseUrlTemplate?: string | undefined;
|
|
12
|
+
capabilities?: {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
modalities?: ("vision" | "image" | "text" | "audio" | "video" | "embedding" | "transcription" | "evaluation")[] | undefined;
|
|
15
|
+
authType?: "none" | "api_key" | "bearer" | "oauth" | "basic" | undefined;
|
|
16
|
+
authMethods?: {
|
|
17
|
+
[x: string]: unknown;
|
|
18
|
+
id: string;
|
|
19
|
+
type: "none" | "api_key" | "bearer" | "oauth" | "basic";
|
|
20
|
+
label: string;
|
|
21
|
+
credentialFields: string[];
|
|
22
|
+
enabled: boolean;
|
|
23
|
+
description?: string | undefined;
|
|
24
|
+
tokenSource?: "none" | "runtime" | "credential" | "oauth-browser" | "oauth-device-code" | undefined;
|
|
25
|
+
recommended?: boolean | undefined;
|
|
26
|
+
docsUrl?: string | undefined;
|
|
27
|
+
scopes?: string[] | undefined;
|
|
28
|
+
execution?: {
|
|
29
|
+
credentialCustodies: ("consumer" | "server")[];
|
|
30
|
+
billingOwners: ("user" | "organization" | "platform")[];
|
|
31
|
+
} | undefined;
|
|
32
|
+
}[] | undefined;
|
|
33
|
+
streaming?: boolean | undefined;
|
|
34
|
+
tools?: boolean | undefined;
|
|
35
|
+
vision?: boolean | undefined;
|
|
36
|
+
jsonMode?: boolean | undefined;
|
|
37
|
+
functionCalling?: boolean | undefined;
|
|
38
|
+
contextWindow?: number | undefined;
|
|
39
|
+
maxOutputTokens?: number | undefined;
|
|
40
|
+
} | undefined;
|
|
41
|
+
category?: "cloud" | "local" | "hybrid" | undefined;
|
|
42
|
+
hardware?: ("cloud" | "consumer")[] | undefined;
|
|
43
|
+
icon?: string | undefined;
|
|
44
|
+
branding?: {
|
|
45
|
+
[x: string]: unknown;
|
|
46
|
+
logo?: {
|
|
47
|
+
[x: string]: unknown;
|
|
48
|
+
kind: "wordmark" | "mark" | "lockup" | "badge";
|
|
49
|
+
format: "svg";
|
|
50
|
+
path: string;
|
|
51
|
+
sourceUrl: string;
|
|
52
|
+
sourcePageUrl: string;
|
|
53
|
+
source: "official-brand-page" | "official-brand-kit" | "official-homepage-inline" | "official-cdn" | "official-github";
|
|
54
|
+
theme: "any" | "light" | "dark";
|
|
55
|
+
usageNotes?: string | undefined;
|
|
56
|
+
licenseNotes?: string | undefined;
|
|
57
|
+
} | undefined;
|
|
58
|
+
darkLogo?: {
|
|
59
|
+
[x: string]: unknown;
|
|
60
|
+
kind: "wordmark" | "mark" | "lockup" | "badge";
|
|
61
|
+
format: "svg";
|
|
62
|
+
path: string;
|
|
63
|
+
sourceUrl: string;
|
|
64
|
+
sourcePageUrl: string;
|
|
65
|
+
source: "official-brand-page" | "official-brand-kit" | "official-homepage-inline" | "official-cdn" | "official-github";
|
|
66
|
+
theme: "any" | "light" | "dark";
|
|
67
|
+
usageNotes?: string | undefined;
|
|
68
|
+
licenseNotes?: string | undefined;
|
|
69
|
+
} | undefined;
|
|
70
|
+
wordmark?: {
|
|
71
|
+
[x: string]: unknown;
|
|
72
|
+
kind: "wordmark" | "mark" | "lockup" | "badge";
|
|
73
|
+
format: "svg";
|
|
74
|
+
path: string;
|
|
75
|
+
sourceUrl: string;
|
|
76
|
+
sourcePageUrl: string;
|
|
77
|
+
source: "official-brand-page" | "official-brand-kit" | "official-homepage-inline" | "official-cdn" | "official-github";
|
|
78
|
+
theme: "any" | "light" | "dark";
|
|
79
|
+
usageNotes?: string | undefined;
|
|
80
|
+
licenseNotes?: string | undefined;
|
|
81
|
+
} | undefined;
|
|
82
|
+
darkWordmark?: {
|
|
83
|
+
[x: string]: unknown;
|
|
84
|
+
kind: "wordmark" | "mark" | "lockup" | "badge";
|
|
85
|
+
format: "svg";
|
|
86
|
+
path: string;
|
|
87
|
+
sourceUrl: string;
|
|
88
|
+
sourcePageUrl: string;
|
|
89
|
+
source: "official-brand-page" | "official-brand-kit" | "official-homepage-inline" | "official-cdn" | "official-github";
|
|
90
|
+
theme: "any" | "light" | "dark";
|
|
91
|
+
usageNotes?: string | undefined;
|
|
92
|
+
licenseNotes?: string | undefined;
|
|
93
|
+
} | undefined;
|
|
94
|
+
sourcePageUrl?: string | undefined;
|
|
95
|
+
usageNotes?: string | undefined;
|
|
96
|
+
} | undefined;
|
|
97
|
+
docsUrl?: string | undefined;
|
|
98
|
+
tags?: string[] | undefined;
|
|
99
|
+
variants?: {
|
|
100
|
+
id: string;
|
|
101
|
+
label: string;
|
|
102
|
+
transport: string;
|
|
103
|
+
specId: string;
|
|
104
|
+
endpoint: string;
|
|
105
|
+
auth: {
|
|
106
|
+
kind: "none";
|
|
107
|
+
} | {
|
|
108
|
+
kind: "bearer";
|
|
109
|
+
token: string | {
|
|
110
|
+
source: "secret";
|
|
111
|
+
key: string;
|
|
112
|
+
store?: string | undefined;
|
|
113
|
+
};
|
|
114
|
+
scheme?: string | undefined;
|
|
115
|
+
} | {
|
|
116
|
+
kind: "api-key-header";
|
|
117
|
+
header: string;
|
|
118
|
+
value: string | {
|
|
119
|
+
source: "secret";
|
|
120
|
+
key: string;
|
|
121
|
+
store?: string | undefined;
|
|
122
|
+
};
|
|
123
|
+
} | {
|
|
124
|
+
kind: "basic";
|
|
125
|
+
username: string;
|
|
126
|
+
password: string | {
|
|
127
|
+
source: "secret";
|
|
128
|
+
key: string;
|
|
129
|
+
store?: string | undefined;
|
|
130
|
+
};
|
|
131
|
+
} | {
|
|
132
|
+
kind: "cf-binding";
|
|
133
|
+
bindingName: string;
|
|
134
|
+
};
|
|
135
|
+
modelIdRule: {
|
|
136
|
+
kind: "strip-prefix";
|
|
137
|
+
} | {
|
|
138
|
+
kind: "passthrough";
|
|
139
|
+
} | {
|
|
140
|
+
kind: "explicit";
|
|
141
|
+
modelMap: Record<string, string>;
|
|
142
|
+
};
|
|
143
|
+
priority: number;
|
|
144
|
+
enabled: boolean;
|
|
145
|
+
description?: string | undefined;
|
|
146
|
+
modalities?: ("image" | "text" | "audio" | "video" | "embedding" | "transcription" | "evaluation" | "speech" | "ocr")[] | undefined;
|
|
147
|
+
inheritEnv?: string[] | undefined;
|
|
148
|
+
requiredConfiguration?: string[] | undefined;
|
|
149
|
+
authMethodId?: string | undefined;
|
|
150
|
+
execution?: {
|
|
151
|
+
generationLocations: ("consumer" | "server")[];
|
|
152
|
+
headless: boolean;
|
|
153
|
+
} | undefined;
|
|
154
|
+
tags?: string[] | undefined;
|
|
155
|
+
models?: {
|
|
156
|
+
tags?: string[] | undefined;
|
|
157
|
+
} | undefined;
|
|
158
|
+
additionalHeaders?: Record<string, string> | undefined;
|
|
159
|
+
capabilities?: {
|
|
160
|
+
supportsToolChoiceRequired?: boolean | undefined;
|
|
161
|
+
} | undefined;
|
|
162
|
+
}[] | undefined;
|
|
163
|
+
localDiscovery?: {
|
|
164
|
+
defaultRootDir: string;
|
|
165
|
+
modelGlob: string;
|
|
166
|
+
descriptorFilename?: string | undefined;
|
|
167
|
+
} | undefined;
|
|
168
|
+
loadedModels?: {
|
|
169
|
+
path: string;
|
|
170
|
+
listPath: string;
|
|
171
|
+
idField: string;
|
|
172
|
+
loadedField: string;
|
|
173
|
+
loginPath?: string | undefined;
|
|
174
|
+
loginKeyField?: string | undefined;
|
|
175
|
+
} | undefined;
|
|
176
|
+
cloudStorageDiscovery?: {
|
|
177
|
+
requiredCapabilities: string[];
|
|
178
|
+
modelGlob?: string | undefined;
|
|
179
|
+
descriptorFilename?: string | undefined;
|
|
180
|
+
} | undefined;
|
|
181
|
+
};
|
|
182
|
+
export default _default;
|
|
183
|
+
//# sourceMappingURL=provider.bark.descriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.bark.descriptor.d.ts","sourceRoot":"","sources":["../../../../../../src/ai/providers/local/speech/bark/provider.bark.descriptor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,wBAuCG"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bark provider type descriptor.
|
|
3
|
+
*
|
|
4
|
+
* This metadata describes the local Bark text-to-speech provider family.
|
|
5
|
+
* It does not construct a client or read credentials.
|
|
6
|
+
*/
|
|
7
|
+
import { createAIProviderTypeDescriptor } from '@vibesdotdev/ai/providers-runtime/core';
|
|
8
|
+
import { barkConnectionSchema } from "./config/schemas/index.js";
|
|
9
|
+
export default createAIProviderTypeDescriptor({
|
|
10
|
+
id: 'bark',
|
|
11
|
+
version: '0.1.0-rc.0',
|
|
12
|
+
name: 'Bark',
|
|
13
|
+
description: 'Local transformer-based text-to-speech with realistic voices (Suno Bark). Generate speech ' +
|
|
14
|
+
'on your own hardware with no hosted API.',
|
|
15
|
+
connectionSchema: barkConnectionSchema,
|
|
16
|
+
defaults: barkConnectionSchema.parse({}),
|
|
17
|
+
capabilities: {
|
|
18
|
+
modalities: ['audio'],
|
|
19
|
+
authType: 'none',
|
|
20
|
+
streaming: false,
|
|
21
|
+
tools: false,
|
|
22
|
+
vision: false,
|
|
23
|
+
jsonMode: false,
|
|
24
|
+
functionCalling: false
|
|
25
|
+
},
|
|
26
|
+
category: 'local',
|
|
27
|
+
hardware: ['consumer'],
|
|
28
|
+
icon: '🐶',
|
|
29
|
+
docsUrl: 'https://github.com/suno-ai/bark',
|
|
30
|
+
priority: 100,
|
|
31
|
+
enabled: true,
|
|
32
|
+
tags: ['local', 'speech', 'text-to-speech', 'audio'],
|
|
33
|
+
variants: [
|
|
34
|
+
{
|
|
35
|
+
id: 'python',
|
|
36
|
+
label: 'Bark Python',
|
|
37
|
+
description: 'Local Bark via a Python subprocess emitting WAV bytes.',
|
|
38
|
+
transport: 'process',
|
|
39
|
+
specId: 'bark-cli',
|
|
40
|
+
endpoint: '{pythonExecutable}',
|
|
41
|
+
auth: { kind: 'none' },
|
|
42
|
+
modelIdRule: { kind: 'passthrough' },
|
|
43
|
+
priority: 10,
|
|
44
|
+
enabled: true
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
});
|
|
48
|
+
//# sourceMappingURL=provider.bark.descriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.bark.descriptor.js","sourceRoot":"","sources":["../../../../../../src/ai/providers/local/speech/bark/provider.bark.descriptor.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,8BAA8B,EAAE,MAAM,wCAAwC,CAAC;AACxF,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,eAAe,8BAA8B,CAAC;IAC7C,EAAE,EAAE,MAAM;IACV,OAAO,EAAE,YAAY;IACrB,IAAI,EAAE,MAAM;IACZ,WAAW,EACV,4FAA4F;QAC5F,0CAA0C;IAC3C,gBAAgB,EAAE,oBAAoB;IACtC,QAAQ,EAAE,oBAAoB,CAAC,KAAK,CAAC,EAAE,CAAC;IACxC,YAAY,EAAE;QACb,UAAU,EAAE,CAAC,OAAO,CAAC;QACrB,QAAQ,EAAE,MAAM;QAChB,SAAS,EAAE,KAAK;QAChB,KAAK,EAAE,KAAK;QACZ,MAAM,EAAE,KAAK;QACb,QAAQ,EAAE,KAAK;QACf,eAAe,EAAE,KAAK;KACtB;IACD,QAAQ,EAAE,OAAO;IACjB,QAAQ,EAAE,CAAC,UAAU,CAAC;IACtB,IAAI,EAAE,IAAI;IACV,OAAO,EAAE,iCAAiC;IAC1C,QAAQ,EAAE,GAAG;IACb,OAAO,EAAE,IAAI;IACb,IAAI,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,OAAO,CAAC;IACpD,QAAQ,EAAE;QACT;YACC,EAAE,EAAE,QAAQ;YACZ,KAAK,EAAE,aAAa;YACpB,WAAW,EAAE,wDAAwD;YACrE,SAAS,EAAE,SAAS;YACpB,MAAM,EAAE,UAAU;YAClB,QAAQ,EAAE,oBAAoB;YAC9B,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YACtB,WAAW,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE;YACpC,QAAQ,EAAE,EAAE;YACZ,OAAO,EAAE,IAAI;SACb;KACD;CACD,CAAC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `spec-bark-cli` — Suno Bark TTS via Python subprocess.
|
|
3
|
+
*
|
|
4
|
+
* Spawns `python3 -c "<script>"` where the script imports `bark` and
|
|
5
|
+
* writes WAV bytes to stdout. Different from the legacy adapter which
|
|
6
|
+
* wrote to a temp file and printed "SUCCESS" — directing the audio
|
|
7
|
+
* straight to stdout removes the file roundtrip and matches the
|
|
8
|
+
* transport-process model (stdout bytes are the result).
|
|
9
|
+
*
|
|
10
|
+
* Consumer scope only — `transport-process` is consumer-only.
|
|
11
|
+
*/
|
|
12
|
+
declare const _default: {
|
|
13
|
+
id: string;
|
|
14
|
+
kind: "ai/spec";
|
|
15
|
+
name: string;
|
|
16
|
+
description: string;
|
|
17
|
+
modalities: ("image" | "text" | "audio" | "video" | "embedding" | "transcription" | "evaluation" | "speech" | "ocr")[];
|
|
18
|
+
streamFraming: "none" | "sse" | "sse-named" | "ndjson" | "binary-chunked" | "ws-frame";
|
|
19
|
+
toolCallEnvelope: string;
|
|
20
|
+
transports: string[];
|
|
21
|
+
external: boolean;
|
|
22
|
+
priority: number;
|
|
23
|
+
enabled: boolean;
|
|
24
|
+
capabilities?: ("streaming" | "json_mode" | "text_generation" | "chat_completion" | "function_calling" | "embedding_generation" | "image_generation_text_to_image" | "image_generation_image_to_image" | "image_generation_inpainting" | "image_generation_outpainting" | "image_upscaling" | "image_editing_via_instructions" | "audio_generation_text_to_speech" | "audio_generation_voice_cloning" | "audio_generation_music" | "audio_generation_sound_effects" | "audio_transcription" | "audio_transcription_realtime" | "video_generation_text_to_video" | "workflow_execution" | "code_generation" | "image_understanding" | "structured_evaluation")[] | undefined;
|
|
25
|
+
imageControls?: {
|
|
26
|
+
steps: boolean;
|
|
27
|
+
cfg: boolean;
|
|
28
|
+
sampler: boolean;
|
|
29
|
+
scheduler: boolean;
|
|
30
|
+
negativePrompt: boolean;
|
|
31
|
+
seed: boolean;
|
|
32
|
+
} | undefined;
|
|
33
|
+
tags?: string[] | undefined;
|
|
34
|
+
};
|
|
35
|
+
export default _default;
|
|
36
|
+
//# sourceMappingURL=bark-cli.spec.descriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bark-cli.spec.descriptor.d.ts","sourceRoot":"","sources":["../../../../src/ai/specs/bark-cli/bark-cli.spec.descriptor.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;;;;;;;;;AACH,wBAYG"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { createAISpecDescriptor } from '@vibesdotdev/ai/specs/schemas/descriptor';
|
|
2
|
+
/**
|
|
3
|
+
* `spec-bark-cli` — Suno Bark TTS via Python subprocess.
|
|
4
|
+
*
|
|
5
|
+
* Spawns `python3 -c "<script>"` where the script imports `bark` and
|
|
6
|
+
* writes WAV bytes to stdout. Different from the legacy adapter which
|
|
7
|
+
* wrote to a temp file and printed "SUCCESS" — directing the audio
|
|
8
|
+
* straight to stdout removes the file roundtrip and matches the
|
|
9
|
+
* transport-process model (stdout bytes are the result).
|
|
10
|
+
*
|
|
11
|
+
* Consumer scope only — `transport-process` is consumer-only.
|
|
12
|
+
*/
|
|
13
|
+
export default createAISpecDescriptor({
|
|
14
|
+
id: 'bark-cli',
|
|
15
|
+
name: 'Suno Bark TTS (Python)',
|
|
16
|
+
description: "Bark text-to-speech via Python subprocess. Emits WAV-encoded bytes to stdout — no temp files.",
|
|
17
|
+
modalities: ['speech', 'audio'],
|
|
18
|
+
streamFraming: 'binary-chunked',
|
|
19
|
+
toolCallEnvelope: 'none',
|
|
20
|
+
transports: ['process'],
|
|
21
|
+
capabilities: ['audio_generation_text_to_speech'],
|
|
22
|
+
priority: 100,
|
|
23
|
+
tags: ['bark', 'tts', 'python', 'consumer-only']
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=bark-cli.spec.descriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bark-cli.spec.descriptor.js","sourceRoot":"","sources":["../../../../src/ai/specs/bark-cli/bark-cli.spec.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAElF;;;;;;;;;;GAUG;AACH,eAAe,sBAAsB,CAAC;IACrC,EAAE,EAAE,UAAU;IACd,IAAI,EAAE,wBAAwB;IAC9B,WAAW,EACV,+FAA+F;IAChG,UAAU,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC/B,aAAa,EAAE,gBAAgB;IAC/B,gBAAgB,EAAE,MAAM;IACxB,UAAU,EAAE,CAAC,SAAS,CAAC;IACvB,YAAY,EAAE,CAAC,iCAAiC,CAAC;IACjD,QAAQ,EAAE,GAAG;IACb,IAAI,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,eAAe,CAAC;CAChD,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `spec-bark-cli` impl.
|
|
3
|
+
*
|
|
4
|
+
* Builds a Python script that loads Bark, generates an audio array,
|
|
5
|
+
* encodes it as a WAV byte stream, and writes the bytes to
|
|
6
|
+
* `sys.stdout.buffer`. transport-process spawns `python3 -c <script>`
|
|
7
|
+
* and captures stdout into the chunk stream. The decoder concatenates
|
|
8
|
+
* stdout bytes and base64-encodes them for the `AudioGenerationResponse`.
|
|
9
|
+
*/
|
|
10
|
+
import { type KindContext, type VibesRuntime } from '@vibesdotdev/kernel';
|
|
11
|
+
import type { AISpecDescriptor } from '@vibesdotdev/ai/specs/schemas/descriptor';
|
|
12
|
+
import type { AISpecInterface, DecodedEvent, SpecCallContext, WireRequest, WireResponseChunk } from '@vibesdotdev/ai/specs/interfaces';
|
|
13
|
+
import type { GenerationRequest } from '@vibesdotdev/ai/interfaces';
|
|
14
|
+
import type { Modality } from '@vibesdotdev/ai/models/schemas';
|
|
15
|
+
export declare class BarkCliSpec implements AISpecInterface {
|
|
16
|
+
readonly descriptor: AISpecDescriptor;
|
|
17
|
+
private readonly kindContext;
|
|
18
|
+
constructor(descriptor: AISpecDescriptor, kindContext: KindContext<VibesRuntime>);
|
|
19
|
+
/** Resolves the stored connection at call time and applies the documented precedence. */
|
|
20
|
+
private speech;
|
|
21
|
+
encodeRequest(request: GenerationRequest<Modality>, context: SpecCallContext): WireRequest;
|
|
22
|
+
decodeResponse<M extends Modality>(chunks: AsyncIterable<WireResponseChunk>, request: GenerationRequest<M>, context: SpecCallContext): AsyncIterable<DecodedEvent<M>>;
|
|
23
|
+
}
|
|
24
|
+
export default BarkCliSpec;
|
|
25
|
+
//# sourceMappingURL=bark-cli.spec.impl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bark-cli.spec.impl.d.ts","sourceRoot":"","sources":["../../../../src/ai/specs/bark-cli/bark-cli.spec.impl.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAmB,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAI3F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAEjF,OAAO,KAAK,EACX,eAAe,EACf,YAAY,EACZ,eAAe,EACf,WAAW,EACX,iBAAiB,EACjB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAA2B,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC7F,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAE/D,qBAAa,WAAY,YAAW,eAAe;IAEjD,QAAQ,CAAC,UAAU,EAAE,gBAAgB;IACrC,OAAO,CAAC,QAAQ,CAAC,WAAW;gBADnB,UAAU,EAAE,gBAAgB,EACpB,WAAW,EAAE,WAAW,CAAC,YAAY,CAAC;IAGxD,yFAAyF;IACzF,OAAO,CAAC,MAAM;IAed,aAAa,CACZ,OAAO,EAAE,iBAAiB,CAAC,QAAQ,CAAC,EACpC,OAAO,EAAE,eAAe,GACtB,WAAW;IAWP,cAAc,CAAC,CAAC,SAAS,QAAQ,EACvC,MAAM,EAAE,aAAa,CAAC,iBAAiB,CAAC,EACxC,OAAO,EAAE,iBAAiB,CAAC,CAAC,CAAC,EAC7B,OAAO,EAAE,eAAe,GACtB,aAAa,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;CA+BjC;AAgED,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `spec-bark-cli` impl.
|
|
3
|
+
*
|
|
4
|
+
* Builds a Python script that loads Bark, generates an audio array,
|
|
5
|
+
* encodes it as a WAV byte stream, and writes the bytes to
|
|
6
|
+
* `sys.stdout.buffer`. transport-process spawns `python3 -c <script>`
|
|
7
|
+
* and captures stdout into the chunk stream. The decoder concatenates
|
|
8
|
+
* stdout bytes and base64-encodes them for the `AudioGenerationResponse`.
|
|
9
|
+
*/
|
|
10
|
+
import { CapabilityError } from '@vibesdotdev/kernel';
|
|
11
|
+
import { AudioGenerationResponseSchema } from '@vibesdotdev/ai-schemas/generation/responses';
|
|
12
|
+
import { barkSpeechRequestSchema } from "../../../schemas/speech.js";
|
|
13
|
+
import { barkConnectionSchema } from "../../providers/local/speech/bark/config/schemas/index.js";
|
|
14
|
+
export class BarkCliSpec {
|
|
15
|
+
descriptor;
|
|
16
|
+
kindContext;
|
|
17
|
+
constructor(descriptor, kindContext) {
|
|
18
|
+
this.descriptor = descriptor;
|
|
19
|
+
this.kindContext = kindContext;
|
|
20
|
+
}
|
|
21
|
+
/** Resolves the stored connection at call time and applies the documented precedence. */
|
|
22
|
+
speech(request, context) {
|
|
23
|
+
const stored = this.kindContext.runtime
|
|
24
|
+
.query('ai/provider/connection')
|
|
25
|
+
.withId(context.providerId).descriptors()[0];
|
|
26
|
+
const connection = barkConnectionSchema.parse(stored?.configuration ?? {});
|
|
27
|
+
const parsed = barkSpeechRequestSchema({ connection, wireModelId: context.wireModelId }).safeParse(request);
|
|
28
|
+
if (!parsed.success) {
|
|
29
|
+
throw new CapabilityError('Bark requires text and numeric sampling options.', 'INVALID_INPUT', {
|
|
30
|
+
reason: 'bark-speech-invalid',
|
|
31
|
+
details: { kind: 'ai/spec', id: this.descriptor.id }
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
return parsed.data;
|
|
35
|
+
}
|
|
36
|
+
encodeRequest(request, context) {
|
|
37
|
+
const script = buildBarkScript(this.speech(request, context));
|
|
38
|
+
return {
|
|
39
|
+
method: 'POST',
|
|
40
|
+
path: '',
|
|
41
|
+
headers: {},
|
|
42
|
+
body: { args: ['-c', script] },
|
|
43
|
+
streaming: false
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
async *decodeResponse(chunks, request, context) {
|
|
47
|
+
const collected = [];
|
|
48
|
+
for await (const chunk of chunks) {
|
|
49
|
+
if (chunk.kind === 'bytes') {
|
|
50
|
+
collected.push(chunk.data);
|
|
51
|
+
}
|
|
52
|
+
else if (chunk.kind === 'error') {
|
|
53
|
+
yield { kind: 'error', error: chunk.error };
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
else if (chunk.kind === 'end') {
|
|
57
|
+
const merged = mergeBytes(collected);
|
|
58
|
+
if (merged.length === 0) {
|
|
59
|
+
yield {
|
|
60
|
+
kind: 'error',
|
|
61
|
+
error: new CapabilityError('Bark produced no audio bytes.', 'UNAVAILABLE', {
|
|
62
|
+
reason: 'bark-audio-empty',
|
|
63
|
+
details: { kind: 'ai/spec', id: this.descriptor.id }
|
|
64
|
+
})
|
|
65
|
+
};
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
yield resultEvent(AudioGenerationResponseSchema.parse({
|
|
69
|
+
id: `${context.providerId}.${context.variantId}.${Date.now()}`,
|
|
70
|
+
timestamp: new Date(),
|
|
71
|
+
audio: base64Encode(merged),
|
|
72
|
+
format: 'wav',
|
|
73
|
+
metadata: { modelVersion: this.speech(request, context).speaker, byteLength: merged.length }
|
|
74
|
+
}));
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
/** Speech and audio requests decode to the generic audio response. */
|
|
81
|
+
function resultEvent(result) {
|
|
82
|
+
const event = { kind: 'result', result };
|
|
83
|
+
// SAFETY: the speech/audio modalities decode to BaseGenerationResponse (the non-text arm of ResultForModality), which AudioGenerationResponse extends.
|
|
84
|
+
return event;
|
|
85
|
+
}
|
|
86
|
+
function buildBarkScript(args) {
|
|
87
|
+
const text = pythonString(args.text);
|
|
88
|
+
const speaker = pythonString(args.speaker);
|
|
89
|
+
// Bark resolves its checkpoint cache from XDG_CACHE_HOME at import time.
|
|
90
|
+
const cache = !args.modelsDir
|
|
91
|
+
? []
|
|
92
|
+
: ['import os', `os.environ["XDG_CACHE_HOME"] = ${pythonString(args.modelsDir)}`];
|
|
93
|
+
return [
|
|
94
|
+
'import sys',
|
|
95
|
+
...cache,
|
|
96
|
+
'import warnings',
|
|
97
|
+
'warnings.filterwarnings("ignore", category=FutureWarning)',
|
|
98
|
+
'warnings.filterwarnings("ignore", category=UserWarning)',
|
|
99
|
+
'import io',
|
|
100
|
+
'import numpy as np',
|
|
101
|
+
'import torch',
|
|
102
|
+
// PyTorch 2.6+ weights_only=False patch for Bark checkpoints.
|
|
103
|
+
'_original_torch_load = torch.load',
|
|
104
|
+
'def _patched_torch_load(*a, **k):',
|
|
105
|
+
' k.setdefault("weights_only", False)',
|
|
106
|
+
' return _original_torch_load(*a, **k)',
|
|
107
|
+
'torch.load = _patched_torch_load',
|
|
108
|
+
'from scipy.io.wavfile import write as write_wav',
|
|
109
|
+
'from bark import SAMPLE_RATE, generate_audio, preload_models',
|
|
110
|
+
'preload_models()',
|
|
111
|
+
`audio = generate_audio(${text}, history_prompt=${speaker}, text_temp=${args.textTemp}, waveform_temp=${args.waveformTemp})`,
|
|
112
|
+
'audio_int16 = (audio * 32767).astype(np.int16)',
|
|
113
|
+
'buf = io.BytesIO()',
|
|
114
|
+
'write_wav(buf, SAMPLE_RATE, audio_int16)',
|
|
115
|
+
'sys.stdout.buffer.write(buf.getvalue())'
|
|
116
|
+
].join('\n');
|
|
117
|
+
}
|
|
118
|
+
function pythonString(value) {
|
|
119
|
+
return JSON.stringify(value);
|
|
120
|
+
}
|
|
121
|
+
function mergeBytes(chunks) {
|
|
122
|
+
const out = new Uint8Array(chunks.reduce((total, chunk) => total + chunk.length, 0));
|
|
123
|
+
let offset = 0;
|
|
124
|
+
for (const chunk of chunks) {
|
|
125
|
+
out.set(chunk, offset);
|
|
126
|
+
offset += chunk.length;
|
|
127
|
+
}
|
|
128
|
+
return out;
|
|
129
|
+
}
|
|
130
|
+
function base64Encode(bytes) {
|
|
131
|
+
let binary = '';
|
|
132
|
+
for (let index = 0; index < bytes.length; index += 0x8000) {
|
|
133
|
+
binary += String.fromCharCode(...bytes.subarray(index, index + 0x8000));
|
|
134
|
+
}
|
|
135
|
+
return btoa(binary);
|
|
136
|
+
}
|
|
137
|
+
export default BarkCliSpec;
|
|
138
|
+
//# sourceMappingURL=bark-cli.spec.impl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bark-cli.spec.impl.js","sourceRoot":"","sources":["../../../../src/ai/specs/bark-cli/bark-cli.spec.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AAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
|