Repository navigation
feat(voice): provider-agnostic TTS seam + audio-reactive renderer - #8
Merged
Merged
Conversation
Adds src/voice/ with an ElevenLabs adapter behind a server-side proxy and a Web Speech fallback. Adds VoiceViz, driven by smoothed RMS/low-band/centroid scalars rather than generative video, so the form re-renders from design tokens. Co-Authored-By: Claude Sonnet 5 <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
src/voice/): aVoiceAdapterinterface with an ElevenLabs adapter (proxied through server-sideapi/voice/*.jsso the key never reaches the bundle) and a zero-cost Web Speech fallback, selected viaVITE_VOICE_PROVIDER.VoiceViz— audio-reactive canvas renderer driven by the pre-writtenvoice-drivers.js(smoothed RMS/low-band/spectral-centroid scalars), accepting either a liveAnalyserNodeor a pre-computed curve.VoicePanel— the connection surface: provider name, key present/absent,health()result, and a Test voice button wired intoVoiceViz.docs/specs/voice-viz.md, approved before implementation.Test plan
pnpm typecheck— cleanpnpm lint— clean (--max-warnings=0)pnpm test— 19 files / 87 tests passing (voice-drivers TDD suite, adapter tests with mocked fetch/speechSynthesis, VoiceViz smoke test)pnpm build— demo + library both build; public library bundle size unchanged (voice code isn't exported publicly)pnpm check:bundle-size/test:consumer/test:react-consumer— all passgit diff --cachedgrep,.env.examplehas empty values,.gitignorecovers.env*)🤖 Generated with Claude Code