VoiceStudio is the open-source, fully-local ElevenLabs alternative — voice cloning, voice design, video dubbing, dictation, transcription & audiobook creation in 646 languages.
Python aiaudiobookcudadubbingelevenlabs-alternativehuggingfacelocal-firstmlxomnivoice-studiospeech-to-texttext-to-speechtranscriptiontranslatettsvoice-aivoice-cloningvoice-generationvoicestudioworkflow
fix(design): expose generated take history
velixio44e9f6833a7b
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex a180e7457..ee850650e 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -19,7 +19,7 @@ metadata and the backend fallback mirror it.### Fixed-- Older synthesized takes play again after a newer generation takes over audio playback (#3102)+- Older synthesized takes remain playable and Voice Design exposes their History after a new generation (#3102)- Generated speech no longer starts and ends with silence, and `[pause]` markers give exactly the pause you asked for (Raw preset and explicit durations untouched) (#3080)- Engine sidecars no longer load PyTorch just to answer the Test Engine ping, and a failed test logs its reason locally (#3026) — thanks @tekay-de!diff --git a/electron/src/renderer/src/components/app-shell/workspace-header.test.tsx b/electron/src/renderer/src/components/app-shell/workspace-header.test.tsxnew file mode 100644index 000000000..8c9e4e0cf--- /dev/null+++ b/electron/src/renderer/src/components/app-shell/workspace-header.test.tsx@@ -0,0 +1,25 @@+import { cleanup, fireEvent, render, screen } from '@testing-library/react';+import { afterEach, expect, it, vi } from 'vitest';++vi.mock('react-i18next', () => ({+ useTranslation: () => ({ t: (key: string) => key }),+}));+vi.mock('@/components/bridge', () => ({ isMac: () => true }));+vi.mock('./support-shortcut', () => ({ SupportShortcut: () => null }));++import { WorkspaceHeader } from './workspace-header';++afterEach(cleanup);++it('renders page actions with the shared header controls', () => {+ const openHistory = vi.fn();++ render(+ <WorkspaceHeader actions={<button onClick={openHistory}>History</button>}>+ <h1>Voice Design</h1>+ </WorkspaceHeader>,+ );++ fireEvent.click(screen.getByRole('button', { name: 'History' }));+ expect(openHistory).toHaveBeenCalledOnce();+});diff --git a/electron/src/renderer/src/components/app-shell/workspace-header.tsx b/electron/src/renderer/src/components/app-shell/workspace-header.tsxindex 757d43f2c..f9114931d 100644--- a/electron/src/renderer/src/components/app-shell/workspace-header.tsx+++ b/electron/src/renderer/src/components/app-shell/workspace-header.tsx@@ -7,7 +7,13 @@ import { Button } from '@/components/ui/button';import { cn } from '@/lib/utils';import { isMac } from '@/components/bridge';-export function WorkspaceHeader({ children }: { children: ReactNode }) {+export function WorkspaceHeader({+ children,+ actions,+}: {+ children: ReactNode;+ actions?: ReactNode;+}) {const { t } = useTranslation();return (<header@@ -19,6 +25,7 @@ export function WorkspaceHeader({ children }: { children: ReactNode }) {{!isMac() && <SidebarToggle />}{children}<div className="ml-auto flex shrink-0 items-center gap-1">+ {actions}<SupportShortcut /><Buttonvariant="ghost"diff --git a/electron/src/renderer/src/features/design/design-page.tsx b/electron/src/renderer/src/features/design/design-page.tsxindex c80360faa..3bad4c0c8 100644--- a/electron/src/renderer/src/features/design/design-page.tsx+++ b/electron/src/renderer/src/features/design/design-page.tsx@@ -59,6 +59,7 @@ import { EngineLanguagePicker } from '@/features/clone/engine-language-picker';import { queryKeys } from '@/lib/query';import { cn } from '@/lib/utils';import { cloneSettingsStore } from '@/lib/store/clone-settings';+import { setWorkspace } from '@/lib/store/workspace';import type { Profile } from '@/lib/api/types';import { CATEGORIES, PRESETS } from '@shared/utils/constants';import { buildDesignInstruct, mergeDescribedAttrs } from '@shared/utils/voiceInstruct';@@ -170,7 +171,18 @@ export function DesignPage() {.join(' · ') || t('clone.identity_auto');return (<div className="flex h-full min-h-0 flex-col">- <WorkspaceHeader>+ <WorkspaceHeader+ actions={+ <Button+ variant="ghost"+ size="sm"+ onClick={() => setWorkspace({ libraryOpen: true, libraryTab: 'takes' })}+ >+ <HistoryIcon data-icon="inline-start" />+ {t('clone.history_title')}+ </Button>+ }+ ><h1 className="text-sm font-medium">{t('designWorkspace.title')}</h1></WorkspaceHeader><div className="flex min-h-0 flex-1 @max-[40rem]:flex-col">