agentcut 0.2.14 → 0.2.16
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/dist/studio/bundler.js +3 -1
- package/dist/studio/bundler.js.map +1 -1
- package/dist/studio/chat.js +2 -1
- package/dist/studio/chat.js.map +1 -1
- package/dist/studio/host.d.ts +2 -0
- package/dist/studio/host.js +17 -5
- package/dist/studio/host.js.map +1 -1
- package/dist/studio/projects.d.ts +1 -0
- package/dist/studio/projects.js +3 -1
- package/dist/studio/projects.js.map +1 -1
- package/dist/studio/providers/http.d.ts +4 -0
- package/dist/studio/providers/http.js +23 -0
- package/dist/studio/providers/http.js.map +1 -0
- package/dist/studio/providers/settings.d.ts +20 -0
- package/dist/studio/providers/settings.js +84 -0
- package/dist/studio/providers/settings.js.map +1 -0
- package/dist/studio/render-memory.d.ts +7 -0
- package/dist/studio/render-memory.js +31 -0
- package/dist/studio/render-memory.js.map +1 -0
- package/dist/studio/render-metadata.d.ts +3 -0
- package/dist/studio/render-metadata.js +16 -0
- package/dist/studio/render-metadata.js.map +1 -0
- package/dist/studio/render-policy.d.ts +16 -0
- package/dist/studio/render-policy.js +53 -0
- package/dist/studio/render-policy.js.map +1 -0
- package/dist/studio/render.d.ts +1 -0
- package/dist/studio/render.js +80 -22
- package/dist/studio/render.js.map +1 -1
- package/dist/studio/schema.d.ts +1134 -36
- package/dist/studio/schema.js +10 -0
- package/dist/studio/schema.js.map +1 -1
- package/dist/studio/tools.js +11 -5
- package/dist/studio/tools.js.map +1 -1
- package/dist/studio/transcription/assemblyai.d.ts +11 -0
- package/dist/studio/transcription/assemblyai.js +123 -0
- package/dist/studio/transcription/assemblyai.js.map +1 -0
- package/dist/studio/transcription/local.d.ts +2 -0
- package/dist/studio/transcription/local.js +57 -0
- package/dist/studio/transcription/local.js.map +1 -0
- package/dist/studio/transcription/registry.d.ts +3 -0
- package/dist/studio/transcription/registry.js +5 -0
- package/dist/studio/transcription/registry.js.map +1 -0
- package/dist/studio/transcription/service.d.ts +130 -0
- package/dist/studio/transcription/service.js +235 -0
- package/dist/studio/transcription/service.js.map +1 -0
- package/dist/studio/transcription/types.d.ts +68 -0
- package/dist/studio/transcription/types.js +2 -0
- package/dist/studio/transcription/types.js.map +1 -0
- package/dist/studio/voice/audio.d.ts +1 -0
- package/dist/studio/voice/audio.js +18 -0
- package/dist/studio/voice/audio.js.map +1 -0
- package/dist/studio/voice/elevenlabs.d.ts +2 -0
- package/dist/studio/voice/elevenlabs.js +76 -0
- package/dist/studio/voice/elevenlabs.js.map +1 -0
- package/dist/studio/voice/gemini.d.ts +2 -0
- package/dist/studio/voice/gemini.js +95 -0
- package/dist/studio/voice/gemini.js.map +1 -0
- package/dist/studio/voice/openai.d.ts +2 -0
- package/dist/studio/voice/openai.js +75 -0
- package/dist/studio/voice/openai.js.map +1 -0
- package/dist/studio/voice/registry.d.ts +4 -0
- package/dist/studio/voice/registry.js +18 -0
- package/dist/studio/voice/registry.js.map +1 -0
- package/dist/studio/voice/types.d.ts +42 -0
- package/dist/studio/voice/types.js +2 -0
- package/dist/studio/voice/types.js.map +1 -0
- package/dist/studio/voice/xai.d.ts +2 -0
- package/dist/studio/voice/xai.js +80 -0
- package/dist/studio/voice/xai.js.map +1 -0
- package/dist/studio/voice.d.ts +32 -58
- package/dist/studio/voice.js +52 -308
- package/dist/studio/voice.js.map +1 -1
- package/package.json +53 -53
- package/template/components/CATALOG.md +2 -0
- package/template/components/STYLES.md +108 -7
- package/template/components/catalog.json +29 -0
- package/template/components/cinematic/Cinematic.tsx +37 -7
- package/template/components/cinematic/PreviewFloor.tsx +39 -0
- package/template/components/cinematic/project-line.ts +23 -0
- package/template/components/cinematic/visibility.ts +12 -0
- package/template/components/hook-card/HookCard.tsx +11 -5
- package/template/components/hook-card/meta.json +29 -0
- package/template/components/sticker-badge/StickerBadge.tsx +4 -2
- package/template/components/styles.json +354 -3
- package/template/runtime/composition.tsx +10 -2
- package/template/runtime/framing.ts +29 -0
- package/template/runtime/types.ts +4 -0
- package/template/skill/SKILL.md +13 -2
- package/template/skill/references/person-framing.md +13 -0
- package/template/skill/references/style-editing.md +20 -0
- package/template/skill/references/transcription.md +15 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { adapter as elevenlabs } from "./elevenlabs.js";
|
|
2
|
+
import { adapter as gemini } from "./gemini.js";
|
|
3
|
+
import { adapter as openai } from "./openai.js";
|
|
4
|
+
import { adapter as xai } from "./xai.js";
|
|
5
|
+
/** One registration point for synthesis metadata, validation, voices and generation. */
|
|
6
|
+
export const VOICE_ADAPTERS = {
|
|
7
|
+
elevenlabs,
|
|
8
|
+
gemini,
|
|
9
|
+
openai,
|
|
10
|
+
xai,
|
|
11
|
+
};
|
|
12
|
+
export function getVoiceAdapter(id) {
|
|
13
|
+
const adapter = VOICE_ADAPTERS[id];
|
|
14
|
+
if (!adapter)
|
|
15
|
+
throw new Error("Unknown voice-over provider. Choose one from settings.");
|
|
16
|
+
return adapter;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../src/studio/voice/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,UAAU,CAAC;AAE1C,wFAAwF;AACxF,MAAM,CAAC,MAAM,cAAc,GAAiC;IAC1D,UAAU;IACV,MAAM;IACN,MAAM;IACN,GAAG;CACJ,CAAC;AACF,MAAM,UAAU,eAAe,CAAC,EAAU;IACxC,MAAM,OAAO,GAAG,cAAc,CAAC,EAAE,CAAC,CAAC;IACnC,IAAI,CAAC,OAAO;QACV,MAAM,IAAI,KAAK,CAAC,wDAAwD,CAAC,CAAC;IAC5E,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export interface VoiceInfo {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
previewUrl?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ProviderSpec {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
keyUrl: string;
|
|
11
|
+
keyHint: string;
|
|
12
|
+
envVar: string;
|
|
13
|
+
defaultModel: string;
|
|
14
|
+
models: {
|
|
15
|
+
id: string;
|
|
16
|
+
label: string;
|
|
17
|
+
}[];
|
|
18
|
+
defaultVoice: string;
|
|
19
|
+
styleNote: string;
|
|
20
|
+
}
|
|
21
|
+
export interface GenerateVoiceInput {
|
|
22
|
+
provider?: string;
|
|
23
|
+
model?: string;
|
|
24
|
+
voice?: string;
|
|
25
|
+
text: string;
|
|
26
|
+
style?: string;
|
|
27
|
+
language?: string;
|
|
28
|
+
speed?: number;
|
|
29
|
+
name?: string;
|
|
30
|
+
takes?: number;
|
|
31
|
+
}
|
|
32
|
+
export interface Audio {
|
|
33
|
+
data: Buffer;
|
|
34
|
+
ext: "wav" | "mp3";
|
|
35
|
+
}
|
|
36
|
+
export interface VoiceAdapter {
|
|
37
|
+
spec: ProviderSpec;
|
|
38
|
+
voices: VoiceInfo[] | null;
|
|
39
|
+
listVoices(key: string | null): Promise<VoiceInfo[]>;
|
|
40
|
+
verify(key: string): Promise<void>;
|
|
41
|
+
synthesize(key: string, input: GenerateVoiceInput, model: string, voice: string): Promise<Audio>;
|
|
42
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/studio/voice/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { readError, verifyRequest } from "../providers/http.js";
|
|
2
|
+
const voices = [
|
|
3
|
+
"eve",
|
|
4
|
+
"ara",
|
|
5
|
+
"leo",
|
|
6
|
+
"rex",
|
|
7
|
+
"sal",
|
|
8
|
+
"carina",
|
|
9
|
+
"zagan",
|
|
10
|
+
"helix",
|
|
11
|
+
"orion",
|
|
12
|
+
"luna",
|
|
13
|
+
"iris",
|
|
14
|
+
"altair",
|
|
15
|
+
"zenith",
|
|
16
|
+
"perseus",
|
|
17
|
+
"helios",
|
|
18
|
+
"lux",
|
|
19
|
+
"kepler",
|
|
20
|
+
"rigel",
|
|
21
|
+
"cosmo",
|
|
22
|
+
"celeste",
|
|
23
|
+
"ursa",
|
|
24
|
+
"sirius",
|
|
25
|
+
"lumen",
|
|
26
|
+
"castor",
|
|
27
|
+
"naksh",
|
|
28
|
+
"atlas",
|
|
29
|
+
"aurora",
|
|
30
|
+
"liora",
|
|
31
|
+
].map((id) => ({
|
|
32
|
+
id,
|
|
33
|
+
name: id[0].toUpperCase() + id.slice(1),
|
|
34
|
+
description: id === "eve" ? "Default" : undefined,
|
|
35
|
+
}));
|
|
36
|
+
export const adapter = {
|
|
37
|
+
spec: {
|
|
38
|
+
id: "xai",
|
|
39
|
+
name: "Grok (xAI)",
|
|
40
|
+
keyUrl: "https://console.x.ai/",
|
|
41
|
+
keyHint: "console.x.ai → API keys.",
|
|
42
|
+
envVar: "XAI_API_KEY",
|
|
43
|
+
defaultModel: "default",
|
|
44
|
+
models: [{ id: "default", label: "Grok TTS" }],
|
|
45
|
+
defaultVoice: "eve",
|
|
46
|
+
styleNote: "No style field: use inline tags like [pause] [laugh] or <whisper>…</whisper>, and `speed`.",
|
|
47
|
+
},
|
|
48
|
+
voices,
|
|
49
|
+
async listVoices(key) {
|
|
50
|
+
return voices;
|
|
51
|
+
},
|
|
52
|
+
async verify(key) {
|
|
53
|
+
await verifyRequest("https://api.x.ai/v1/models", {
|
|
54
|
+
Authorization: `Bearer ${key}`,
|
|
55
|
+
});
|
|
56
|
+
return;
|
|
57
|
+
},
|
|
58
|
+
async synthesize(key, input, model, voice) {
|
|
59
|
+
const response = await fetch("https://api.x.ai/v1/tts", {
|
|
60
|
+
method: "POST",
|
|
61
|
+
headers: {
|
|
62
|
+
Authorization: `Bearer ${key}`,
|
|
63
|
+
"content-type": "application/json",
|
|
64
|
+
},
|
|
65
|
+
body: JSON.stringify({
|
|
66
|
+
text: input.text,
|
|
67
|
+
voice_id: voice,
|
|
68
|
+
language: input.language || "auto",
|
|
69
|
+
output_format: { codec: "wav", sample_rate: 48_000 },
|
|
70
|
+
...(typeof input.speed === "number"
|
|
71
|
+
? { speed: Math.max(0.7, Math.min(1.5, input.speed)) }
|
|
72
|
+
: {}),
|
|
73
|
+
}),
|
|
74
|
+
});
|
|
75
|
+
if (!response.ok)
|
|
76
|
+
throw new Error(`xAI: ${await readError(response)}`);
|
|
77
|
+
return { data: Buffer.from(await response.arrayBuffer()), ext: "wav" };
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
//# sourceMappingURL=xai.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xai.js","sourceRoot":"","sources":["../../../src/studio/voice/xai.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAEhE,MAAM,MAAM,GAAuB;IACjC,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,QAAQ;IACR,OAAO;IACP,OAAO;IACP,OAAO;IACP,MAAM;IACN,MAAM;IACN,QAAQ;IACR,QAAQ;IACR,SAAS;IACT,QAAQ;IACR,KAAK;IACL,QAAQ;IACR,OAAO;IACP,OAAO;IACP,SAAS;IACT,MAAM;IACN,QAAQ;IACR,OAAO;IACP,QAAQ;IACR,OAAO;IACP,OAAO;IACP,QAAQ;IACR,OAAO;CACR,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IACb,EAAE;IACF,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IACvC,WAAW,EAAE,EAAE,KAAK,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS;CAClD,CAAC,CAAC,CAAC;AACJ,MAAM,CAAC,MAAM,OAAO,GAAiB;IACnC,IAAI,EAAE;QACJ,EAAE,EAAE,KAAK;QACT,IAAI,EAAE,YAAY;QAClB,MAAM,EAAE,uBAAuB;QAC/B,OAAO,EAAE,0BAA0B;QACnC,MAAM,EAAE,aAAa;QACrB,YAAY,EAAE,SAAS;QACvB,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC;QAC9C,YAAY,EAAE,KAAK;QACnB,SAAS,EACP,4FAA4F;KAC/F;IACD,MAAM;IACN,KAAK,CAAC,UAAU,CAAC,GAAG;QAClB,OAAO,MAAO,CAAC;IACjB,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,GAAG;QACd,MAAM,aAAa,CAAC,4BAA4B,EAAE;YAChD,aAAa,EAAE,UAAU,GAAG,EAAE;SAC/B,CAAC,CAAC;QACH,OAAO;IACT,CAAC;IACD,KAAK,CAAC,UAAU,CAAC,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK;QACvC,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,yBAAyB,EAAE;YACtD,MAAM,EAAE,MAAM;YACd,OAAO,EAAE;gBACP,aAAa,EAAE,UAAU,GAAG,EAAE;gBAC9B,cAAc,EAAE,kBAAkB;aACnC;YACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;gBACnB,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,QAAQ,EAAE,KAAK;gBACf,QAAQ,EAAE,KAAK,CAAC,QAAQ,IAAI,MAAM;gBAClC,aAAa,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE;gBACpD,GAAG,CAAC,OAAO,KAAK,CAAC,KAAK,KAAK,QAAQ;oBACjC,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE;oBACtD,CAAC,CAAC,EAAE,CAAC;aACR,CAAC;SACH,CAAC,CAAC;QACH,IAAI,CAAC,QAAQ,CAAC,EAAE;YAAE,MAAM,IAAI,KAAK,CAAC,QAAQ,MAAM,SAAS,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QACvE,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,QAAQ,CAAC,WAAW,EAAE,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;IACzE,CAAC;CACF,CAAC"}
|
package/dist/studio/voice.d.ts
CHANGED
|
@@ -1,26 +1,8 @@
|
|
|
1
1
|
import type { WorkspacePaths } from "./workspace.js";
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
description?: string;
|
|
7
|
-
previewUrl?: string;
|
|
8
|
-
}
|
|
9
|
-
interface ProviderSpec {
|
|
10
|
-
id: VoiceProviderId;
|
|
11
|
-
name: string;
|
|
12
|
-
keyUrl: string;
|
|
13
|
-
keyHint: string;
|
|
14
|
-
envVar: string;
|
|
15
|
-
defaultModel: string;
|
|
16
|
-
models: {
|
|
17
|
-
id: string;
|
|
18
|
-
label: string;
|
|
19
|
-
}[];
|
|
20
|
-
defaultVoice: string;
|
|
21
|
-
/** How style directions are given. */
|
|
22
|
-
styleNote: string;
|
|
23
|
-
}
|
|
2
|
+
import type { ProviderSpec, VoiceInfo, GenerateVoiceInput } from "./voice/types.js";
|
|
3
|
+
export type { VoiceInfo, GenerateVoiceInput } from "./voice/types.js";
|
|
4
|
+
export { readError } from "./providers/http.js";
|
|
5
|
+
export type VoiceProviderId = string;
|
|
24
6
|
export declare const VOICE_PROVIDERS: ProviderSpec[];
|
|
25
7
|
export declare function keyStorePath(): string;
|
|
26
8
|
/** The key for a provider: saved in the studio settings, or the provider's env var. */
|
|
@@ -29,94 +11,87 @@ export declare function keyFor(id: VoiceProviderId): string | null;
|
|
|
29
11
|
export declare const VOICE_KEY_ENV_VARS: string[];
|
|
30
12
|
export declare function voiceSettings(): {
|
|
31
13
|
providers: {
|
|
32
|
-
|
|
14
|
+
configured: boolean;
|
|
15
|
+
source: "saved" | "environment" | null;
|
|
16
|
+
id: string;
|
|
33
17
|
name: string;
|
|
34
18
|
keyUrl: string;
|
|
35
19
|
keyHint: string;
|
|
36
|
-
|
|
37
|
-
|
|
20
|
+
envVar: string;
|
|
21
|
+
defaultModel: string;
|
|
38
22
|
models: {
|
|
39
23
|
id: string;
|
|
40
24
|
label: string;
|
|
41
25
|
}[];
|
|
42
|
-
defaultModel: string;
|
|
43
26
|
defaultVoice: string;
|
|
44
27
|
styleNote: string;
|
|
45
28
|
}[];
|
|
46
|
-
defaultProvider:
|
|
29
|
+
defaultProvider: string;
|
|
47
30
|
};
|
|
48
|
-
export declare function readError(response: Response): Promise<string>;
|
|
49
31
|
export declare function listVoices(provider: VoiceProviderId): Promise<VoiceInfo[]>;
|
|
32
|
+
/** Check a key with a cheap call before saving it. */
|
|
50
33
|
export declare function saveKey(providerId: unknown, rawKey: unknown, makeDefault: boolean): Promise<{
|
|
51
34
|
providers: {
|
|
52
|
-
|
|
35
|
+
configured: boolean;
|
|
36
|
+
source: "saved" | "environment" | null;
|
|
37
|
+
id: string;
|
|
53
38
|
name: string;
|
|
54
39
|
keyUrl: string;
|
|
55
40
|
keyHint: string;
|
|
56
|
-
|
|
57
|
-
|
|
41
|
+
envVar: string;
|
|
42
|
+
defaultModel: string;
|
|
58
43
|
models: {
|
|
59
44
|
id: string;
|
|
60
45
|
label: string;
|
|
61
46
|
}[];
|
|
62
|
-
defaultModel: string;
|
|
63
47
|
defaultVoice: string;
|
|
64
48
|
styleNote: string;
|
|
65
49
|
}[];
|
|
66
|
-
defaultProvider:
|
|
50
|
+
defaultProvider: string;
|
|
67
51
|
}>;
|
|
68
52
|
export declare function removeKey(providerId: unknown): {
|
|
69
53
|
providers: {
|
|
70
|
-
|
|
54
|
+
configured: boolean;
|
|
55
|
+
source: "saved" | "environment" | null;
|
|
56
|
+
id: string;
|
|
71
57
|
name: string;
|
|
72
58
|
keyUrl: string;
|
|
73
59
|
keyHint: string;
|
|
74
|
-
|
|
75
|
-
|
|
60
|
+
envVar: string;
|
|
61
|
+
defaultModel: string;
|
|
76
62
|
models: {
|
|
77
63
|
id: string;
|
|
78
64
|
label: string;
|
|
79
65
|
}[];
|
|
80
|
-
defaultModel: string;
|
|
81
66
|
defaultVoice: string;
|
|
82
67
|
styleNote: string;
|
|
83
68
|
}[];
|
|
84
|
-
defaultProvider:
|
|
69
|
+
defaultProvider: string;
|
|
85
70
|
};
|
|
86
71
|
export declare function setDefaultProvider(providerId: unknown): {
|
|
87
72
|
providers: {
|
|
88
|
-
|
|
73
|
+
configured: boolean;
|
|
74
|
+
source: "saved" | "environment" | null;
|
|
75
|
+
id: string;
|
|
89
76
|
name: string;
|
|
90
77
|
keyUrl: string;
|
|
91
78
|
keyHint: string;
|
|
92
|
-
|
|
93
|
-
|
|
79
|
+
envVar: string;
|
|
80
|
+
defaultModel: string;
|
|
94
81
|
models: {
|
|
95
82
|
id: string;
|
|
96
83
|
label: string;
|
|
97
84
|
}[];
|
|
98
|
-
defaultModel: string;
|
|
99
85
|
defaultVoice: string;
|
|
100
86
|
styleNote: string;
|
|
101
87
|
}[];
|
|
102
|
-
defaultProvider:
|
|
88
|
+
defaultProvider: string;
|
|
103
89
|
};
|
|
104
|
-
export interface GenerateVoiceInput {
|
|
105
|
-
provider?: string;
|
|
106
|
-
model?: string;
|
|
107
|
-
voice?: string;
|
|
108
|
-
text: string;
|
|
109
|
-
style?: string;
|
|
110
|
-
language?: string;
|
|
111
|
-
speed?: number;
|
|
112
|
-
name?: string;
|
|
113
|
-
takes?: number;
|
|
114
|
-
}
|
|
115
90
|
export declare function wavSeconds(data: Buffer): number | null;
|
|
116
91
|
export declare function slugName(value: string): string;
|
|
117
92
|
/** Generate one or more takes and save them in the project's assets/voice/ (never overwrites). */
|
|
118
93
|
export declare function generateVoice(paths: WorkspacePaths, slug: string, input: GenerateVoiceInput): Promise<{
|
|
119
|
-
provider:
|
|
94
|
+
provider: string;
|
|
120
95
|
model: string;
|
|
121
96
|
voice: string;
|
|
122
97
|
takes: ({
|
|
@@ -133,9 +108,9 @@ export declare function generateVoice(paths: WorkspacePaths, slug: string, input
|
|
|
133
108
|
next: string;
|
|
134
109
|
}>;
|
|
135
110
|
export declare function voiceOptions(): {
|
|
136
|
-
defaultProvider:
|
|
111
|
+
defaultProvider: string;
|
|
137
112
|
providers: {
|
|
138
|
-
id:
|
|
113
|
+
id: string;
|
|
139
114
|
name: string;
|
|
140
115
|
configured: boolean;
|
|
141
116
|
defaultModel: string;
|
|
@@ -147,4 +122,3 @@ export declare function voiceOptions(): {
|
|
|
147
122
|
note: string;
|
|
148
123
|
};
|
|
149
124
|
export declare function hasKeyFile(): boolean;
|
|
150
|
-
export {};
|