-
Notifications
You must be signed in to change notification settings - Fork 12
/
types.ts
40 lines (38 loc) · 930 Bytes
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import type { Rss, RssItem } from "./generate/rss_parser.ts";
import type { StudioPackGenerator } from "./studio_pack_generator.ts";
export interface CustomModule {
fetchRssItemImage?: (
item: RssItem,
opt: StudioPackGenerator,
) => Promise<string>;
fetchRssItemTitle?: (
item: RssItem,
opt: StudioPackGenerator,
) => Promise<string>;
fetchRssItemFileName?: (
item: RssItem,
opt: StudioPackGenerator,
) => Promise<string>;
fetchRssItemUrl?: (
item: RssItem,
opt: StudioPackGenerator,
) => Promise<string>;
writeFileWithUrl?: (
url: string,
filePath: string,
opt: StudioPackGenerator,
) => Promise<Rss>;
fetchRssItems?: (
url: string,
opt: StudioPackGenerator,
) => Promise<Rss>;
}
export const OPEN_AI_VOICES = [
"alloy",
"echo",
"fable",
"onyx",
"nova",
"shimmer",
] as const;
export const OPEN_AI_MODELS = ["tts-1", "tts-1-hd"] as const;