Skip to content

Commit c23b73f

Browse files
authored
Macos support whisper cpp (#1186)
* arm64 macos support whisper.cpp * add whisper binary for x64 macos
1 parent 9d254fd commit c23b73f

File tree

8 files changed

+14158
-2
lines changed

8 files changed

+14158
-2
lines changed

enjoy/e2e/main.spec.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ test.afterAll(async () => {
6060
await electronApp.close();
6161
});
6262

63-
test("validate echogarden recognition", async () => {
63+
test("validate echogarden recognition by whisper", async () => {
6464
const res = await page.evaluate(() => {
6565
return window.__ENJOY_APP__.echogarden.check({
6666
engine: "whisper",
@@ -76,6 +76,20 @@ test("validate echogarden recognition", async () => {
7676
expect(res.success).toBeTruthy();
7777
});
7878

79+
test("validate echogarden recognition by whisper.cpp", async () => {
80+
const res = await page.evaluate(() => {
81+
return window.__ENJOY_APP__.echogarden.check({
82+
engine: "whisper.cpp",
83+
whisperCpp: {
84+
model: "tiny.en",
85+
language: "en",
86+
},
87+
});
88+
});
89+
console.info(res.log);
90+
expect(res.success).toBeTruthy();
91+
});
92+
7993
test("valid ffmpeg command", async () => {
8094
const res = await page.evaluate(() => {
8195
return window.__ENJOY_APP__.ffmpeg.check();

0 commit comments

Comments
 (0)