Merge v0.3.4 voice reliability fixes (#19)

* Add auto edit and polish timeline interactions

* Release v0.3.3

* Release v0.3.4

---------

Co-authored-by: haixin.yang <haixin.yang@weimob.com>
This commit is contained in:
Martin Delophyandhaixin.yang authored and GitHub committed 2026-07-17 19:14:43 +08:00
1 parent 86aef694ea
commit eb3501b211
13 files changed
+183 -23

No files matched your search

+18 -6
View File
@@ -3,7 +3,9 @@ import { readFile } from "node:fs/promises";
const VOICE_CASES = [
{ language: "中文", voice: "小雅", text: "你好,这是一次完整的中文语音合成测试。" },
{ language: "中文", voice: "超文", text: "你好,这是超文语音模型的合成测试。" },
{ language: "English", voice: "Heart", text: "Hello. This is a complete English voice synthesis test." },
{ language: "English", voice: "Fenrir", text: "Hello. This is the second English voice synthesis test." },
{ language: "Deutsch", voice: "Thorsten", text: "Hallo! Dies ist ein vollständiger Sprachtest." },
{ language: "Español", voice: "DaveFX", text: "Hola. Esta es una prueba completa de síntesis de voz." },
{ language: "Français", voice: "Siwis", text: "Bonjour. Ceci est un test complet de synthèse vocale." },
@@ -15,17 +17,27 @@ test.beforeEach(async ({ page }) => {
await page.addInitScript(() => localStorage.setItem("ai-voiceover-ui-language", "zh"));
});
for (const voiceCase of VOICE_CASES) {
test(`${voiceCase.language} ${voiceCase.voice} generates a valid WAV through the editor`, async ({ page }) => {
await page.goto("/");
test("every listed language and voice generates a valid WAV through the current editor workflow", async ({ page }) => {
test.setTimeout(20 * 60 * 1000);
await page.goto("/");
for (const voiceCase of VOICE_CASES) {
// Generation selects the newly created voice clip and switches the right
// panel to its clip inspector; explicitly return to the Audio workflow.
await page.locator(".rail-tool").filter({ hasText: "音频" }).click();
await page.getByRole("button", { name: /AI 配音/ }).click();
await expect(page.locator("#script-input")).toBeVisible();
await page.locator("#script-input").fill(voiceCase.text);
await page.locator(".voice-filter").click();
await page.locator(".menu-list button").getByText(voiceCase.language, { exact: true }).click();
await page.locator(".voice-card").filter({ hasText: voiceCase.voice }).click();
await expect(page.locator(".voice-card.is-selected strong")).toHaveText(voiceCase.voice);
const previousClipCount = await page.locator(".audio-clip:not(.is-source)").count();
await page.locator(".generate-button").click();
await expect(page.locator(".audio-clip:not(.is-source)")).toHaveCount(previousClipCount + 1, { timeout: 4 * 60 * 1000 });
const clipDownload = page.getByRole("button", { name: "下载片段", exact: true });
await expect(clipDownload).toBeEnabled({ timeout: 4 * 60 * 1000 });
await expect(clipDownload).toBeEnabled();
const downloadPromise = page.waitForEvent("download");
await clipDownload.click();
@@ -36,5 +48,5 @@ for (const voiceCase of VOICE_CASES) {
expect(wav.byteLength).toBeGreaterThan(44);
expect(wav.subarray(0, 4).toString("ascii")).toBe("RIFF");
expect(wav.subarray(8, 12).toString("ascii")).toBe("WAVE");
});
}
}
});