Repository navigation
Closed
Labels
Milestone
Description
Goal
Choose the architecture for spoken agent responses in a hands-free voice session: existing extension-provided TTS, realtime backend-streamed audio, or a capability-negotiated mix.
Current Baseline
VS Code can synthesize chat response chunks through ISpeechService.createTextToSpeechSession(...), and vscode-speech provides a local/native Aria TTS model through @vscode/node-speech.
Voice Code receives audio_response chunks from its realtime backend and coordinates playback with barge-in suppression, session ids, and assistant transcript text.
Proposed Work
- Compare client-side
vscode-speechTTS latency, quality, interruption behavior, and offline support against backend-streamed audio. - Determine whether backend audio is required for conversational timing, turn-taking, or model-selected spoken summaries.
- Define provider capabilities needed for streaming, cancellation, progress events, and barge-in.
- Decide how generated spoken text is captured for transcript/prior-timeline recall.
- Preserve the existing
Read Chat Response Aloudandaccessibility.voice.autoSynthesizebehavior. - Document privacy, policy, and data-flow implications for server-side audio generation.
Non-Goals
- Do not remove the existing TTS provider path.
- Do not require backend audio before state-driven narration can be prototyped.
- Do not read raw code-heavy output aloud unless explicitly requested by the user.
Open Questions
- Should the speech provider API grow explicit streaming/cancellation capabilities, or should realtime audio live in a chat/agent voice layer?
- How should barge-in interact with existing text-to-speech sessions?
- Which architecture gives the best behavior for web, desktop, remote, and offline scenarios?
Activity
bpasero commentedon Jun 28, 2016
Kai Maetzel (@kieferrm) there are some issues with the coloring in markdown sources. I stopped filing issues because I am also not sure if our repository is the right place for them.