Replies: 1 comment
Research Enhancement — Cloud Voice Provider Pipeline with Spatial Audio SupportSharpened Problem FramingThe voice pipeline is TalkTerm's primary interaction channel — and its quality ceiling is currently capped by Web Speech API, which has inconsistent quality across platforms (notably poor on Windows), no voice cloning, and no streaming viseme data for future lip-sync. The real problem is not "add cloud providers" — it is achieving the NFR targets (500ms STT start, 3s first spoken response) reliably across macOS and Windows while keeping the door open for avatar lip-sync via viseme streams. Prior Art & Competitive Signal (2026)
Key finding: ElevenLabs and Deepgram are complementary — Deepgram for STT (best endpointing for barge-in) and ElevenLabs for TTS (lowest latency + viseme data for lip-sync). This "best of both" stack is explicitly recommended by both vendors. Spatial Audio & Noise Handling LandscapeThe spatial audio angle is worth reframing. The real user need is noise resilience in home offices and coffee shops, not spatial audio per se:
Recommendation: Drop the "spatial audio" framing. Instead, focus on cloud STT providers with strong endpointing (Deepgram Flux) for barge-in reliability, and recommend OS-level noise cancellation (Krisp/NVIDIA Broadcast/Voice Focus) rather than building it in. Options Table
Recommendation: Option C — but the Risks & Unknowns
Phased Validation Path
Success Metrics
|
Uh oh!
There was an error while loading. Please reload this page.
Summary
Extend the STT/TTS abstraction layer to support cloud voice providers (e.g., Deepgram, ElevenLabs, Azure Speech) as drop-in replacements for the MVP's Web Speech API, and explore spatial audio processing to improve voice capture in noisy environments. This unlocks higher-quality voice recognition, more natural avatar voices, and better noise handling for the target home-office and coffee-shop usage scenarios.
Market Signal
Voice interface usage in AI applications has grown 65% year-on-year according to 2026 VUI design research. Spatial Hearing AI is emerging as the foundation of the 2026 voice stack — moving beyond simple direction-of-arrival to pinpoint speakers in 3D space and separate them from overlapping voices (Kardome). ElevenLabs and Deepgram are the dominant voice API providers, with sub-200ms latency for streaming TTS. D-ID and LiveAvatar both ship real-time avatar voice with lip-sync quality that sets user expectations. The PRD's 3-second first-response target is achievable only with streaming cloud TTS — Web Speech API quality varies significantly across platforms.
User Signal
The PRD explicitly requires STT/TTS to be "configurable via abstraction layer — swappable without app-level code changes" (Implementation Considerations). FR7 requires transcription to begin within 500ms of silence detection. NFR1b requires first spoken response within 3 seconds via streaming TTS. The architecture doc identifies "Audio lifecycle management" as a cross-cutting concern. Web Speech API quality is inconsistent across macOS/Windows, making cloud providers essential for the cross-platform promise.
Technical Opportunity
The architecture defines
SpeechToTextandTextToSpeechas port interfaces in the Voice bounded context (renderer/speech/), with MVP implementations using Web Speech API. The ports-and-adapters pattern means cloud providers are literally designed as drop-in adapters. The IPC streaming pattern (event-based viacontextBridge) already supports the streaming data flow needed for cloud STT/TTS. The renderer process handles voice, so no main-process changes are needed — just new adapter implementations behind existing interfaces.Assessment
Suggested Next Step
Spike on ElevenLabs streaming TTS and Deepgram streaming STT as the first two cloud adapters. Benchmark latency against Web Speech API on macOS and Windows to quantify the quality gap. Design the provider selection UX (automatic vs. user-configurable in settings).
Proposed by the BMAD Analyst (Mary) on 2026-04-05.
All reactions