From c68ddc45b175c49d0e43617581862fe0a4ceb683 Mon Sep 17 00:00:00 2001 From: Jamie Pine Date: Thu, 29 Jan 2026 15:25:40 -0800 Subject: [PATCH] Enhance contribution guidelines and improve FloatingGenerateBox component - Updated CONTRIBUTING.md to include instructions for building with a local Qwen3-TTS development version, facilitating easier testing and development. - Refactored FloatingGenerateBox component to streamline the rendering of text and instruct fields, improving code readability and maintainability. - Added functionality to handle auto-resizing of text areas based on content changes, enhancing user experience. - Improved event handling for keyboard interactions in StoryTrackEditor, allowing for play/pause functionality with the spacebar. - Introduced a MiniSamplePlayer component in SampleList for better audio playback control, including play, pause, and seek features. - Implemented sample update functionality in the backend, allowing users to edit reference text for audio samples, with appropriate error handling and user feedback. --- CONTRIBUTING.md | 11 + .../Generation/FloatingGenerateBox.tsx | 150 ++-- .../ServerSettings/ModelProgress.tsx | 10 +- .../StoriesTab/StoryTrackEditor.tsx | 15 +- .../components/VoiceProfiles/SampleList.tsx | 306 ++++++- app/src/lib/api/client.ts | 10 + app/src/lib/hooks/useModelDownloadToast.tsx | 4 +- app/src/lib/hooks/useProfiles.ts | 18 + backend/build_binary.py | 12 +- backend/main.py | 13 + backend/models.py | 5 + backend/profiles.py | 27 + backend/transcribe.py | 10 +- backend/utils/progress.py | 50 +- backend/voicebox-server.spec | 48 -- docs/plans/DOCKER_DEPLOYMENT.md | 758 ++++++++++++++++++ docs/plans/EXTERNAL_PROVIDERS.md | 435 ++++++++++ tauri/src-tauri/gen/Assets.car | Bin 3847048 -> 3847048 bytes 18 files changed, 1703 insertions(+), 179 deletions(-) delete mode 100644 backend/voicebox-server.spec create mode 100644 docs/plans/DOCKER_DEPLOYMENT.md create mode 100644 docs/plans/EXTERNAL_PROVIDERS.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d1daede3..9bf5bd7f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -115,6 +115,17 @@ First-time usage will be slower due to model downloads, but subsequent runs will ``` Creates platform-specific binary in `tauri/src-tauri/binaries/` +**Building with local Qwen3-TTS development version:** + +If you're actively developing or modifying the Qwen3-TTS library, set the `QWEN_TTS_PATH` environment variable to point to your local clone: + +```bash +export QWEN_TTS_PATH=~/path/to/your/Qwen3-TTS +./scripts/build-server.sh +``` + +This makes PyInstaller use your local qwen-tts version instead of the pip-installed package. Useful when testing changes to the TTS library before they're published to PyPI or when using an editable install (`pip install -e`). + **Build Tauri desktop app:** ```bash cd tauri diff --git a/app/src/components/Generation/FloatingGenerateBox.tsx b/app/src/components/Generation/FloatingGenerateBox.tsx index 593c3c0f..e4607e23 100644 --- a/app/src/components/Generation/FloatingGenerateBox.tsx +++ b/app/src/components/Generation/FloatingGenerateBox.tsx @@ -112,8 +112,6 @@ export function FloatingGenerateBox({ } }, [selectedProfileId, profiles, setSelectedProfileId]); - // Get current form value to trigger resize when it changes - const formValue = form.watch(isInstructMode ? 'instruct' : 'text'); // Auto-resize textarea based on content (only when expanded) useEffect(() => { @@ -196,59 +194,104 @@ export function FloatingGenerateBox({
- - {isInstructMode && ( - - Delivery instructions: - - )} - ( - - - -