Skip to content

Commit c5177f6

Browse files
fix: ecogarden type
1 parent de3f5af commit c5177f6

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
declare module "echogarden" {
2+
interface SynthesizeOptions {
3+
engine: string;
4+
voice: string;
5+
}
6+
7+
interface RawAudio {
8+
audioChannels: { buffer: ArrayBuffer }[];
9+
sampleRate: number;
10+
}
11+
12+
interface SynthesizeResult {
13+
audio: Buffer | RawAudio;
14+
}
15+
16+
export function synthesize(
17+
text: string,
18+
options: SynthesizeOptions
19+
): Promise<SynthesizeResult>;
20+
}

packages/plugin-node/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
"rootDir": "src",
66
"types": ["node"]
77
},
8-
"include": ["src/**/*.ts"]
8+
"include": ["src/**/*.ts", "src/**/*.d.ts"]
99
}

0 commit comments

Comments
 (0)