feat(studio): Voices panel + inline ElevenLabs key setup#2
Merged
Conversation
Phase 2 of the ElevenLabs integration: a sidebar UI for browsing voices,
previewing them, picking a default, and setting the API key directly from
the studio (no terminal trip required).
Studio
- New "Voices" sidebar tab (Cmd/Ctrl+3) with search, refresh, and a
scrollable card list. Each card has ▶ play/stop preview and a "Use"
button to pick the default voice. Active default is badged.
- Inline empty-state form when no key is set: password-style input +
Save key button (Enter to submit). Shows a clear error if the key is
rejected, and a status footer ("Key: project .env [clear]") once a
key is configured.
Core / studio-api
- New helpers in @hyperframes/core/elevenlabs:
- getElevenLabsKeyStatus(projectDir) → {hasKey, source}; never leaks
the value.
- writeElevenLabsKeyToEnvFile(envPath, value) preserves surrounding
lines, quotes values containing whitespace, writes mode 0600, and
accepts null to remove the entry.
- New routes:
- GET /api/projects/:id/elevenlabs/key — status only
- PUT /api/projects/:id/elevenlabs/key — writes/removes from
<project>/.env, then ensures .env is covered by .gitignore so the
one-click UX can't accidentally lead to a committed secret.
- GET/PATCH /api/projects/:id/elevenlabs/settings — persists
tts.defaultVoiceId into hyperframes.json.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Phase 2 of the ElevenLabs integration. Adds a Studio sidebar UI for browsing voices, previewing them, picking a default, and setting the API key directly from the studio (no terminal trip required).
Studio
Core / studio-api
New helpers in `@hyperframes/core/elevenlabs`:
New routes (registered alongside Phase 1):
Notes for reviewers
Test plan
🤖 Generated with Claude Code